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 07:31] – 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 | + | echo "=== Disable background updates |
| - | # Keep time sync ON, but set timezone | + | # Keep correct |
| sudo timedatectl set-timezone Europe/Riga || true | sudo timedatectl set-timezone Europe/Riga || true | ||
| sudo timedatectl set-ntp true || true | sudo timedatectl set-ntp true || true | ||
| - | # Disable | + | # Disable |
| - | sudo systemctl disable --now apt-daily.timer apt-daily-upgrade.timer || true | + | sudo systemctl disable --now apt-daily.timer apt-daily-upgrade.timer |
| - | sudo systemctl disable --now apt-daily.service apt-daily-upgrade.service || true | + | sudo systemctl disable --now apt-daily.service apt-daily-upgrade.service |
| - | sudo systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service || true | + | sudo systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service |
| # Disable unattended upgrades | # Disable unattended upgrades | ||
| - | sudo systemctl disable --now unattended-upgrades.service || true | + | sudo systemctl disable --now unattended-upgrades.service |
| - | sudo systemctl mask unattended-upgrades.service || true | + | sudo systemctl mask unattended-upgrades.service |
| - | # Disable PackageKit | + | # Disable PackageKit |
| - | sudo systemctl disable --now packagekit.service packagekit-offline-update.service || true | + | sudo systemctl disable --now packagekit.service packagekit-offline-update.service |
| - | sudo systemctl mask packagekit.service packagekit-offline-update.service || true | + | sudo systemctl mask packagekit.service packagekit-offline-update.service |
| - | # Disable update-notifier | + | # Disable update notifier |
| - | sudo systemctl disable --now motd-news.service motd-news.timer || true | + | sudo systemctl disable --now update-notifier-download.timer |
| - | sudo systemctl mask motd-news.service motd-news.timer || true | + | sudo systemctl mask update-notifier-download.timer |
| - | # Disable Snap background refresh services | + | sudo systemctl disable --now update-notifier-motd.timer update-notifier-motd.service |
| - | sudo systemctl disable --now snapd.service snapd.socket snapd.seeded.service || true | + | sudo systemctl mask update-notifier-motd.timer update-notifier-motd.service |
| - | sudo systemctl mask snapd.service snapd.socket snapd.seeded.service || true | + | |
| - | # Disable | + | # Disable |
| - | sudo systemctl disable --now cups.service cups.socket cups.path cups-browsed.service || true | + | sudo systemctl disable --now plocate-updatedb.timer plocate-updatedb.service |
| - | sudo systemctl mask cups.service cups.socket cups.path cups-browsed.service || true | + | sudo systemctl mask plocate-updatedb.timer plocate-updatedb.service |
| - | # Disable | + | # Disable |
| - | sudo systemctl disable --now anacron.service || true | + | sudo systemctl disable --now fwupd-refresh.timer fwupd-refresh.service |
| - | sudo systemctl mask anacron.service || true | + | sudo systemctl mask fwupd-refresh.timer fwupd-refresh.service |
| - | # Disable | + | # Disable |
| - | sudo -u pi systemctl --user mask tracker-extract-3.service | + | sudo systemctl |
| + | sudo systemctl mask anacron.timer anacron.service 2>/ | ||
| - | # APT periodic config | + | # Disable snap background refresh/ |
| - | sudo bash -c "cat <<' | + | sudo systemctl disable --now snapd.service snapd.socket snapd.seeded.service 2>/ |
| - | APT:: | + | sudo systemctl mask snapd.service snapd.socket snapd.seeded.service 2>/ |
| - | APT:: | + | |
| - | APT:: | + | # Disable printing services if printer support is not needed |
| - | APT:: | + | sudo systemctl disable --now cups.service cups.socket cups.path cups-browsed.service 2>/ |
| - | EOF" | + | 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 | ||
| + | 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 280: | 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.1779348670.txt.gz · Last modified: by 78.84.63.159 · Currently locked by: 216.73.217.69
