硬件环境:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
eallion@eallion:~$ screenfetch
OS: Ubuntu 19.10 eoan
Kernel: x86_64 Linux 5.3.0-23-generic
Uptime: 2h 26m
Packages: 2176
Shell: zsh 5.7.1
Resolution: 3840x1080
DE: GNOME
WM: GNOME Shell
WM Theme: Adwaita
GTK Theme: Yaru [ GTK2/3]
Icon Theme: Yaru
Font: Ubuntu 11
CPU: Intel Core i5-7500 @ 4x 3.8GHz [ 27.8°C]
GPU: GeForce GTX 1050 Ti
RAM: 9011MiB / 15717MiB
作为一个一直使用长期支持版本 LTS 的人,这次也升级到了 Ubuntu 19.10 。 因为这次新版本对性能的提升还是比较大的。 最重要的是安装的时候可以选择 ZFS 文件系统。 而且原生支持 Nvidia 显卡驱动了,安装时勾上即可。 安装时可选择最小化安装,这样安装好后,系统里就没有那些 # 犀利而无用 的软件。 Live CD 的启动项也有 safe graphics 选项了,即不用手动添加 nomodeset 避免黑屏。
这篇文章吹爆了 Ubuntu 19.10Ubuntu 19.10: It’s fast, like “make old hardware feel new” fast
在 Dash 里搜索 软件和更新
,依次点击 Ubuntu 软件
- 下载自
- 其他站点
- 中国
: 然后选择一个源服务器,推荐阿里云和清华:
mirrors.aliyun.com mirrors.tuna.tsinghua.edu.cn 然后 update 一下:
1
2
sudo apt update
sudo apt upgrade
在 系统设置
里按自己的习惯设置即可。
1
sudo apt install gnome - tweak - tool
对于 FPS 玩家,尤其推荐去掉鼠标加速。 4.1. 在 GNOME Tweaks
点击 键盘和鼠标
在 鼠标
-加速配置
里选择 Flat
。 4.2. 在 系统设置
里 设备
-鼠标和触摸板
-鼠标
-鼠标速度
调节自己适应的鼠标速度。
安装 deb 软件包时,可以用 GDebi 替换 Ubuntu 软件中心。
下载地址:https://www.google.com/chrome/
7.1 浏览器安装插件
7.2 安装 Gnome Shell Extensions
1
sudo apt install gnome-shell-extensions
7.3 安装 Dash to Dock
https://extensions.gnome.org/extension/307/dash-to-dock/
8.1 参考 7.1 ,如果已安装插件,略过此步。 8.2 参考 7.2 ,如果已安装,略过此步。 8.3 安装 Hide Top Bar
https://extensions.gnome.org/extension/545/hide-top-bar/
1
sudo apt install fcitx-table-wbpy
Preload 是一个后台运行的守护进程,它分析用户行为和频繁运行的应用,让你更快打开常用的软件。
1
sudo apt install preload
减少过热和使用节能模式。
1
2
3
4
sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw
sudo tlp start
安装 CPUFREQ 指示器:
1
sudo apt install indicator-cpufreq
重启你的电脑即可在指示器上选择 Powersave 模式。
apt-fast 是 apt 的一个 shell 脚本包装器,通过从多连接同时下载包来提升更新及包下载速度。 如果你经常使用终端以及 apt 来安装和更新包,你也许会想要试一试 apt-fast 。 安装 apt-fast:
1
2
3
sudo add-apt-repository ppa:apt-fast/stable
sudo apt update
sudo apt install apt-fast
解决切换到 Windows 发现时间不对的问题。
1
2
3
sudo apt install ntpdate
sudo ntpdate ntp.aliyun.com #阿里云的时间服务器
sudo hwclock --localtime --systohc #将时间更新到硬件上
参考:https://eallion.com/ubuntuzsh
终端推荐安装 Guake ,又好看又方便:
直接安装的 Guake 版本不够新,而且中文显示不全。 推荐源码安装:
1
2
3
4
5
6
7
8
sudo apt update
sudo apt -y install git curl wget
cd ~
git clone https://github.com/Guake/guake.git
cd guake
./scripts/bootstrap-dev-debian.sh run make
make
sudo make install
如果需要直接安装:
安装 Zsh:
1
2
sudo apt update
sudo apt install zsh
将 Zsh 设置为默认 Shell :
查看当前所用的 Shell : echo $SHELL
。
安装 Oh My Zsh :
以下 3 种方式选择 1 种:
1
sh - c "$(wget -O- https://raw.GitHubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
1
sh - c "$(curl -fsSL https://raw.GitHubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
1
2
curl - Lo install . sh https : // raw . GitHubusercontent . com / ohmyzsh / ohmyzsh / master / tools / install . sh
sh install . sh
字体可以安装 Powerline ,但是推荐安装符号更全的 Ubuntu Nerd Font 或者 Knack Nerd Font Mono。在 Guake 里设置好。
下载:Ubuntu Nerd Font 下载:Knack Nerd Font Mono
下载后直接安装字体即可。
安装主题 Powerlevel9k :
1
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
安装插件:
1
2
3
4
5
6
7
8
9
10
11
# autojump 切换目录
sudo apt install autojump
# fasd 快速访问文件或目录
sudo apt install fasd
# zsh-autosuggestions 历史命令建议
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting 命令行语法高亮
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
设置 Oh My Zsh :
需要修改如下几个地方:
1
2
3
4
5
6
7
8
9
10
******
POWERLEVEL9K_MODE='nerdfont-complete'
ZSH_THEME="powerlevel9k/powerlevel9k"
******
ENABLE_CORRECTION="true"
******
COMPLETION_WAITING_DOTS="true"
******
plugins=( git extract fasd zsh-autosuggestions zsh-syntax-highlighting )
******
让配置生效:
先安装依赖:
1
2
sudo apt update
sudo apt install vim python3-pip python3-dev exuberant-ctags cmake gcc g++
安装 EverVim :
1
curl -sLf https://raw.GitHubusercontent.com/LER0ever/EverVim/master/Boot-EverVim.sh | bash
进 Vim 安装插件:
如果进 Vim 提示 Your ycmd is shut down ,需要安装 You Compute Me :
官方教程: https://github.com/ycm-core/YouCompleteMe#linux-64-bit
1
2
3
sudo apt install build-essential cmake python3-dev
cd ~/.vim/bundle/YouCompleteMe
python3 install.py --clang-completer
Grub-customizer 可以美化优化 Grub 引导界面。
1
2
3
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer
16.1. 查看硬盘的 UUID 和 Type :
记录下 UUID 和 Type。
16.2. 创建挂载目录
1
2
3
cd ~
sudo mkdir Files
sudo chown -R eallion:eallion Files
16.3. 查看自己的 uid gid
16.4. 编辑配置文件:
按格式添加:
1
UUID=xxxx /mount-folder type defaults 0 0
如:
1
UUID=0002AC /home/eallion/Files ntfs defaults,uid=1000,gid=1000,umask=022 0 0
如果不加 uid gid ,自动挂载后是 root 权限,可能无法读写。
1
sudo apt install openssh-server
配置 Google Authenticator:(非必须,可选)
1
sudo apt install libpam-google-authenticator
生成二维码:
修改配置以加载 Google-authenticator:
1
sudo vim /etc/pam.d/sshd
添加:
1
auth required pam_google_authenticator.so
修改 SSH 配置:
1
sudo vim /etc/ssh/sshd_config
把
1
ChallengeResponseAuthentication no
改为:
1
ChallengeResponseAuthentication yes
修改 SSH 端口:
1
sudo apt install flameshot
设置截图快捷键:系统设置
- 设备
- 键盘快捷键
- 自定义快捷键
点加号添加一个:
1
2
3
名称:flameshot
命令:flameshot gui
设置快捷键:(按键盘设置)
当主机接有音响、耳机、HDMI 设备的话,Ubuntu 默认是采用 HDMI 输出音频。Ubuntu 自带的声音设置修改后不能保存,下次又还原成默认的。 安装 PulseAudio :
1
sudo apt install pavucontrol
然后按 Super
键在 Dash
中打开 PulseAudio
,在 设备
选项卡中关闭 HDMI 即可。
推荐一些常用的软件:
1
sudo snap install telegram-desktop
1
sudo snap install spotify
1
sudo apt install qbittorrent
1
sudo snap install termius-app
1
sudo apt install filezilla
1
https://nextcloud.com/install/#install-clients
1
sudo apt install virtualbox
1
sudo snap install code --classic
1
sudo snap install slack --classic
1
sudo apt install retext
QQ( 2.0 版的 Linux QQ 可用性还是很差,真的不想推荐 ) 1
https://im.qq.com/linuxqq/index.html
这篇文章介绍了对Ubuntu 19.10的优化方法。包括更换软件源、系统设置、安装GNOME Tweaks、去鼠标加速、安装Gdebi、安装Chrome、安装插件等。同时还提到了Ubuntu 19.10新版本对性能提升的重要性以及安装时可以选择ZFS文件系统和原生支持Nvidia显卡驱动的优点。文章中还推荐了一些常用软件和硬件环境的设置。总体上,这篇文章对Ubuntu 19.10进行了高度评价和详细介绍。