Fix Proxmox swapping issue

I recently had an issue with one of my Proxmox hosts where it would max out all swap and slow down to a crawl despite having plenty of physical memory free. After digging and tweaking, I found this post which directed to set the kernel swappiness setting to 0. More reading suggested I should set it to 1, which is what I did.

Append to /etc/sysctl.conf:

#Fix excessive swap usage
vm.swappiness = 1 

Apply settings with:

sysctl --system

This did the trick for me.

Rasbperry Pi as a dashboard computer

Here are my raw, unpolished notes on how I set up a raspberry pi to serve as a dashboard display:

Use Raspbian OS

Autostart Chrome in kiosk mode

@chromium-browser --kiosk --incognito <url> --disable-infobars --disable-session-crashed-bubble

Prevent Chrome crash bubble

vim /home/pi/.config/chromium/Default/Preferences

chattr +i /home/pi/.config/chromium/Default/Preferences

Mouse removal

sudo apt-get install unclutter

in ~/.config/lxsession/LXDE-pi/autostart add

@unclutter -idle 5

Disable screen blank:

in /etc/lightdm/lightdm.conf add

xserver-command=X -s 0 -dpms

Open up SSH & VNC


Interfaces / SSH & Interfaces / VNC: Enable

Increase swap file

sudo nano /etc/dphys-swapfile

Configure NTP

sudo apt-get install openntpd
sudo systemctl enable openntpd