前提
关于Ubuntu 16.04.5的安装,可以参考我的上一篇文章写给萌新的教程:win10下使用VMware安装Ubuntu16.04.5 Gnome。
修改主用户下的文件名为英文
安装中文版系统时,默认用户主目录下的这些文件夹都是中文的,这样在终端中切换目录就比较麻烦,还要再切换输入法。windows上这点就很好,显示为中文,实际目录名是英文,这点LIinux发行版里很少有能直接做到这点的(国内发行版Deppin算一个)。


我们可以执行如下操作,快速切换主目录下文件夹为英文。
export LANG=en_US
xdg-user-dirs-gtk-update
# 选择update names
export LANG=zh_CN.UTF-8
xdg-user-dirs-gtk-update
# 选“不要再次询问我”和“保持旧的名称”


安装gnome-tweak-tool
sudo apt install gnome-tweak-tool

外观设置主题,全局黑色主题等。

可以开启桌面图标,更换壁纸等。

顶栏显示更多信息等。

添加中文输入法
打开设置

选择区域和语言

点击加号,确定安装

安装后,点击加号,选择汉语,选择汉语pinyin,确定即可。之后可以把原来的汉语移除,只保留英文和pinyin输入法,切换输入法快捷键为win+空格。


换源
将默认源改为清华镜像源
# 备份原有文件
sudo mv /etc/apt/sources.list /etc/apt/sources.list.backup
# 使用gedit或vi nano等编辑都可以
sudo gedit /etc/apt/sources.list
将清华镜像源https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
16.04LTS的内容复制过去,保存即可,保存后更新sudo apt update

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
其他
对于图标设置什么的可以根据自己的喜好选择,暂时这些可以满足使用。
使用搜狗输入法
用了下默认的输入法,体验还是感觉不太好,因而还是使用搜狗输入法for Linux吧。在官网下载后,执行以下操作
# 可能会报错缺少依赖
suod dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
# 修复依赖
sudo apt install -f
# 再次安装
suod dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
接着重启系统,在桌面左下角处可以看到搜狗输入法,先设置皮肤再选择搜狗拼音即可使用。

网友评论