rasbpi-backpack

remove crap

sudo apt remove libreoffice* wolfram* minecraft-pi sonic-pi scratch nuscratch idle3 smartsim  java-common python-minecraftpi python3-minecraftpi bluej nodered claws-mail claws-mail-i18n python-pygame --purge -y
sudo apt clean && sudo apt autoremove --purge -y
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y

ssh

  • sshd_config: /etc/ssh/sshd_config
  • disables password login, so you must setup ssh keys before using this config

Firewall

see: security

  • jail.local: /etc/fail2ban/jail.local
ufw allow <portnum>

nginx

sudo apt-get install nginx

config in: /etc/nginx/sites-available

Start on re-boot:

sudo systemctl enable nginx

grafana

https://grafana.com/grafana/download?platform=arm

wget https://dl.grafana.com/oss/release/grafana_6.1.4_armhf.deb
sudo dpkg -i grafana_6.1.4_armhf.deb

imported this dashboard (super cool): https://grafana.com/dashboards/4823