Skip to content

Instantly share code, notes, and snippets.

@antonfisher
Last active December 6, 2020 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonfisher/2dffec9271d03948053f9d99f2e1f665 to your computer and use it in GitHub Desktop.
Save antonfisher/2dffec9271d03948053f9d99f2e1f665 to your computer and use it in GitHub Desktop.
Raspberry Pi Headless Setup
# on host:
# write an os image to the sd card:
# https://www.raspberrypi.org/documentation/installation/installing-images/README.md
# setup wifi (in boot):
# https://www.raspberrypi.org/documentation/configuration/wireless/headless.md
vim wpa_supplicant.conf
#ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
#update_config=1
#country=<Insert 2 letter ISO 3166-1 country code here>
#network={
# ssid="<Name of your wireless LAN>"
# psk="<Password for your wireless LAN>"
#}
# enable ssh (in boot)
touch ssh
# boot up the board, find out it's address:
sudo nmap -sn 10.0.0.0/24 | grep -n2 -i raspberry
# ssh to rpi, password: "raspberry"
ssh pi@raspberrypi.local
ssh -Ct pi@IP
# on rpi:
# enable camera
sudo raspi-config
# ---> 5 Interfacing Options
# ---> P1 Camera Enable/Disable connection to the Raspberry Pi Camera
# ---> Yes
sudo apt update
sudo apt upgrade
sudo apt install vim htop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment