BASH   24

load-vpn.txt

Guest on 19th May 2021 11:29:10 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.txt | bash
  7.  
  8. set -e                    # to exit on error (avoids snowballing)
  9.  
  10. if grep -qi raspbian /etc/*release; then tune2fs -m 1 /dev/mmcblk0p2; fi
  11. # If OS is Raspbian, lowers reserve disk space from ~5% to 1%
  12.  
  13. export DEBIAN_FRONTEND=noninteractive
  14. apt update
  15. apt -y dist-upgrade
  16. apt -y clean
  17. # Above updates OS for security especially
  18.  
  19. apt -y install git
  20.  
  21. echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu xenial main" >> /etc/apt/sources.list
  22. apt -y install dirmngr
  23. apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
  24. apt update
  25. apt -y install ansible
  26. # Installs latest Ansible from PPA

Raw Paste


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