Raspberry Pi
Raspberry Pi

Raspberry Pi

Create a SIM Card

Use BalenaEtcher to create a SIM card. 8GB is adequate for Raspbian if you don't install too much on it.

Networking

sudo raspi-config. Join WiFi. Optionally, change the hostname, here or via sudo nano /etc/hosts (followed reboot).

Enable ssh (below)

Discover the IP address. On the Pi: hostname -I. Or install Bonjour via sudo apt-get install avahi-daemon libnss-mdns. (Seems already to be installed…)

From a local laptop, ssh-copy-id [email protected]<IP-ADDRESS>

Enable ssh

Three methods:

  1. Use the UI.
  2. From the command line:
  3. Create an empty file named ssh on the boot partition.

Disable password login

Change the hostname

Install FPR client

Download and build.

Install ngrok

Download ngrok from https://ngrok.com/download. Unzip it into ~/bin.

Retrieve the ngrok ssh token.

ngrok authtoken ${TOKEN}

ngrok tcp -remote-addr=1.tcp.ap.ngrok.io:21265 -region=ap -log=stdout 22 > ngrok.log

Edit ~/.ngrok2/ngrok.yml. Add the following after the authtoken line.

ngrok start ssh

Home Automation

Install MQTT

Displays

sudo nano /boot/config.txt

3.5" TFT Touchscreen:

cd /home/pi/LCD-show && sudo ./LCD-hdmi

Screensaver

Wake from CLI: xscreensaver-command -deactivate

UART
Pinouts