HCM

Happy Coding Monkey

Ubuntu 20.04 Desktop安装后瘦身

2021-06-26


clean up

## remove snap
## stop snapd services
$ sudo systemctl stop snapd && sudo systemctl disable snapd
#  purge snapd
$ sudo apt purge snapd

## remove no longer needed folders
$ rm -rf ~/snap
$ sudo rm -rf /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd

## remove goa-daemon
$ cd /usr/share/dbus-1/services
$ sudo ln -snf /dev/null org.gnome.OnlineAccounts.service

# tracker-miner-fs
# Tracker is an indexing system
$ sudo apt remove tracker tracker-extract tracker-miner-fs

# stop X-server
$ sudo systemctl disable gdm

$ sudo apt autoremove
# reboot

How to turn off display remotely

$ mount -o remount,exec /dev
$ vbetool dpms off
## if not mount, error happens: mmap /dev/zero: Operation not permitted

Ubuntu Server

pi preinstall

unattended-upgrade auto update job: https://www.cnblogs.com/sparkdev/p/11376560.html