Thanks but as I posted lower down, I copied and pasted the 33 lines of the script from where I got it from, github, and made a new file called instal.sh. Running this completed, but with an error:
Traceback (most recent call last): File "", line 1, in File "/home/rob/.local/lib/python2.7/site-packages/RPi/GPIO/__init__.py", line 23, in from RPi._GPIO import * RuntimeError: This module can only be run on a Raspberry Pi! ./instal.sh: line 15: [: =: unary operator expected
I also posted this lower down.