1、换阿里云软件源#
阿里云:
http://mirrors.aliyun.com
在 系统设置 - 软件和更新 - 下载自 - 选择下载服务器 - 中国 - mirrors.aliyun.com
选择
或者直接编辑:
sudo mv /etc/apt/sources.list/etc/apt/sources.list.bak #备份系统默认的软件源
sudo vim /etc/apt/sources.list
添加:
deb http://mirrors.aliyun.com/ubuntu/yakkety main restricted
deb http://mirrors.aliyun.com/ubuntu/yakkety-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/yakkety universe
deb http://mirrors.aliyun.com/ubuntu/yakkety-updates universe
deb http://mirrors.aliyun.com/ubuntu/yakkety multiverse
deb http://mirrors.aliyun.com/ubuntu/yakkety-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/yakkety-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/yakkety-security main restricted
deb http://mirrors.aliyun.com/ubuntu/yakkety-security universe
deb http://mirrors.aliyun.com/ubuntu/yakkety-security multiverse
2、Update#
sudo apt update
sudo apt upgrade
3、安装vim #
sudo apt install vim
4、安装Guake #
sudo apt install guake
5、系统设置#
在 系统设置
里进行一些必要的设置,如:壁纸、电源、显示、亮度、隐私
6、安装输入法#
我用的是
sudo apt install fcitx-table-wbpy
如果需要搜狗拼音:
sudo vim /etc/apt/sources.list.d/ubuntukylin.list
加入
deb http://archive.ubuntukylin.com:10006/ubuntukylin trusty main
安装搜狗拼音:
sudo apt update
sudo apt install sogoupinyin
直接下载
7、删除Libreoffice #
如果有需求,可以安装
sudo apt remove libreoffice-common
8、删除Amazon #
sudo apt remove unity-webapps-common
9、解决 “月月” 显示错误#
在 时间和日期
设置里,选择年份和星期同时显示,月份则会出现 “月月” 两个月字。
解决方法:
1
2
gsettings set com.canonical.indicator.datetime time-format 'custom'
gsettings set com.canonical.indicator.datetime custom-time-format '% Y 年 % m 月 % d 日 % A% H:% M:% S'
10、Unity 显示的位置#
下方显示:
gsettings set com.canonical.Unity.Launcher launcher-position Bottom
左方显示:
gsettings set com.canonical.Unity.Launcher launcher-position Left
11、点击图标最小化#
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/launcher-minimize-window true
12、安装Tweak tool 优化工具#
安装
sudo apt install gnome-tweak-tool
13、禁用房客Guest #
编辑:
sudo vim /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
把里面的内容修改为:
[Seat:*]
#guest-wrapper=/usr/lib/lightdm/lightdm-guest-session
allow-guest=false
14、禁用ipv6 #
1eth0
ifconfig
记录下网卡名字,比如我的,有 enp4s0f2
、lo
、wlp9s0b1
三个
2
sudo vim /etc/sysctl.conf
在末尾添加:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.`lo`.disable_ipv6 = 1 #需跟网卡信息对应
net.ipv6.conf.`enp4s0f2`.disable_ipv6 = 1 #需跟网卡信息对应
net.ipv6.conf.`wlp9s0b1`.disable_ipv6 = 1 #需跟网卡信息对应
3
sudo sysctl -p
15、设置鼠标加速度#
注:鼠标加速度
和 鼠标速度
是两个不同的概念
1
xset m 0 0
或者把它写入开机启动。
2Mouse
,结果中选择 Keyboard and Mouse
安装,用这个
16、自动挂载硬盘#
我一共有
1
sudo blkid
结果会显示:
/dev/sda2: ...
/dev/sdb5: LABEL="files" UUID="a1eaf999-b7dc-41e2-9314-5f4dec421db5" TYPE="ext4"
记录下
2
新建一个
cd ~
sudo mkdir Files
sudo chown -R eallion:eallion Files
3
sudo vim /etc/fstab
按格式添加:
UUID=a1eaf999-b7dc-41e2-9314-5f4dec421db5 /home/eallion/Files ext4 defaults 0 0
17、安装openssh-server #
sudo apt install openssh-server
配置
sudo apt install libpam-google-authenticator
启动:
google-authenticator
修改配置:
sudo vim /etc/pam.d/sshd
添加:
auth required pam_google_authenticator.so
修改:
sudo vim /etc/ssh/sshd_config
ChallengeResponseAuthentication yes
Port 22222 #修改 SSH 端口
18、安装Shadownsocks Qt5 #
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt update
sudo apt install shadowsocks-qt5
启动
ss-qt5
19、安装状态栏指示器(显示网速、内存、硬盘)#
我用的是:
indicator-sysmonitor
,
sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt update
sudo apt install indicator-sysmonitor
20、配置Oh-My-Zsh #
cd ~
sudo apt install git curl zsh
sh -c "$(curl -fsSL https://raw.GitHubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
修改一下配置:
sudo vim .zshrc
...
ZSH_THEME="ys" #主题
...
plugins=(git sudo cp fasd ...) #插件
...
21、安装VirtualBox #
sudo apt install virtualbox
也可以从官网下载最新版
22、安装Google Chrome 浏览器#
如果喜欢
但是我更喜欢
23、安装GDebi #
安装
sudo apt install gdebi
24、安装微信#
可以直接在
也可以安装
https://github.com/geeeeeeeeek/electronic-wechat
前提是已经安装 git
、Node.js
、npm
git clone https://github.com/geeeeeeeeek/electronic-wechat.git
cd electronic-wechat
npm install && npm start
也可直接下载一个
25、调整状态栏托盘图标顺序#
sudo vim /usr/share/indicator-application/ordering-override.keyfile
修改:
[Ordering Index Overrides]
nm-applet=1 #系统图标
gnome-power-manager=2 #电池图标
ibus=3 #ibus 输入法
gst-keyboard-xkb=4
gsd-keyboard-xkb=5
netease-cloud-music=6 #网易云音乐
electronic-wechat1=7 #微信
Shadowsocks-Qt5=8 #SS
fcitx-qimpanel=9 #fcitx 输入法
Nylas N11=10 #N1 邮件客户端
chrome_app_indicator_3=11 #Chrome 图标
indicator-sysmonitor=20 #网速指示器
具体参考: https://eallion.com/ubuntu-system-icon
26、安装tlp #
提高电池的寿命并且减少过热
sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw
sudo tlp start
27、主题图标推荐#
Numix:
https://numixproject.org
通过
sudo add-apt-repository ppa:numix/ppa
sudo apt update
sudo apt install numix-gtk-theme
sudo apt install numix-icon-theme-circle
安装好之后,通过