更改源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo echo '' > /etc/apt/sources.list
sudo vi /etc/apt/sources.list
退出以下内容:
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
sudo apt-get update
装置根本工具
vim
sudo apt-get install vim
tmux
sudo apt-get install tmux
zsh | fish 终端加强工具
sudo apt-get install zsh
sudo apt-get install fish
批改时区
装置的 ubuntu 零碎有时候时区不对,会对开发造成影响,所以须要做对应的调整。
date
sudo tzselect
sudo cp /etc/localtime /etc/localtime.bak
sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
sudo apt-get install ntpdate
sudo ntpdate time.windows.com
// 或者
sudo ntpdate 0.asia.pool.ntp.org
参考:http://blog.csdn.net/yeyuange…
增加虚构磁盘
个别状况下装置的 Vagrant 虚拟机,默认的磁盘空间只有 10G 左右,不足以前面的导入数据库等操作,所以须要将 windows 下的磁盘共享进去给虚拟机应用。
应用 VirtualBox 增加虚构磁盘
应用命令行增加虚构磁盘.