AI摘要:本文介绍了Ubuntu 18.04的前期配置,包括解决英伟达显卡问题、更换源、安装vim、设置默认编辑器、关闭sudo密码、安装zsh和thefuck插件以及shadowsocks。文章提供了详细的操作步骤和命令,方便用户进行配置。
Powered by AISummary and MoonShot KimiChat.
本系列目录 https://www.idealclover.top/archives/322/ 写作背景不再做过多解释了
呜呜呜
英伟达显卡 哼...嘤萎答
啊这个显卡实在让我欲仙欲死...让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
vim
下载vim
sudo apt install vim
vim改为默认编辑器
sudo update-alternatives --config editor
关掉sudo密码
sudo visudo
将这行
%sudo ALL=(ALL:ALL) ALL
改为
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
zsh
sudo apt install zsh
sudo wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s /bin/zsh
thefuck
pip3安装
sudo apt install python3-pip3
thefuck
pip3 install thefuck --superuser
针对zsh插件的设置
打开 ~/.zshrc
vim ~/.zshrc
在最后添加
eval "$(thefuck --alias)"
shadowsocks
关于shadowsocks,之前自己写过一篇文章,这里不再赘述
参考资料
https://blog.csdn.net/SaberHowei/article/details/80564849
https://github.com/nvbn/thefuck
已有 3 条评论
🐂🍺
啊啊啊
下一篇是不是ubuntu基础命令教程