TEXT   13

load-prep-vpn.txt

Guest on 19th May 2021 11:27:31 AM

  1. #!/bin/bash -x
  2. # Installs Prereqs. "bash -x" (xtrace) like -v (verbose) but expands commands.
  3.  
  4. # 1. RUN: "sudo su -" then "raspi-config" to set "Localisation Options"
  5. # 2. OPTIONAL: "passwd pi; touch /boot/ssh; reboot" to ssh in immediately
  6. # 3. RUN THIS SCRIPT: curl download.iiab.io/6.5/load-prep-vpn.txt | bash
  7. # 4. Run "teamviewer help" to get your TeamViewer ID and set a passwd
  8. # 5. Set /etc/iiab/handle if you use openvpn@xscenet
  9.  
  10. set -e                    # to exit on error (avoids snowballing)
  11.  
  12. if grep -qi raspbian /etc/*release; then tune2fs -m 1 /dev/mmcblk0p2; fi
  13. # If OS is Raspbian, lowers reserve disk space from ~5% to 1%
  14.  
  15. export DEBIAN_FRONTEND=noninteractive
  16. apt update
  17. apt -y dist-upgrade
  18. apt -y clean
  19. # Above updates OS for security especially
  20.  
  21. if grep -qi raspbian /etc/*release; then
  22.     wget https://download.teamviewer.com/download/linux/teamviewer-host_armhf.deb
  23.     apt -y install ./teamviewer-host_armhf.deb git emacs lynx bc
  24.     rm teamviewer-host_armhf.deb
  25. else # Ubuntu, Debian
  26.     wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
  27.     apt -y install ./teamviewer_amd64.deb git emacs lynx bc
  28.     rm teamviewer_amd64.deb
  29. fi
  30.  
  31. echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
  32. apt -y install dirmngr
  33. apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
  34. apt update
  35. apt -y install ansible
  36. # Installs latest Ansible from PPA

Raw Paste


Login or Register to edit or fork this paste. It's free.