1. 創(chuàng)建虛擬機(jī)
安裝 VMware
下載 ubuntu18.04.ISO 鏡像文件
注意:磁盤(pán)大小創(chuàng)建之后不可更改
2. 安裝 ubuntu 系統(tǒng)
安裝完成記得拍攝 快照 ,以便之后恢復(fù)和克隆
虛擬機(jī)啟動(dòng)時(shí)可能會(huì)要求設(shè)置 BIOS
3. 安裝環(huán)境
-
設(shè)置 root 密碼
sudo passwd root
- 安裝 net
? sudo apt-get install net-tools
? 使用 ifconfig 查看 IP
- 安裝 ssh
? sudo apt-get install ssh
? 可使用 xshell 遠(yuǎn)程連接
-
安裝 vmwaretool
方便與原系統(tǒng)進(jìn)行 文件傳輸 和 復(fù)制粘貼
- 點(diǎn)擊虛擬機(jī)—安裝vmwaretool
- 提取文件
- 輸入命令
sudo ./vmware-install.pl - 重啟進(jìn)入即可
-
安裝 conda
- window上下載Anaconda3的Linux版本
- 復(fù)制 Anaconda3-5.2.0-Linux-x86_64.sh到ubuntu
- 運(yùn)行 .sh 文件
./Anaconda3-5.2.0-Linux-x86_64.sh - 遇到Do you wish to proceed with the installation of Microsoft VSCode? [yes|no]”,輸入no
配置Anaconda3環(huán)境
- 打開(kāi).bashrc 文件
sudo gedit ~/.bashrc - 在打開(kāi)的文件最后一行新增環(huán)境變量 保存退出
export PATH=~/anaconda3/bin:$PATH - 輸入使其生效
source ~/.bashrc
-
換源
pip換源
mkdir ~/.pip sudo gedit ~/.pip/pip.conf # 編輯 [global] index-url = http://mirrors.aliyun.com/pypi/simple/ trusted-host = mirrors.aliyun.com
-
安裝tensorflow
輸入
pip install tensorflow-gpu==1.5報(bào)錯(cuò)ERROR: Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
? 輸入pip install -U --ignore-installed wrapt enum34 simplejson netaddr 解決
-
其他
編輯文件/etc/vim/vimrc.tiny,將“compatible”改成“nocompatible”非兼容模式;
并添加一句:
set backspace=2