echo 'deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse' >/etc/apt/sources.list
sudo apt update
sudo apt upgrade
sudo apt install fcitx
wget http://cdn2.ime.sogou.com/dl/index/1524572264/sogoupinyin_2.2.0.0108_amd64.deb
sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
如果出现依赖包的问题执行
sudo apt --fix-broken install
点击Apply System-Wide
后将用户注销,如果注销没有效果那么就重启吧。
点击Configure Current Input Method
,进入Input Method
界面,选择加号添加搜狗输入法。
sudo apt remove libreoffice-common
wget https://wdl1.cache.wps.cn/wps/download/ep/Linux2019/8722/wps-office_11.1.0.8722_amd64.deb
sudo dpkg -i wps-office_11.1.0.8722_amd64.deb
sudp apt remove firefox
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install vim
sudo vim /etc/vim/vimrc
添加如下代码:
配置还在更新
sudo apt intall unity-tweak-tool
# 按照官方教程使用 add-apt-repository 方法定位不到 flatabulous 包,改用手动安装
sudo add-apt-repository ppa://noobslab/themes
sudo apt update
sudo apt install flatabulous-theme
wget https://github.com/anmoljagetia/Flatabulous/archive/master.zip
mkdir .theme
mv ./master.zip ~/.theme
unzip master.zip
sudo add-apt-repository ppa://noobslab/icons
sudo apt update
sudo apt install ultra-flat-icons
再打开 unity-tweak-tool 时出现:
Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
from gi.repository import Gtk
Error: schema com.canonical.notify-osd not installed
解决办法如下:
sudo apt install notify-osd
sudo apt install overlay-scrollbar
图标配置好了,但是主题因为 GTK 的原因没有成功,记录如下:
在 monaco-font 库中下载 zip 包
unzip monaco-font-master.zip
sudo ./install-font-ubuntu.sh https://github.com/todylu/monaco.ttf/blob/master/monaco.ttf?raw=true
下载完成后使用unity-tweak-tool
设置字体。
这个才是重头戏。
因为很多 linux 默认的终端 shell 都是 bash,但是不太好用,所以改为 zsh。
sudo apt install zsh
sh -c "$(wget -O- https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sudo usermod --shell /bin/zsh $USERNAME
修改后记得 log_out 重新登录用户。
vim ~/.zshrc
# 修改皮肤
ZSH_THEME="robbyrussell"
sudo apt install aotujump
vim /usr/share/doc/autojump/README.Debian
echo '. /usr/share/autojump/autojump.sh' >> ~/.zshrc
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=(zsh-syntax-highlighting)
source ~/.zshrc
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
plugins=(zsh-autosuggestions)
source ~/.zshrc
git clone https://github.com/paulirish/git-open.git $ZSH_CUSTOM/plugins/git-open
plugins=(git-open)
source ~/.zshrc
HIST_STAMPS="yyyy-mm-dd"
原文:https://www.cnblogs.com/zuanzuan/p/11255406.html