ubuntu 22.04系统运行优化
2023-12-04 本文已影响0人
_micang
1. 限制「启动应用程序」
搜索「启动应用程序」来管理「启动应用程序首选项」
2. 减少Grub加载时间
Grub 等待时间设置到 10 秒以下来让机器启动更快,GRUB_TIMEOUT=2,这样就只需等待 2 秒:
sudo gedit /etc/default/grub
sudo update-grub
3. 用TLP降低发热
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw
sudo tlp start
4. 设置软件更新镜像
搜索打开「软件和更新」——选择「Ubuntu 软件」选项卡——在「下载自…」中选择一个最适合您的软件源。
阿里云:https://developer.aliyun.com/mirror/ubuntu
清华源:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu
中国科学技术大学:https://mirrors.ustc.edu.cn/help/ubuntu.html
5. 使用apt-fast取代apt-get
sudo apt-get update
sudo apt-get install apt-fast
6. 清理Ubuntu
sudo apt clean
sudo apt autoremove
7. 安装Preload
Preload(预加载)会在后台工作,以「研究」您如何使用计算机并增强计算机的应用程序处理能力。安装好 Preload 后,您使用频率最高的应用程序的加载速度就会明显快于不经常使用的应用程序。
sudo apt install preload
8. 移除Apt-Get的翻译包
sudo gedit /etc/apt/apt.conf.d/00aptitude
将这行代码附加到文件末尾:
Acquire::Languages "none";
9. 减少 Linux 磁盘抖动,使用 Zswap 提升小内存 Linux PC 性能
vi /etc/default/grub
在 GRUB_CMDLINE_LINUX_DEFAULT 行的引号内容中追加 zswap.enabled=1
sudo update-grub