Raspberry pi

Introduction

The Raspberry Pi is a small single-board computer that is fairly cheap and easily accessible from anywhere.

We currently use the Pi for a variety of projects on Pino, as it takes little power, and seems to be resistant to corrosion. Our Pi Computers(the Computer are currently used only as experimental development tools, but could readily be turned into a complete development platform, would our principal computers fail.

Setup

Download Raspbian Lite, and with Etcher flash the SD card. Once Etcher has finished, re-insert it and type:

  • touch /Volumes/boot/ssh # Enable SSH
  • touch /Volumes/boot/wpa_supplicant.conf # Auto-connect to wifi
  • nano /Volumes/boot/wpa_supplicant.conf
  • Edit wpa_supplicant.conf

  • country=CA
  • ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  • update_config=1
  • network={
  • ssid="network_name"
  • psk="network_password"
  • }
  • Connect to the Pi

  • ping raspberrypi.local # Find its IP address
  • ssh pi@192.168.1.73 # Use password "raspberry"
  • sudo raspi-config # Interface/SSH & Advanced/Expand FS
  • sudo nano /etc/hostname # Rename
  • sudo nano /etc/hosts # Rename
  • passwd # Change Password
  • sudo reboot
  • Update everything

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-get dist-upgrade
  • Gadget Mode

  • dtoverlay=dwc2 # Append in config.txt
  • modules-load=dwc2,g_ether # Append in cmdline.txt, or after rootwait