Skip to content

Instantly share code, notes, and snippets.

@todgru
Last active January 13, 2019 19:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/9df936d51c1464b32336b2bfff0aed1d to your computer and use it in GitHub Desktop.
Save todgru/9df936d51c1464b32336b2bfff0aed1d to your computer and use it in GitHub Desktop.
raspberry pi debian 9 stretch cleanup and nice-to-have package install
# modified version of:
# wget https://gist.githubusercontent.com/samatjain/4dda24e14a5b73481e2a/raw/5d9bac8ec40b94833b4e9938121945be252fdee1/Slim-Raspbian.sh -O Slim-Raspbian.sh
# GUI-related packages
# none right now...
# Edu-related packages
pkgs="
oracle-java8-jdk
minecraft-pi
python-minecraftpi
libreoffice*
wolfram-engine
"
# Remove packages
for i in $pkgs; do
echo apt-get -y remove --purge $i
done
echo sudo apt-get -y clean
echo sudo apt-get -y autoremove
# upgrades and installs
echo sudo apt-get -y update
echo sudo apt-get -y upgrade
# nice-to-have if running any ui for a raspberry pi
# echo sudo apt-get -y install matchbox-keyboard
# install node 11x
echo curl -sL https://deb.nodesource.com/setup_11.x | sudo bash -
echo sudo apt-get install -y nodejs
# install git, ufw, easy peasy manager for iptables, dnsutils(nmap,dig)
echo sudo apt install -y vim git ufw dnsutils nginx
# docker install
echo curl -sSL https://get.docker.com | sudo sh
# install fail2ban for spam ip rejection
cd /opt
git clone https://github.com/fail2ban/fail2ban.git
cd fail2ban
python setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment