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

推荐订阅源

K
Kaspersky official blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Cyberwarzone
Cyberwarzone
S
Securelist
S
Schneier on Security
V
Vulnerabilities – Threatpost
Latest news
Latest news
G
GRAHAM CLULEY
C
CERT Recently Published Vulnerability Notes
T
The Exploit Database - CXSecurity.com
Scott Helme
Scott Helme
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
S
SegmentFault 最新的问题
Jina AI
Jina AI
A
About on SuperTechFans
GbyAI
GbyAI
F
Full Disclosure
T
Tenable Blog
博客园 - 聂微东
P
Privacy International News Feed
Recorded Future
Recorded Future
PCI Perspectives
PCI Perspectives
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
NISL@THU
NISL@THU
Microsoft Security Blog
Microsoft Security Blog
C
Check Point Blog
The GitHub Blog
The GitHub Blog
IT之家
IT之家
S
Secure Thoughts
Cloudbric
Cloudbric
S
Security @ Cisco Blogs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
博客园_首页
N
News | PayPal Newsroom
有赞技术团队
有赞技术团队
I
Intezer
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
大猫的无限游戏
大猫的无限游戏
The Register - Security
The Register - Security
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
Martin Fowler
Martin Fowler
小众软件
小众软件
人人都是产品经理
人人都是产品经理
C
Cyber Attacks, Cyber Crime and Cyber Security
宝玉的分享
宝玉的分享
Schneier on Security
Schneier on Security

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 创建观影页面 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 算命 言论自由 无意义的个性化 「我谈的话题没什么敏感的」 博客换回默认主题 typecho1.2 (18.10.23) 新窗口打开链接 一言 APP 添加 “今日诗词” 官方源 api 让 Firefox 只在新标签页 newtab 显示书签栏 爱子七不责
Ubuntu 16.10 优化
Charles Chin · 2016-10-14 · via eallion's Blog

阿里云: 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
sudo apt update
sudo apt upgrade

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

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

我用的是 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/

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

sudo apt remove libreoffice-common  
sudo apt remove unity-webapps-common  

时间和日期 设置里,选择年份和星期同时显示,月份则会出现 “月月” 两个月字。
解决方法:
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'

下方显示:

gsettings set com.canonical.Unity.Launcher launcher-position Bottom

左方显示:

gsettings set com.canonical.Unity.Launcher launcher-position Left
gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/launcher-minimize-window true

Tweak tool 有两个,一个是 unity-tweak-tool,一个是 gnome-tweak-tool
安装 unity-tweak-tool 后,Amazon 图标会回来,我选择的是安装 gnome-tweak-tool

sudo apt install gnome-tweak-tool

编辑:

sudo vim /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf

把里面的内容修改为:

[Seat:*]
#guest-wrapper=/usr/lib/lightdm/lightdm-guest-session
allow-guest=false

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

记录下网卡名字,比如我的,有 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)、重启生效:

注:鼠标加速度鼠标速度 是两个不同的概念
1)、命令:

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

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

结果会显示:

/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)、编辑文件:

按格式添加:

UUID=a1eaf999-b7dc-41e2-9314-5f4dec421db5    /home/eallion/Files    ext4    defaults    0    0
sudo apt install openssh-server

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

sudo apt install libpam-google-authenticator

启动:

修改配置:

添加:

auth required pam_google_authenticator.so

修改:

sudo vim /etc/ssh/sshd_config

no 改为 yes

ChallengeResponseAuthentication yes
Port 22222 #修改 SSH 端口
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt update
sudo apt install shadowsocks-qt5

启动 Shadowsocks Qt5 的命令:

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

sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor
sudo apt update
sudo apt install indicator-sysmonitor
cd ~
sudo apt install git curl zsh
sh -c "$(curl -fsSL https://raw.GitHubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

修改一下配置:

...
ZSH_THEME="ys" #主题
...
plugins=(git sudo cp fasd ...) #插件
...
sudo apt install virtualbox

也可以从官网下载最新版

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

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

可以直接在 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

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

提高电池的寿命并且减少过热

sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw
sudo tlp start

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 设置。