在 Ubuntu 中优化启动项,可以从关闭不必要的自启动程序、精简系统服务、使用更快的引导方式等方面入手。下面按实用程度给你一套方案。
gnome-session-properties
(如果没有,可安装:sudo apt install gnome-startup-applications)
ls ~/.config/autostart/
不需要的 .desktop 文件可直接删除。
systemd-analyze blame
sudo systemctl disable bluetooth.service
sudo systemctl disable cups.service
sudo systemctl disable avahi-daemon.service
✅ 常见可禁用(按需):
bluetooth(不用蓝牙)cups(不打印)snapd(不用 Snap)⚠️ 不要禁用:
networksystemdudev编辑:
sudo nano /etc/default/grub
修改:
GRUB_TIMEOUT=2
然后:
sudo update-grub
如果是 SSD:
sudo systemctl enable fstrim.timer
sudo apt autoremove
snap list
sudo snap remove xxx
systemd-analyze
systemd-analyze critical-chain
如果你愿意,可以:
systemd-analyze blame 结果我可以帮你精确优化到每一项。