mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 22:58:43 +01:00
first dietpi fix
This commit is contained in:
parent
b9c1653e7a
commit
5184c01ad1
1 changed files with 10 additions and 8 deletions
|
@ -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…
Add table
Reference in a new issue