本系列目录 https://www.idealclover.top/index.php/archives/142/ 写作背景不再做过多解释了
呜呜呜
啊这个显卡实在让我欲仙欲死...让ubuntu卡在开机logo的罪魁祸首...这个已经在上一期里说过啦
修改科大源为Ubuntu 18.04默认的源
备份/etc/apt/sources.list
cp /etc/apt/sources.list /etc/apt/sources.list.bak
在/etc/apt/sources.list文件前面添加如下条目
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
并把其他源注释掉
最后执行如下命令更新源
sudo apt-get update
sudo apt install vim
sudo update-alternatives --config editor
sudo visudo
将这行
%sudo ALL=(ALL:ALL) ALL
改为
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
sudo apt install zsh
sudo wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s /bin/zsh
sudo apt install python3-pip3
pip3 install thefuck --superuser
打开 ~/.zshrc
vim ~/.zshrc
在最后添加
eval "$(thefuck --alias)"
关于shadowsocks,之前自己写过一篇文章,这里不再赘述
https://blog.csdn.net/SaberHowei/article/details/80564849 https://github.com/nvbn/thefuck
本作品由idealclover采用知识共享署名-相同方式共享 4.0 国际许可协议进行许可,转载请注明出处