Browse Source

fix TOR install #304

dev
rootzoll 6 years ago
parent
commit
2aa1c8471e
  1. 10
      build_sdcard.sh
  2. 9
      home.admin/config.scripts/internet.tor.sh

10
build_sdcard.sh

@ -542,10 +542,12 @@ if [ "${baseImage}" = "raspbian" ]; then
dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!" 6 80 dialog --title "Display" --yesno "Are you using the default display available from Amazon?\nSelect 'No' if you are using the Swiss version from play-zone.ch!" 6 80
defaultDisplay=$? defaultDisplay=$?
if [[ $defaultDisplay -eq 0 ]] if [ "${defaultDisplay}" = "0" ]; then
then
# *** RASPIBLITZ / LCD (at last - because makes a reboot) *** # *** RASPIBLITZ / LCD (at last - because makes a reboot) ***
# based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip # based on https://www.elegoo.com/tutorial/Elegoo%203.5%20inch%20Touch%20Screen%20User%20Manual%20V1.00.2017.10.09.zip
echo "--> LCD DEFAULT"
cd /home/admin/ cd /home/admin/
sudo apt-mark hold raspberrypi-bootloader sudo apt-mark hold raspberrypi-bootloader
git clone https://github.com/goodtft/LCD-show.git git clone https://github.com/goodtft/LCD-show.git
@ -553,10 +555,13 @@ if [ "${baseImage}" = "raspbian" ]; then
sudo chown -R admin:admin LCD-show sudo chown -R admin:admin LCD-show
cd LCD-show/ cd LCD-show/
sudo ./LCD35-show sudo ./LCD35-show
else else
# Download and install the driver # Download and install the driver
# based on http://www.raspberrypiwiki.com/index.php/3.5_inch_TFT_800x480@60fps # based on http://www.raspberrypiwiki.com/index.php/3.5_inch_TFT_800x480@60fps
echo "--> LCD ALTERNATIVE"
cd /boot cd /boot
sudo wget http://www.raspberrypiwiki.com/download/RPI-HD-35-INCH-TFT/dt-blob-For-3B-plus.bin sudo wget http://www.raspberrypiwiki.com/download/RPI-HD-35-INCH-TFT/dt-blob-For-3B-plus.bin
sudo mv dt-blob-For-3B-plus.bin dt-blob.bin sudo mv dt-blob-For-3B-plus.bin dt-blob.bin
@ -591,3 +596,4 @@ if [ "${baseImage}" = "raspbian" ]; then
EOF EOF
init 6 init 6
fi fi
fi

9
home.admin/config.scripts/internet.tor.sh

@ -18,6 +18,10 @@ prepareTorSources()
# Prepare for TOR service # Prepare for TOR service
echo "*** Install TOR repo keys ***" echo "*** Install TOR repo keys ***"
echo "*** Installing dirmngr ***"
sudo apt install dirmngr -y
echo ""
recvKeyResult=$(sudo gpg --keyserver keys.gnupg.net --recv 886DDD89 2>&1) recvKeyResult=$(sudo gpg --keyserver keys.gnupg.net --recv 886DDD89 2>&1)
echo "${recvKeyResult}" echo "${recvKeyResult}"
recvKeyFailed=$(echo "${recvKeyResult}" | grep -c 'Total number processed: 0') recvKeyFailed=$(echo "${recvKeyResult}" | grep -c 'Total number processed: 0')
@ -108,10 +112,6 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
sudo apt-get update sudo apt-get update
echo "" echo ""
echo "*** Installing dirmngr ***"
sudo apt install dirmngr -y
echo ""
echo "*** Install Tor ***" echo "*** Install Tor ***"
sudo apt install tor tor-arm -y sudo apt install tor tor-arm -y
@ -219,7 +219,6 @@ EOF
fi fi
# ACTIVATE LND OVER TOR # ACTIVATE LND OVER TOR
echo "*** Putting LND behind TOR ***" echo "*** Putting LND behind TOR ***"
echo "Make sutre LND is disabled" echo "Make sutre LND is disabled"

Loading…
Cancel
Save