setup_weeder.sh
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| setup_weeder.sh [2026/05/21 06:19] – 78.84.63.159 | setup_weeder.sh [2026/05/29 07:14] (current) – 46.109.187.144 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| sudo apt update || true | sudo apt update || true | ||
| sudo apt install -y network-manager openssh-server | sudo apt install -y network-manager openssh-server | ||
| + | echo "=== Disable background updates / indexing / notifications ===" | ||
| + | |||
| + | # Keep correct time sync ON | ||
| + | sudo timedatectl set-timezone Europe/Riga || true | ||
| + | sudo timedatectl set-ntp true || true | ||
| + | |||
| + | # Disable apt automatic update timers/ | ||
| + | sudo systemctl disable --now apt-daily.timer apt-daily-upgrade.timer 2>/ | ||
| + | sudo systemctl disable --now apt-daily.service apt-daily-upgrade.service 2>/ | ||
| + | sudo systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service 2>/ | ||
| + | |||
| + | # Disable unattended upgrades | ||
| + | sudo systemctl disable --now unattended-upgrades.service 2>/ | ||
| + | sudo systemctl mask unattended-upgrades.service 2>/ | ||
| + | |||
| + | # Disable PackageKit / GUI package refresh | ||
| + | sudo systemctl disable --now packagekit.service packagekit-offline-update.service 2>/ | ||
| + | sudo systemctl mask packagekit.service packagekit-offline-update.service 2>/ | ||
| + | |||
| + | # Disable update notifier | ||
| + | sudo systemctl disable --now update-notifier-download.timer update-notifier-download.service 2>/ | ||
| + | sudo systemctl mask update-notifier-download.timer update-notifier-download.service 2>/ | ||
| + | |||
| + | sudo systemctl disable --now update-notifier-motd.timer update-notifier-motd.service 2>/ | ||
| + | sudo systemctl mask update-notifier-motd.timer update-notifier-motd.service 2>/ | ||
| + | |||
| + | # Disable plocate daily database indexing | ||
| + | sudo systemctl disable --now plocate-updatedb.timer plocate-updatedb.service 2>/ | ||
| + | sudo systemctl mask plocate-updatedb.timer plocate-updatedb.service 2>/ | ||
| + | |||
| + | # Disable firmware update daemon refresh | ||
| + | sudo systemctl disable --now fwupd-refresh.timer fwupd-refresh.service 2>/ | ||
| + | sudo systemctl mask fwupd-refresh.timer fwupd-refresh.service 2>/ | ||
| + | |||
| + | # Disable anacron daily jobs | ||
| + | sudo systemctl disable --now anacron.timer anacron.service 2>/ | ||
| + | sudo systemctl mask anacron.timer anacron.service 2>/ | ||
| + | |||
| + | # Disable snap background refresh/ | ||
| + | sudo systemctl disable --now snapd.service snapd.socket snapd.seeded.service 2>/ | ||
| + | sudo systemctl mask snapd.service snapd.socket snapd.seeded.service 2>/ | ||
| + | |||
| + | # Disable printing services if printer support is not needed | ||
| + | sudo systemctl disable --now cups.service cups.socket cups.path cups-browsed.service 2>/ | ||
| + | sudo systemctl mask cups.service cups.socket cups.path cups-browsed.service 2>/ | ||
| + | |||
| + | # Disable GNOME tracker file indexing for user pi | ||
| + | sudo -u pi systemctl --user stop tracker-miner-fs-3.service tracker-extract-3.service 2>/ | ||
| + | sudo -u pi systemctl --user mask tracker-miner-fs-3.service tracker-extract-3.service 2>/ | ||
| + | |||
| + | # Kill already running background processes | ||
| + | pkill -f tracker-miner-fs-3 2>/ | ||
| + | pkill -f update-notifier 2>/ | ||
| + | pkill -f apt-check 2>/ | ||
| + | pkill -f snap-store 2>/ | ||
| + | pkill -f snapd-desktop-integration 2>/ | ||
| + | |||
| + | # Disable APT periodic config | ||
| + | sudo bash -c 'cat > / | ||
| + | APT:: | ||
| + | APT:: | ||
| + | APT:: | ||
| + | APT:: | ||
| + | EOF' | ||
| sudo systemctl enable --now NetworkManager | sudo systemctl enable --now NetworkManager | ||
| sudo systemctl enable --now ssh | sudo systemctl enable --now ssh | ||
| Line 235: | Line 299: | ||
| sudo reboot | sudo reboot | ||
| </ | </ | ||
| + | |||
| + | sudo systemctl disable --now apt-daily.timer | ||
| + | sudo systemctl disable --now apt-daily-upgrade.timer | ||
| + | sudo systemctl disable --now unattended-upgrades.service | ||
| + | sudo systemctl disable --now packagekit.service | ||
setup_weeder.sh.1779344373.txt.gz · Last modified: by 78.84.63.159 · Currently locked by: 216.73.217.69
