Ubuntu不是开箱即用的,国内使用的话,需要再安装完毕后对一些配置进行一些修改。

1. 修改系统默认软件源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak    ## 备份
sudo gedit /etc/apt/sources.list   ## 编辑软件源,vim有可能无法使用,需要更新软件源之后再安装

阿里源

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
sudo apt update
sudo aot upgrade

2. 安装Vim

sudo apt install vim

3. 修改系统默认编辑器

sudo update-alternatives --config editor 

然后选择Vim对应的序号就可以

4.关掉 sudo 密码

sudo visudo 

然后找到

%sudo   ALL=(ALL:ALL) ALL

修改为

%sudo   ALL=(ALL:ALL) NOPASSWD:ALL

5. 安装 gnome-tweak

sudo apt install gnome-tweak-tool

6. 安装主题和图标包

  • 安装 Arc 主题
sudo apt install arc-theme 
  • 安装图标包
sudo add-apt-repository ppa:papirus/papirus
sudo apt-get update
sudo apt-get install papirus-icon-theme

7. 安装搜狗输入法

https://pinyin.sogou.com/linux/?r=pinyin 
安装完毕,重启一下系统

文章目录