资讯专栏INFORMATION COLUMN

Ubuntu环境初始化

tomlingtm / 2273人阅读

摘要:添加用户添加国内镜像源使用中的可以清除文件内容,在文件中增加以下内容更新镜像源安装配置在配置文件中添加以下内容以下内容为开发环境的初始化,可以不予参考初始化

添加用户
sudo useradd -md /home/glc glc
sudo usermod -aG sudo glc
sudo passwd -q glc
添加国内镜像源
sudo cp -f /etc/apt/sources.list /etc/apt/sources_bak.list
sudo vi /etc/apt/sources.list

(使用vim中的dG可以清除文件内容,在文件中增加以下内容:)

deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

更新镜像源:

sudo apt-get update
安装zsh
sudo apt-get install vim git zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
sudo chsh -s /bin/zsh
配置VIM
cp -f /usr/share/vim/vim74/vimrc_example.vim ~/.vimrc
vi ~/.vimrc

在配置文件中添加以下内容:

set nu
set tabstop
set nobackup
set cursorline
set ruler

以下内容为开发环境的初始化,可以不予参考

Python初始化
sudo apt-get install python3-pip python3-dev

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/23433.html

相关文章

  • ubuntu系统始化 前端环境配置

    摘要:购买服务器如果你是学生,就去通过学生通道购买一个月如果不是学生推荐一下链接板瓦工推荐以上内存因为服务器消耗内存比较大注意你的域名有没有备案,如果没有备案,购买阿里云时,地区选择香港,主机在国外,域名就不需要备案系统选择登陆下载安装工具点击文 购买服务器 1.如果你是学生,就去通过学生通道购买 9.9一个月 2.如果不是学生推荐一下链接板瓦工 推荐1g以上内存(因为node服务器消耗内存...

    adie 评论0 收藏0
  • ubuntu14.04配置开发环境

    摘要:配置开发环境说明每次在虚拟机重装都要重新配置一遍开发环境略繁琐整理个配置文档记录如下本文档以为基准其他版本可能略有差异会同步更新等比较完善后考虑写成脚本自动化配置初始化设置桌面环境设置选项更改设置语言设置分辨率设置输入法设置内存磁盘等更改密 ubuntu14.04配置开发环境 说明: 1.每次在虚拟机重装ubuntu,都要重新配置一遍开发环境.略繁琐,整理个配置文档记录如下. 2...

    weizx 评论0 收藏0
  • ubuntu14.04配置开发环境

    摘要:配置开发环境说明每次在虚拟机重装都要重新配置一遍开发环境略繁琐整理个配置文档记录如下本文档以为基准其他版本可能略有差异会同步更新等比较完善后考虑写成脚本自动化配置初始化设置桌面环境设置选项更改设置语言设置分辨率设置输入法设置内存磁盘等更改密 ubuntu14.04配置开发环境 说明: 1.每次在虚拟机重装ubuntu,都要重新配置一遍开发环境.略繁琐,整理个配置文档记录如下. 2...

    niceforbear 评论0 收藏0
  • 解决Error: NJS-045错误 ubuntu环境配置Nodejs访问Oracle

    摘要:解决错误环境配置访问最近在公司鼓捣一个小型项目,技术栈选用了,需要访问的数据在公司生产库里面,生产库使用的是。直接访问生产库获取数据太危险,所以需要定时从生产库中抽取加工后的数据然后写入到中。 解决Error: NJS-045错误 ubuntu环境配置Nodejs访问Oracle 最近在公司鼓捣一个小型项目,技术栈选用了Vue2.0+Nodejs+Express+Mongodb+lin...

    Pines_Cheng 评论0 收藏0
  • 解决Error: NJS-045错误 ubuntu环境配置Nodejs访问Oracle

    摘要:解决错误环境配置访问最近在公司鼓捣一个小型项目,技术栈选用了,需要访问的数据在公司生产库里面,生产库使用的是。直接访问生产库获取数据太危险,所以需要定时从生产库中抽取加工后的数据然后写入到中。 解决Error: NJS-045错误 ubuntu环境配置Nodejs访问Oracle 最近在公司鼓捣一个小型项目,技术栈选用了Vue2.0+Nodejs+Express+Mongodb+lin...

    LdhAndroid 评论0 收藏0

发表评论

0条评论

tomlingtm

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<