Browse Source

clean build script

dev
openoms 6 years ago
parent
commit
9ab1f1fe88
  1. 14
      README.md
  2. 24
      build.sdcard/raspbianStretchDesktop.sh

14
README.md

@ -417,3 +417,17 @@ https://thecryptocloak.com/product/lightningshell/
* Y-Cable https://www.amazon.de/dp/B00ZJBIHVY / http://a.co/0WTA7nz
If you organizing an educational event where you want to support people learning on and with multiple RaspiBlitz, here is a package list of useful hardware to have at that event: [ [Event Package List](shoppinglist_event.md) ]
# RaspiBlitz on DietPi
DietPi is a lightweight operating system based Debian (just like Raspbian).
It is compatible with a range of ARM based SBC-s.
Check it out on: [dietpi.com](https://dietpi.com)
Issues:
* Setup is not automated yet - more steps required than running on Raspbian.
* There is no LCD support yet on DietPi.
See the instructions using DietPi for multiple kind of hardware: [dietpi/README.md](dietpi/README.md)
after installing DietPi and building the SDcard the setup continues from [Documentation](#documentation))

24
build.sdcard/raspbianStretchDesktop.sh

@ -96,8 +96,6 @@ if [ "${baseImage}" = "dietpi" ]; then
echo "*** PREPARE DietPi ***"
echo "renaming dietpi user to pi"
sudo usermod -l pi dietpi
# add pi to the sudo group
sudo adduser pi sudo
echo "install pip"
sudo apt-get update
sudo apt-get remove -y fail2ban
@ -116,7 +114,6 @@ if [ "${baseImage}" = "dietpi" ]; then
# install OpenSSH client + server
sudo apt install -y openssh-client
sudo apt install -y openssh-sftp-server
sudo apt install -y openssh-server
fi
@ -465,8 +462,9 @@ sudo bash -c "echo 'PATH=\$PATH:/sbin' >> /etc/profile"
# profile path for admin
sudo bash -c "echo '' >> /home/admin/.profile"
sudo bash -c "echo 'GOROOT=/usr/local/go' >> /home/admin/.profile"
sudo bash -c "echo 'PATH=\$PATH:\$GOROOT/bin:' >> /home/admin/.profile"
sudo bash -c "echo 'PATH=\$PATH:\$GOROOT/bin' >> /home/admin/.profile"
sudo bash -c "echo 'GOPATH=/usr/local/gocode' >> /home/admin/.profile"
sudo bash -c "echo 'PATH=\$PATH:\$GOPATH/bin' >> /home/admin/.profile"
# bash autostart for admin
sudo bash -c "echo '# shortcut commands' >> /home/admin/.bashrc"
@ -514,6 +512,22 @@ sudo chmod +x /home/admin/_background.sh
sudo cp ./assets/background.service /etc/systemd/system/background.service
sudo systemctl enable background
# Prepare for TOR service
echo "*** Adding Tor Sources to sources.list ***"
echo "deb http://deb.torproject.org/torproject.org stretch main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://deb.torproject.org/torproject.org stretch main" | sudo tee -a /etc/apt/sources.list
echo "OK"
echo ""
echo "*** Installing dirmngr ***"
sudo apt install dirmngr
echo ""
echo "*** Fetching GPG key ***"
sudo gpg --keyserver keys.gnupg.net --recv 886DDD89
sudo gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -
sudo gpg --keyserver pgpkeys.mit.edu --recv-key 74A941BA219EC810
sudo gpg -a --export 74A941BA219EC810 | sudo apt-key add -
echo "!!!!!! Please check if the above really worked!"
# *** RASPIBLITZ IMAGE READY ***
echo ""
echo "**********************************************"
@ -592,4 +606,4 @@ if [ "${baseImage}" = "raspbian" ]; then
fi
EOF
init 6
fi
fi

Loading…
Cancel
Save