装系统
1.插入白色U盘,然后开机按delete键,进入界面后选择Boot Option #1,接下来依次选UEFI:Genevic Flash Di3/c 8.07和save&Exit,到下一个界面点击save changes,选择Yes。
2.跳到下一个页面选择Install Ubuntu,之后选项选择不联网,然后选择Erase disle and install Ubuntu,再点击install now。
3.进入新的界面以后设置用户名为dishnet ,密码为1。
4.设置完成后手动重启。
装显卡驱动
1.首先关闭屏保,在system setting里选择 Brightness&lock,在跳出页面的下拉框中选择Never and lock。
2.拷贝装系统的相关文件。
3.输入指令
sudo apt-get install linux-headers-$(uname -r)
4.输入指令
sudo nano /etc/modprobe.d/blacklist-nouveau.conf
5.底部输入
blacklist nouveau
options nouveau modeset=0
6.输入指令
sudo update-initramfs -u
7.按Ctrl+x,选择Yes并点击回车键确认。
搭建环境
1.重启后按ctrl+alt+F1,输入用户名dishnet和密码1
2.关闭x-server:输入指令
sudo service lightdm stop
3.安装显卡驱动:输入指令
cd ~/Downloads
输入
Sudo ./NVIDIA-Linux-x86_64-390.77.run
4.输入cd cuda8 →ls,弹出
sudo chmod a+x cuda_8.0.61.2_linux.run cuda_8.0.61_375.26_linux.run
5.输入
sudo ./cuda_8.0.61_375.26_linux.run
按q跳过,后面依次选择accept,第一个选择No,后面都选Yes。
6.输入
sudo ./cuda_8.0.61.2_linux.run
按q跳过。
7.输入cd ./Download/cudnn6/ → ls
8.分别输入
sudo dpkg -i libcudnn6_6.0.21-1+cuda8.0_amd64.deb
sudo dpkg -i libcudnn6-dev_6.0.21-1+cuda8.0_amd64.deb
sudo dpkg -i libcudnn6-doc_6.0.21-1+cuda8.0_amd64.deb
9.重启x-server。
10.输入
sudo nano profile
在/etc/profile后面加入指令
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
Export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
11.Reboot重启
建立虚拟环境并用pip安装requirement
1.在system-setting里面点击software&updates,将download from里面修改镜像到nju,并选择reload。
2.在ter中输入
sudo apt-get install python3-pip
pip3 install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple
virtualenv -p python3 ~/py3
选择Yes,然后输入cd Downloads/,接着输入命令
source ~/py3/bin/activate
pip3 install -r ~/Downloads/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
3.等待安装,如报错重新输入上一条命令重新安装。以下为安装文件
attrs==19.1.0
backcall==0.1.0
bleach==1.5.0
click==3.3
crcmod==1.7
Cython==0.29.13
decorator==4.4.0
defusedxml==0.6.0
entrypoints==0.3
enum34==1.1.6
future==0.17.1
html5lib==0.9999999
imutils==0.5.2
ipykernel==5.1.1
ipython==7.7.0
ipython-genutils==0.2.0
ipywidgets==7.5.1
iso8601==0.1.12
jedi==0.14.1
Jinja2==2.10.1
jsonschema==3.0.1
jupyter==1.0.0
jupyter-client==5.3.1
jupyter-console==6.0.0
jupyter-core==4.5.0
Markdown==3.1
MarkupSafe==1.1.1
mistune==0.8.4
nbconvert==5.5.0
nbformat==4.4.0
notebook==6.0.0
numpy==1.16.2
opencv-python==4.0.0.21
pandocfilters==1.4.2
parso==0.5.1
pexpect==4.7.0
pickleshare==0.7.5
Pillow==5.4.1
prettytable==0.7.2
prometheus-client==0.7.1
prompt-toolkit==2.0.9
protobuf==3.7.1
ptyprocess==0.6.0
Pygments==2.4.2
PyMySQL==0.9.3
PyQt5==5.12.1
PyQt5-sip==4.19.15
PyQtWebEngine==5.12.1
pyrsistent==0.15.4
pyserial==3.4
python-dateutil==2.8.0
PyYAML==5.1
pyzmq==18.0.2
QScintilla==2.11.1
qtconsole==4.5.2
scikit-learn==0.20.3
scipy==1.2.1
Send2Trash==1.5.0
serial==0.0.97
six==1.12.0
sklearn==0.0
sublime==0.1.0
tensorflow-gpu==1.4.1
tensorflow-tensorboard==0.4.0
terminado==0.8.2
testpath==0.4.2
tornado==6.0.3
traitlets==4.3.2
wcwidth==0.1.7
Werkzeug==0.15.1
widgetsnbextension==3.5.1
安装搜狗拼音
1.在system-setting里点击language-support,跳出的安装提示选择install now,安装完成后退出此界面再返回此界面,将IBus改为fcitx。
下载搜狗拼音安装包,sogou.deb。
2.输入命令sudo dpkg -i sogou.deb。
3.如果报错,输入 sudo apt-get install -f,再输入sudo dpkg -i sogou.deb
4.重启电脑。
5.在屏幕右上角点击输入法的图标,选择configure,点击“+”符号,取消勾选框,加入sogou-pinyin。