User Tools

Site Tools


setup_weeder.sh

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
setup_weeder.sh [2026/05/21 07:31] 78.84.63.159setup_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 auto updates and desktop indexing ==="+echo "=== Disable background updates indexing / notifications ==="
  
-# Keep time sync ON, but set timezone+# Keep correct time sync ON
 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 APT automatic update timers +# Disable apt automatic update timers/services 
-sudo systemctl disable --now apt-daily.timer apt-daily-upgrade.timer || true +sudo systemctl disable --now apt-daily.timer apt-daily-upgrade.timer 2>/dev/null || true 
-sudo systemctl disable --now apt-daily.service apt-daily-upgrade.service || true +sudo systemctl disable --now apt-daily.service apt-daily-upgrade.service 2>/dev/null || true 
-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 2>/dev/null || true
  
 # Disable unattended upgrades # Disable unattended upgrades
-sudo systemctl disable --now unattended-upgrades.service || true +sudo systemctl disable --now unattended-upgrades.service 2>/dev/null || true 
-sudo systemctl mask unattended-upgrades.service || true+sudo systemctl mask unattended-upgrades.service 2>/dev/null || true
  
-# Disable PackageKit auto refresh +# Disable PackageKit / GUI package refresh 
-sudo systemctl disable --now packagekit.service packagekit-offline-update.service || true +sudo systemctl disable --now packagekit.service packagekit-offline-update.service 2>/dev/null || true 
-sudo systemctl mask packagekit.service packagekit-offline-update.service || true+sudo systemctl mask packagekit.service packagekit-offline-update.service 2>/dev/null || true
  
-# Disable update-notifier / MOTD news +# Disable update notifier 
-sudo systemctl disable --now motd-news.service motd-news.timer || true +sudo systemctl disable --now update-notifier-download.timer update-notifier-download.service 2>/dev/null || true 
-sudo systemctl mask motd-news.service motd-news.timer || true+sudo systemctl mask update-notifier-download.timer update-notifier-download.service 2>/dev/null || true
  
-# Disable Snap background refresh services +sudo systemctl disable --now update-notifier-motd.timer update-notifier-motd.service 2>/dev/null || true 
-sudo systemctl disable --now snapd.service snapd.socket snapd.seeded.service || true +sudo systemctl mask update-notifier-motd.timer update-notifier-motd.service 2>/dev/null || true
-sudo systemctl mask snapd.service snapd.socket snapd.seeded.service || true+
  
-# Disable printing services if not needed +# Disable plocate daily database indexing 
-sudo systemctl disable --now cups.service cups.socket cups.path cups-browsed.service || true +sudo systemctl disable --now plocate-updatedb.timer plocate-updatedb.service 2>/dev/null || true 
-sudo systemctl mask cups.service cups.socket cups.path cups-browsed.service || true+sudo systemctl mask plocate-updatedb.timer plocate-updatedb.service 2>/dev/null || true
  
-# Disable anacron if you do not need daily maintenance jobs +# Disable firmware update daemon refresh 
-sudo systemctl disable --now anacron.service || true +sudo systemctl disable --now fwupd-refresh.timer fwupd-refresh.service 2>/dev/null || true 
-sudo systemctl mask anacron.service || true+sudo systemctl mask fwupd-refresh.timer fwupd-refresh.service 2>/dev/null || true
  
-# Disable Tracker desktop file indexing for user pi +# Disable anacron daily jobs 
-sudo -u pi systemctl --user mask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service 2>/dev/null || true+sudo systemctl disable --now anacron.timer anacron.service 2>/dev/null || true 
 +sudo systemctl mask anacron.timer anacron.service 2>/dev/null || true
  
-# APT periodic config OFF +Disable snap background refresh/services if you do not need snap apps 
-sudo bash -c "cat <<'EOF' > /etc/apt/apt.conf.d/20auto-upgrades +sudo systemctl disable --now snapd.service snapd.socket snapd.seeded.service 2>/dev/null || true 
-APT::Periodic::Update-Package-Lists \"0\"; +sudo systemctl mask snapd.service snapd.socket snapd.seeded.service 2>/dev/null || true 
-APT::Periodic::Download-Upgradeable-Packages \"0\"; + 
-APT::Periodic::AutocleanInterval \"0\"; +# Disable printing services if printer support is not needed 
-APT::Periodic::Unattended-Upgrade \"0\"; +sudo systemctl disable --now cups.service cups.socket cups.path cups-browsed.service 2>/dev/null || true 
-EOF"+sudo systemctl mask cups.service cups.socket cups.path cups-browsed.service 2>/dev/null || true 
 + 
 +# Disable GNOME tracker file indexing for user pi 
 +sudo -u pi systemctl --user stop tracker-miner-fs-3.service tracker-extract-3.service 2>/dev/null || true 
 +sudo -u pi systemctl --user mask tracker-miner-fs-3.service tracker-extract-3.service 2>/dev/null || true 
 + 
 +# Kill already running background processes 
 +pkill -f tracker-miner-fs-3 2>/dev/null || true 
 +pkill -f update-notifier 2>/dev/null || true 
 +pkill -f apt-check 2>/dev/null || true 
 +pkill -f snap-store 2>/dev/null || true 
 +pkill -f snapd-desktop-integration 2>/dev/null || true 
 + 
 +# Disable APT periodic config 
 +sudo bash -c 'cat > /etc/apt/apt.conf.d/20auto-upgrades <<EOF 
 +APT::Periodic::Update-Package-Lists "0"; 
 +APT::Periodic::Download-Upgradeable-Packages "0"; 
 +APT::Periodic::AutocleanInterval "0"; 
 +APT::Periodic::Unattended-Upgrade "0"; 
 +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
 </code> </code>
 +
 +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