Compare commits
No commits in common. "974ee0d62da668f3bfc3dd14f84aebe3fdaa818a" and "757ed6b37674d6f6426b9069ae95dbb783e5508a" have entirely different histories.
974ee0d62d
...
757ed6b376
|
@ -21,7 +21,6 @@ Items marked ```REQUIRED``` are assumed to be setup and working. You've been war
|
|||
* [System Monitoring (REQUIRED)](monit.md)
|
||||
* [CPU Governor (VERY SMART)](cpu_governor.md)
|
||||
* [Logs in RAM (log2ram / VERY SMART)](log2ram.md)
|
||||
* [Apt use RAM (VERY SMART FOR 4Gb RAM)](apt_cache_tmpfs.md)
|
||||
* [Pimoroni Fan Shim](pimoroni_fan_shim.md)
|
||||
* [HDMI Scheduled On/Off](scheduled_display.md)
|
||||
* [Backups via restic](restic.md)
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
# tmpfs apt cache
|
||||
|
||||
**Please Note: this will use 512M RAM for the tmpfs (it'll usually be smaller) and can cause apt automatic updates to fail. You'll need/want to watch your logs and automatic updates if using this setup.**
|
||||
|
||||
The below commands will enable tmpfs (in memory filesystem) for ```/var/cache/apt``` which has heavy disk write turnover due to automatic updates.
|
||||
|
||||
``` sh
|
||||
|
||||
sudo -sHu root
|
||||
rm -r /var/cache/apt/*
|
||||
cat >> /etc/fstab <<EOF
|
||||
tmpfs /var/cache/apt tmpfs size=512M,defaults,noatime,nodiratime 0 1
|
||||
EOF
|
||||
|
||||
mount /var/cache/apt
|
||||
df -h /var/cache/apt
|
||||
|
||||
```
|
|
@ -5,9 +5,6 @@ The below will setup nightly automatic update and reboots for the PiFrame. This
|
|||
``` sh
|
||||
|
||||
apt install unattended-upgrades
|
||||
nano -w /etc/apt/apt.conf.d/10periodic
|
||||
APT::Periodic::AutocleanInterval "1";
|
||||
APT::Periodic::CleanInterval "1";
|
||||
nano -w /etc/apt/apt.conf.d/50unattended-upgrades
|
||||
Unattended-Upgrade::Mail "user@domain.tld";
|
||||
Unattended-Upgrade::Automatic-Reboot "true";
|
||||
|
|
Loading…
Reference in a new issue