Skip to content

Instantly share code, notes, and snippets.

@s0racat
Last active February 1, 2026 10:10
Show Gist options
  • Select an option

  • Save s0racat/e131b891df13899ade2a40c93df81c58 to your computer and use it in GitHub Desktop.

Select an option

Save s0racat/e131b891df13899ade2a40c93df81c58 to your computer and use it in GitHub Desktop.
unattended-upgrades ラズパイ
// 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"; # 既存の設定ファイルをそのまま残す
}
@s0racat
Copy link
Author

s0racat commented Jan 21, 2026

curl https://gist.githubusercontent.com/s0racat/e131b891df13899ade2a40c93df81c58/raw/52unattended-upgrades-rpi | \
  sudo tee /etc/apt/apt.conf.d/52unattended-upgrades-local

@s0racat
Copy link
Author

s0racat commented Jan 31, 2026

sudo apt install unattended-upgrades etherwake adb arp-scan powertop

https://tailscale.com/download/linux

@s0racat
Copy link
Author

s0racat commented Feb 1, 2026

echo 'vm.swappiness=10' | sudo tee /etc/sysctl.d/swappiness.conf

@s0racat
Copy link
Author

s0racat commented Feb 1, 2026

royhills/arp-scan#183

sudo setcap cap_net_raw+p /usr/sbin/arp-scan

@s0racat
Copy link
Author

s0racat commented Feb 1, 2026

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=60

https://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