Last active
February 1, 2026 10:10
-
-
Save s0racat/e131b891df13899ade2a40c93df81c58 to your computer and use it in GitHub Desktop.
unattended-upgrades ラズパイ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // sudo unattended-upgrade -d --dry-run | |
| // apt-cache policy | |
| Unattended-Upgrade::Origins-Pattern { | |
| "origin=Tailscale,codename=${distro_codename},label=Tailscale"; | |
| }; | |
| Unattended-Upgrade::Automatic-Reboot "true"; | |
| Unattended-Upgrade::Automatic-Reboot-Time "02:00"; | |
| Dpkg::Options { | |
| "--force-confdef"; # デフォルトの処理を自動選択 | |
| "--force-confold"; # 既存の設定ファイルをそのまま残す | |
| } |
Author
Author
sudo apt install unattended-upgrades etherwake adb arp-scan powertop
Author
echo 'vm.swappiness=10' | sudo tee /etc/sysctl.d/swappiness.conf
Author
sudo setcap cap_net_raw+p /usr/sbin/arp-scan
Author
powersave
sudo rfkill block bluetooth/boot/firmware/config.txt
arm_freq=900
arm_freq_max=900
arm_freq_min=150
gpu_freq=250
core_freq_min=250
sdram_freq_min=250
over_voltage=-3
over_voltage_min=-8
initial_turbo=30
temp_limit=60https://www.reddit.com/r/raspberry_pi/comments/aki1is/reducing_power_of_the_raspberry_pi_3_b/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/s0racat/e131b891df13899ade2a40c93df81c58/raw/52unattended-upgrades-rpi | \ sudo tee /etc/apt/apt.conf.d/52unattended-upgrades-local