Raspberry Pi¶
Basic setup¶
This assumes a headless install on a RPi.
Download and install raspberry imager
Run
rpi-imagerFollow the instructions to put an OS image on your SD card. I installed Raspbian lite (no desktop).
Since I’m setting it up headless, there are a few more steps. headless instructions
Now mount the boot partition from the SD card (the smaller one). (e.g. insert SD card, run
thunaror other file browser)Create an empty file named
sshin the root of the boot partition.If you need to connect now using wireless, create a
wpa_supplicant.conffile in the root of the boot partition:ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=<Insert country code here> network={ ssid="<Name of your WiFi>" psk="<Password for your WiFi>" }
Unmount
Put the SD card into the RPi.
If using wired ethernet, hook up the ethernet cable. If using a wifi dongle, insert it.
Plug in the power.
Wait a bit. Check your router admin to see what address it ended up at. On mine it came up as
raspberrypi.mynet(.mynet is my local network domain).ssh pi@raspberrypi.mynet. Password israspberry.Create a new user:
sudo adduser poirier
Set a password:
sudo passwd poirier
To enable sudo for the user, edit the
sudoersfile by runningsudo visudoand add a line likepoirier ALL=(ALL:ALL) NOPASSWD:ALLLog out
ssh poirier@raspberrypi.mynetDelete the old
piuser:sudo deluser --remove-all-files pi