Snippets

Peter Scargill "The Script"

Updated by Peter Scargill

File script.sh Modified

  • Ignore whitespace
  • Hide word diff
 ##
-##  This version of "The Script" December 19 2019 ixes a connection check
+##  This version of "The Script" December 19 2019 fixes a connection check
 ##  Previous updates includes changes to handle Raspbian Buster, RPi4 and other recent changes
 ##  including the latest Node/Node-Red updates (at this time v1.0.2) on Raspbian 
 ##  and to use official NR install script on RPi - also fixes to accomodate changed Grafana Repository. 
Updated by Peter Scargill

File script.sh Modified

  • Ignore whitespace
  • Hide word diff
 ##
-##  This version of "The Script" October 26 2019 includes changes to handle Raspbian Buster, RPi4 and other recent changes
+##  This version of "The Script" December 19 2019 ixes a connection check
+##  Previous updates includes changes to handle Raspbian Buster, RPi4 and other recent changes
 ##  including the latest Node/Node-Red updates (at this time v1.0.2) on Raspbian 
 ##  and to use official NR install script on RPi - also fixes to accomodate changed Grafana Repository. 
 ##  NetTools added, Glances and Bottle commented out due to issues with their scripting.
 
 # test internet connection
 sudo chmod u+s /bin/ping
-if [[ "$(ping -c 1 23.1.68.60  | grep '100%' )" != "" ]]; then
+if [[ "$(ping -c 1 8.8.8.8  | grep '100%' )" != "" ]]; then
     printl "${IRed}!!!! No internet connection available, aborting! ${IWhite}\r\n"
     exit 0
 fi
Updated by Peter Scargill

File script.sh Modified

  • Ignore whitespace
  • Hide word diff
 ##
-##  This version of "The Script" August 21 2019 includes changes to handle Raspbian Buster, RPi4 and other recent changes
-##  including the latest Node/Node-Red updates (not yet up to the unreleased 1.0) on Raspbian 
+##  This version of "The Script" October 26 2019 includes changes to handle Raspbian Buster, RPi4 and other recent changes
+##  including the latest Node/Node-Red updates (at this time v1.0.2) on Raspbian 
 ##  and to use official NR install script on RPi - also fixes to accomodate changed Grafana Repository. 
 ##  NetTools added, Glances and Bottle commented out due to issues with their scripting.
 ##  Also got rid of NPM warnings
 ##  mpg123
 ##  and Grafana (xxx.xxx.xxx:3000)
 ##  also web-page-based software like mc and /phpsysinfo
-##  Jan 17 2019 I added nmap, netdiscover and also node-red-contrib-advanced-ping
-##
-##  July 2019 used 3-liner as in the blog to upgrade an RPI which had been set up initially using the script in Stretch - to Buster. 
+##  Grafana defaults to password "password" and offers to let you change it.
 ##
 ## IMPORTANT:-
 ## 1. Run initially ONLY as ROOT on a non-Raspberry Pi machine (or PI user on Raspberry Pi). If ROOT, PI user will be checked/created for you as the main
 ## 5. For Node-Red on Pi Zero,  if the serial port won't connect - look at serial port permissions in /dev/
 ## 6. Do not access this script as SUDO.
 ##
-##
 ## The easiest way to get the script on your machine is:
 ## wget --no-check-certificate  https://bitbucket.org/api/2.0/snippets/scargill/kAR5qG/master/files/script.sh
 ##
 ##
 ## We cannot answer questions on board/operating system combinations we have not tested. See notes below for tested combos.
 ## 
+## 25/10/2019 I installed all defaults in the script and in addition non-default Grafana onto an ACEPC T9 on which I'd installed the latest Debian Buster
+##            Note that Bustr on a non-Pi machine may not have SUDO installed by default. To become a super-user to install it if you can't get to root, "su -".
+## July 2019 used 3-liner as in the blog to upgrade an RPI which had been set up initially using the script in Stretch - to Buster.
 ## 17/02/2019 Added pure-ftp
 ## 07/02/2019 Separated NR into official NR install script, added tcpdump - not added fing but worth doing?
+## 17/02/2019 I added nmap, netdiscover and also node-red-contrib-advanced-ping
 ## 20/08/2018 Fixed Java and settings.js generation, added menu option (default: UNCHECKED) to enable/disable Pi HW support (I2C, GPIO, Serial, etc)
 ## 01/05/2018 InfluxDB/Grafana/Chronograf install, now works on every platform tested, and succesfully tested on Rock64+eMMc
 ## 05/10/2017 Added glances - use directly - glances - or as webserver glances -w
 ## 14/01/2017 Updated webmin and habridge installations
 ## 04/07/2017 OrangePi Plus 2 - thanks to blog reader RoyG for that
 ## 26/12/2016 - complete re-hash for new menus
-
 ## 02/12/2016 Tested Roseapple Pi using Armbian - for Node-Red serial, had to
 ## 			  enable permissions for the serial - everything worked first time
 ## 16/5/2016  Tested on NanoPi M1 - (got 3 UARTS out of the M1)
Updated by Peter Scargill

File script.sh Modified

  • Ignore whitespace
  • Hide word diff
     #cd
     #mkdir webmin
     #cd webmin
-    #wget --no-check-certificate http://prdownloads.sourceforge.net/webadmin/webmin-1.831.tar.gz
+    #wget --no-check-certificate http://prdownloads.sourceforge.net/webadmin/webmin-1.930.tar.gz
     #sudo gunzip -q webmin-1.831.tar.gz
     #tar -xf webmin-1.831.tar
     #sudo rm *.tar
Updated by Peter Scargill

File script.sh Modified

  • Ignore whitespace
  • Hide word diff
 ##
 ##  This version of "The Script" August 21 2019 includes changes to handle Raspbian Buster, RPi4 and other recent changes
-## including the latest Node/Node-Red updates (not yet up to the unreleased 1.0) on Raspbian 
-##  and to use official NR install script on Pi - also fixes to accomodate changed Grafana Repository. 
+##  including the latest Node/Node-Red updates (not yet up to the unreleased 1.0) on Raspbian 
+##  and to use official NR install script on RPi - also fixes to accomodate changed Grafana Repository. 
 ##  NetTools added, Glances and Bottle commented out due to issues with their scripting.
 ##  Also got rid of NPM warnings
 ##
 ## my /home/pi/fonts directory (ProggyTiny.ttf) - and sample programs /home/pi/stats.py and 
 ## stats32.py - this lot for people who want to run ssd1306 diaplays (32 or 64 px high) in Python rather than install i2c support in Node-Red
 ##
-##
-##  "The Script" is the product of many, many months of work and includes (if you select them):
-##  (Raspberry Pi - tested on Raspbian Stretch Lite - https://downloads.raspberrypi.org/raspbian_lite_latest 
-##  but the full version works as well)
+##  "The Script" is the product of years of work and includes (if you select them):
+##  (Raspberry Pi inc Buster - also tested on Raspbian Stretch Lite - https://downloads.raspberrypi.org/raspbian_lite_latest 
+##  and the full version works just as well)
 ##  See also: BigTimer, ESP-GO and other included Node-Red nodes of mine
 ##  Many thanks to Antonio (Mr Shark) for his work on some of these changes.
 ##
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.