mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-18 18:07:45 +01:00
first dietpi fix
This commit is contained in:
@@ -62,7 +62,9 @@ if [ "${baseImage}" = "dietpi" ]; then
|
|||||||
sudo usermod -l pi dietpi
|
sudo usermod -l pi dietpi
|
||||||
echo "install pip"
|
echo "install pip"
|
||||||
sudo apt-get update
|
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
|
fi
|
||||||
|
|
||||||
# special prepare when Raspbian
|
# special prepare when Raspbian
|
||||||
@@ -134,13 +136,6 @@ echo "*** SWAP FILE ***"
|
|||||||
sudo dphys-swapfile swapoff
|
sudo dphys-swapfile swapoff
|
||||||
sudo dphys-swapfile uninstall
|
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 ""
|
||||||
echo "*** INCREASE OPEN FILE LIMIT ***"
|
echo "*** INCREASE OPEN FILE LIMIT ***"
|
||||||
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#increase-your-open-files-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
|
EOF
|
||||||
sudo chmod +x /home/pi/setup.sh
|
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 ***
|
# *** RASPIBLITZ IMAGE READY ***
|
||||||
echo ""
|
echo ""
|
||||||
echo "**********************************************"
|
echo "**********************************************"
|
||||||
|
|||||||
Reference in New Issue
Block a user