Skip to content

Instantly share code, notes, and snippets.

@erm3nda
Created November 27, 2019 08:58
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 erm3nda/a73bcfb508fb4fe84f30891a6f250ead to your computer and use it in GitHub Desktop.
Save erm3nda/a73bcfb508fb4fe84f30891a6f250ead to your computer and use it in GitHub Desktop.
Headless Raspberry Setup

Headless setup for Raspberry, aka Monitorless setup

Because shit happens, and you don't have always a monitor, an usb keyboard, the hmdi adapter, or whatever the fuck fails that day :-)

Connect to wifi automagically

Place wpa_supplicant.conf in sdcard root folder. NOTE THAT THIS ONLY works in the first launch. You'll need to format again sdcard with those changes included.

SSH service

Create an empty file named ssh in sdcard root too to enable service. SSH default port is 22 username: pi password: raspberry

country=es
update_config=1
ctrl_interface=/var/run/wpa_supplicant
network={
scan_ssid=1
ssid="ssid"
psk="pass"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment