惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
Cisco Talos Blog
Cisco Talos Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
V2EX
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
D
Docker
S
SegmentFault 最新的问题
博客园 - 聂微东
美团技术团队
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Last Week in AI
Last Week in AI
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
The GitHub Blog
The GitHub Blog
GbyAI
GbyAI
L
LangChain Blog
Vercel News
Vercel News
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The Cloudflare Blog
Engineering at Meta
Engineering at Meta
T
Threat Research - Cisco Blogs
T
Threatpost
Scott Helme
Scott Helme
T
Tailwind CSS Blog
Latest news
Latest news
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
The Register - Security
The Register - Security
罗磊的独立博客
P
Proofpoint News Feed
腾讯CDC
S
Schneier on Security
雷峰网
雷峰网
A
About on SuperTechFans
T
Tenable Blog
F
Full Disclosure
Cyberwarzone
Cyberwarzone
博客园_首页
有赞技术团队
有赞技术团队
K
Kaspersky official blog

eallion's Blog

春假清明自驾游 Ubuntu 25.10 安装和配置 秋假 彩礼 2025 博客变化 预制菜 联邦礼仪之一 重拾写博客的乐趣 少儿 TED - 时间管理大师 n8n 之同步博客到 Mastodon n8n 之备份 Mastodon 嘟文 如何备份 Mastodon Docker 部署 Mastodon NAS 折腾记 Windows 11 安装软件 博客排版 - 挤压中文标点符号 Hugo 博客集成 Mastodon 独立博客自省问卷 15 题 Chrome 插件更新:网址净化器 在 Hugo 中使用 Shiki 炒菜万能公式 uBlacklist 订阅合集 读《中文互联网正在加速崩塌》 CSS 和 JS 实现博客热力图 受灾小记 那,他吃什么?! Mastodon 同步到 Memos Hugo 外部链接跳转提示页面 联邦宇宙及 Mastodon 简介 2024 博客变化 部署动态生成 OG Image 的 API 再看《星际穿越》 实感 无题 自部署 GitHub 风格的 Reactions 点赞功能 图床 CDN CNAME 接入 Cloudflare SaaS 实现分流 利用 GitHub Actions 同步对象存储 留给孩子一个完整的母亲 博客 AI 摘要及优化 豆瓣同步到 Notion 和 Neodb NeoDB API 创建观影页面 NeoDB 获取 Access Token Artalk 无评论随机显示诗词 Memos 配置 Artalk 评论系统 孙燕姿关于AI孙燕姿的回复 Windows 安装 Rime 小狼毫五笔拼音输入法 Umami Docker 部署及优化 去有风的地方 非 24 小时睡眠觉醒障碍 Memos API 获取总条数 Memos API 公告样式滚动效果 Memos API 调用渲染页面 Memos 手动导入数据 Memos 简介 凉城利川·避暑旅居胜地(附 CCTV 报道) 珊瑚鱼 读《中文大约的确已经死了》 再说评论 且试天下 记一次博客被攻击 Hugo .GitInfo 的替代方案 Gitea 安装备忘 Twikoo 集成 Slimbox2 灯箱插件 童心皆可爱 减肥小结 白粽肉粽及端午快乐安康 劳动合同解除 (终止) 及赔偿一览表 启用 Waline 静态博客评论系统的选择 好好说话 KMS Windows 激活服务器 Ubuntu 20.10 优化 关于 Ubuntu Ubuntu ZFS 原生全盘加密 Ubuntu ZFS 加密 Home 目录 爱丽丝梦游仙境症 偶发 月半 Ubuntu 20.04.1 配置 LNMP 本地环境备忘 佛性写博 Ubuntu 20.04 优化 免费领取咪咕版 Kindle Typecho 迁移到 Hugo 博客迁移到 Hugo GitHub Actions 自动部署 Hexo 脚本 Gridea Hexo Hugo 等 git push 同步到多个仓库 中文文案排版指北 Ubuntu 19.10 优化 Typecho 中英文之间自动加上空格 Ubuntu 配置 EverVim Ubuntu 配置 Guake Ubuntu 配置 Oh-My-Zsh 阿里云镜像改版 备份工具 Duplicati Ubuntu Server snap 安装 Nextcloud Ubuntu Server 安装 Mosh 算命 言论自由 无意义的个性化 「我谈的话题没什么敏感的」 博客换回默认主题
Ubuntu 16.10 优化
Charles Chin · 2016-10-14 · via eallion's Blog

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

Guake 是一个比较酷的终端,除了可以用来装 B,其实也挺实用的。

sudo apt install guake

5、系统设置

系统设置 里进行一些必要的设置,如:壁纸、电源、显示、亮度、隐私

6、安装输入法

我用的是 fcitx 的五笔拼音

sudo apt install fcitx-table-wbpy

如果需要搜狗拼音:

sudo vim /etc/apt/sources.list.d/ubuntukylin.list

加入 ubuntu kylin 的 apt 源:

deb http://archive.ubuntukylin.com:10006/ubuntukylin trusty main  

安装搜狗拼音:

sudo apt update  
sudo apt install sogoupinyin 

直接下载 deb 安装包: http://pinyin.sogou.com/linux/

7、删除 Libreoffice

如果有需求,可以安装 WPS,从官网下载 deb 包即可

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 优化工具

Tweak tool 有两个,一个是 unity-tweak-tool,一个是 gnome-tweak-tool
安装 unity-tweak-tool 后,Amazon 图标会回来,我选择的是安装 gnome-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

1)、先查看你的网卡信息,并非所有网卡都叫 eth0

ifconfig

记录下网卡名字,比如我的,有 enp4s0f2lowlp9s0b1 三个
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

或者把它写入开机启动。
2)、我现在用的是另外一个方法,在 Ubuntu 软件 里搜索 Mouse,结果中选择 Keyboard and Mouse 安装,用这个 GUI 设置。这个方法更简便,重启或休眠后也不会失效。

16、自动挂载硬盘

我一共有 3 块硬盘,除了系统盘,还有 2 块数据盘,因工作娱乐原因,需要自动挂载。
1)、查看硬盘的 UUID 和 Type

sudo blkid

结果会显示:

/dev/sda2: ...
/dev/sdb5: LABEL="files" UUID="a1eaf999-b7dc-41e2-9314-5f4dec421db5" TYPE="ext4"

记录下 UUID 和 Type。
2)、我会选择挂载到 Home 的 Files 文件夹下
新建一个 Files 文件夹

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

配置 Google Authenticator:(非必须,可选)

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

no 改为 yes

ChallengeResponseAuthentication yes
Port 22222 #修改 SSH 端口

18、安装 Shadownsocks Qt5

sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt update
sudo apt install shadowsocks-qt5

启动 Shadowsocks Qt5 的命令:

ss-qt5

19、安装状态栏指示器(显示网速、内存、硬盘)

我用的是: indicator-sysmonitor,Ubuntu 16.04 / 16.10 确认可用。

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 浏览器

如果喜欢 Chromium,可以从软件中心安装
但是我更喜欢 Chrome,到 https://chrome.google.com 可以下载最新版。

23、安装 GDebi

安装 deb 软件包时,可以用 GDebi 替换 Ubuntu 软件中心。

sudo apt install gdebi

24、安装微信

可以直接在 Chrome app 里安装微信应用;

也可以安装 geeeeeeeeek 提供的微信,这实质上跟 Chrome 应用是一回事。
https://github.com/geeeeeeeeek/electronic-wechat
前提是已经安装 gitNode.jsnpm

git clone https://github.com/geeeeeeeeek/electronic-wechat.git
cd electronic-wechat
npm install && npm start

也可直接下载一个 release 版本: electronic-wechat

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
通过 PPA 安装:

sudo add-apt-repository ppa:numix/ppa
sudo apt update
sudo apt install numix-gtk-theme
sudo apt install numix-icon-theme-circle

安装好之后,通过 Tweak tool 设置。