Browse Source

first dietpi fix

#146
rootzoll 6 years ago
parent
commit
5184c01ad1
  1. 18
      build.sdcard/raspbianStretchDesktop.sh

18
build.sdcard/raspbianStretchDesktop.sh

@ -62,7 +62,9 @@ if [ "${baseImage}" = "dietpi" ]; then
sudo usermod -l pi dietpi
echo "install pip"
sudo apt-get update
apt-get install -y python-pip
sudo apt-get remove -y fail2ban
sudo apt-get install -y build-essential
sudp apt-get install -y python-pip
fi
# special prepare when Raspbian
@ -134,13 +136,6 @@ echo "*** SWAP FILE ***"
sudo dphys-swapfile swapoff
sudo dphys-swapfile uninstall
echo ""
echo "*** HARDENING ***"
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#hardening-your-pi
# fail2ban (no config required)
sudo apt-get install -y fail2ban
echo ""
echo "*** INCREASE OPEN FILE LIMIT ***"
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#increase-your-open-files-limit
@ -386,6 +381,13 @@ sudo sed --in-place -i "57s/.*/dtoverlay=tft35a:rotate=270/" /boot/config.txt
EOF
sudo chmod +x /home/pi/setup.sh
echo ""
echo "*** HARDENING ***"
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#hardening-your-pi
# fail2ban (no config required)
sudo apt-get install -y fail2ban
# *** RASPIBLITZ IMAGE READY ***
echo ""
echo "**********************************************"

Loading…
Cancel
Save