日常逼话: ubuntu的初始界面还是听难受的, 下面从刚安装完开始给出基本的配置及美化方案。而且有时候电脑上没有QQ还是很不方便的, 在附录里将会介绍ubuntu下使用deepin-wine环境来安装常用windows软件。
基本美化和配置
外观主题
安装 unity-tweak-tool 和 gnome-tweak-tool
sudo apt-get install unity-tweak-tool sudo apt-get install gnome-tweak-tool

安装flatabulous-theme主题
sudo add-apt-repository ppa:noobslab/themes sudo apt-get update sudo apt-get install flatabulous-theme
安装macubuntu图标主题
sudo add-apt-repository ppa:noobslab/macbuntu sudo apt-get update sudo apt-get install macbuntu-os-icons-lts-v7 sudo apt-get install macbuntu-os-ithemes-lts-v7
安装文泉驿字体
sudo apt-get install ttf-wqy-microhei
- 在unity-tweak-tool中相应配置
![]() | ![]() |
![]() | ![]() |
- 在gnome-tweak-tool中相应配置

系统设置
切换中文
gedit /etc/default/locale
# 替换
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
# 为
LANG="zh_CN.UTF-8"
LANGUAGE="zh_CN:zh"
注销重新登录
文件夹由中文切换英文
# 更新名称
export LANG=en_US
xdg-user-dirs-gtk-update
# 保留名称
export LANG=zh_CN
xdg-user-dirs-gtk-update
设置工作区
打开unity-tweak-tool, 进入工作区设置

设置热区
同样地, 进入热区设置

常用软件
chrome
我个人比较喜欢用chrome, 这里给出安装和我遇到的小问题的解决方案。
解决root无法打开问题
打开/usr/bin/google-chrome
gedit /usr/bin/google-chrome
最后一行替换为
exec -a "$0" "$HERE/chrome" "$@" --no-sandbox
解决每次登录需要密钥
输入命令:
seahorse
修改登录密钥密码,置为空密码

wps办公
解决字体丢失问题
unzip wps_symbol_fonts.zip
mv *.ttf /usr/share/fonts/
mv *.TTF /usr/share/fonts/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache # 更新字体缓存
sogou输入法
之前一直用的fctix, 配置起来还蛮麻烦的,装sogou还是方便了很多
网易云音乐
http://s1.music.126.net/download/pc/netease-cloud-music_1.0.0_amd64_ubuntu16.04.deb
teamviewer远程控制
# 安装所下载的对应包
dpkg -i <package-name>.deb
桌面小便签 xpad
sudo apt-get install xpad
截图
apt-get install python-xlib # 依赖
wget http://packages.linuxdeepin.com/deepin/pool/main/d/deepin-scrot/deepin-scrot_2.0-0deepin_all.deb # 下载安装包
dpkg -i deepin-scrot_2.0-0deepin_all.deb
找到快捷键设置,建立截图操作,对应命令$deepin-scrot$, 不妨将截屏快捷键设置为Ctrl+Alt+A
停靠工具栏docky
虽然左边也有一列工具栏, 但我比较习惯设置隐藏。
sudo apt-get install docky
docky主题设置如下:

启用cpu监控和工作区切换:

XDM 下载工具
推荐一个比较快速又好用的下载工具XDM
http://xdman.sourceforge.net/#downloads
tar -Jxvf <package-name>.tar.xz
cd <package-name>
./install.sh # 软件会被安装在 /opt/xdman/
vscode
vim
sudo apt-get install vim
终端配置
一般我们用的是终端是gnome-terminal, shell是bash。将默认shell换成zsh。
sudo apt-get install zsh
sudo chsh -s /bin/zsh
登出后重新进入,验证默认终端是否生效
echo $SHELL
# 输出为/bin/zsh
oh-my-zsh
首先安装git
sudo apt-get install git
安装oh-my-zsh
cd ~/Downloads
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
安装主题
主题列表:https://github.com/robbyrussell/oh-my-zsh/wiki/themes
我选择的是bira主题
gedit ~/.zshrc
修改字段为 ZSH_THEME=”bira”
source ~/.zshrc # 修改生效
再调整一下终端的颜色:
下载插件
自动补全
cd Downloads wget http://mimosa-pudica.net/src/incr-0.2.zsh mkdir ~/.oh-my-zsh/plugins/incr mv incr-0.2.zsh ~/.oh-my-zsh/plugins/incr/ echo 'source ~/.oh-my-zsh/plugins/incr/incr*.zsh' >> ~/.zshrc source ~/.zshrc
高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 自动提示
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
- 其他小插件
- last-working-dir 每次终端返回上次打开目录
- web-search 直接搜索, 如: baidu Hello
- wd 目录间的快捷切换
在~/.zshrc
文件中,将plugins=(git) 替换为
plugins=(
git
zsh-syntax-highlighting
web-search
zsh-autosuggestions
last-working-dir
wd
)
解决zsh通配符问题
echo 'setopt no_nomatch' >> ~/.zshrc
source ~/.zshrc
最终效果
因为是远程控制端, 所以清晰度可能不是很高, 最后再换上你喜欢的壁纸。
附录
QQ等常用软件的安装
deepin是ubuntu的衍生版本,对wine的支持性很不错而且简化了很多wine的繁琐的配置,非常容易使用,我们可以借助deepin-wine环境来安装QQ等常用软件。
安装deepin-wine环境
在码云上下载zip包 https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu;
或者:
git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git
下载完之后,授予安装脚本执行权限并执行。
cd deepin-wine-ubuntu
chmod +x install.sh
./install.sh
安装deepin应用容器
选择想要安装的应用,
阿里云镜像: http://mirrors.aliyun.com/deepin/pool/non-free/d/
我比较喜欢deb包, 下载完之后全部安装即可。应用在dash里就能搜到, 非常方便。