Raspberry Pi set-up (old)

On mac, Download NOOBS from https://www.raspberrypi.org/downloads/noobs/
Unzip

Format the microSD using SDFormatter software (I’ve used a 32GB card as I want to be able to backup the NMR data locally, just-in-case. This could be done to a USB stick too I guess).

Copy files from root of NOOBS to freshly formatted SD card.

Put card in Raspi and power up. Follow install instructs.

To enter networking details use Run: wpa_gui BUT I have always had issues when doing this – unless your credentials are perfect the network is likely to mess up, and you’ll need to reset the wpa_supplicant.conf file. ALWAYS make a copy of a working version before editing it, manually or via the GUI.

Making a copy of a file:

Always – Update and Upgrade

  • sudo apt-get update
  • sudo apt-get upgrade

Which version of Debian running?
$ lsb_release -a

  • Generate SSH key on Pi and add public key to pew.
  • Add laptop public key to pi for ssh without passwrd
  • Install tightvncserver in case I need to access the GUI on the pi (i.e. for node-red)

Setting up a light sensor on GPIO pins HEREHERE

This is for PEW I think:

To ensure start-up of these services on reboot (ensure you use the .service):

$ sudo systemctl enable firewalld.service
$ sudo systemctl enable mariadb.service
$ sudo systemctl enable httpd.service

Other commands:

$ sudo systemctl status firewalld
$ sudo systemctl start firewalld
$ sudo systemctl stop firewalld

  • set-up static IP

http://thepihut.com/blogs/raspberry-pi-tutorials/16683276-how-to-setup-a-static-ip-address-on-your-raspberry-pi

access port 3306 on pew through frank
$ ssh -NfL 9000:pew.eecs.qmul.ac.uk:3306 USERNAMEHERE@frank.eecs.qmul.ac.uk

Set-up Python:
$ sudo apt-get install python-setuptools