重装系统

oh-my-zsh

sudo apt install vim
sudo apt install zsh
sudo apt install openssh-server
sudo apt install curl
sudo apt install git
sudo apt install gcc
sudo apt install g++
sudo apt install cmake

wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
vim install.sh
REPO=${REPO:-mirrors/oh-my-zsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}
chmod +x install.sh
./install.sh

git clone https://gitee.com/hailin_cool/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://gitee.com/Annihilater/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

ZSH_THEME=”agnoster”
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)

X11

sudo apt install libx11-dev

mount

sudo apt install nfs-kernel-server

sudo vim /etc/exports
文末添加:

1
2
/sdc *(rw,sync,no_subtree_check)
/sdc *(rw,sync,no_subtree_check)

sudo systemctl restart nfs-kernel-server # 重启服务
sudo ufw allow nfs # 开防火墙

sudo apt-get install nfs-common -y
sudo mount xx.xx.xx.xx/sdc /sdc

conda

安装

curl –output anaconda.sh https://..

sh anaconda.sh
一路 enter, yes yes

设置镜像

vim ~/.condarc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
channels:
- defaults
show_channel_urls: true
default_channels:
- https://mirrors.zju.edu.cn/anaconda/pkgs/main
- https://mirrors.zju.edu.cn/anaconda/pkgs/r
- https://mirrors.zju.edu.cn/anaconda/pkgs/msys2
custom_channels:
conda-forge: https://mirrors.zju.edu.cn/anaconda/cloud
msys2: https://mirrors.zju.edu.cn/anaconda/cloud
bioconda: https://mirrors.zju.edu.cn/anaconda/cloud
menpo: https://mirrors.zju.edu.cn/anaconda/cloud
pytorch: https://mirrors.zju.edu.cn/anaconda/cloud
pytorch-lts: https://mirrors.zju.edu.cn/anaconda/cloud
simpleitk: https://mirrors.zju.edu.cn/anaconda/cloud
1
pip config set global.index-url https://mirrors.zju.edu.cn/pypi/web/simple

显卡驱动

1.获得超级用户权限

1
sudo -i

2.关闭所有使用 GPU 的进程

1
2
systemctl isolate multi-user.target
modprobe -r nvidia-drm

3.关闭所有 lightdm gdm 服务

1
2
3
4
sudo service lightdm stop
sudo service lightdm status
service gdm stop
service gdm status

4.运行安装命令

1
./NVIDIAxxxxxx.run