Skip to content

Instantly share code, notes, and snippets.

@camerahacks
Last active October 26, 2019 14:12
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 camerahacks/9da9661f7c60e800983a79d75d595d18 to your computer and use it in GitHub Desktop.
Save camerahacks/9da9661f7c60e800983a79d75d595d18 to your computer and use it in GitHub Desktop.

This is a companion Gist to @ {DPHacks} a website for everything camera hack related.

After burning the OS image to the microSD card, eject the card from the memory card reader and plug it in again.

Enable SSH

Navigate to the /boot partition on the microSD card and create an empty file named "ssh" (no quotes). This file should not have an extension (no .txt needed). When you boot the Raspberry Pi, the OS will see this file and take it as a queue to enable SSH. This is helpful if you are not connect the Pi to a monitor/display.

Enable Wi-fi

Create another file under /boot. This file should be named wpa_supplicant.conf. Again, during boot, the Pi will use this file to configure WiFi options.

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
 ssid="NetworkName"
 scan_ssid=1
 psk="NetworkPassword"
 key_mgmt=WPA-PSK
}

Change the country code to reflect the country you are in and replace "NetworkName" and "NetworkPassword" with the name and password for the WiFi network you are connecting your Pi to. Do keep the quotes around the network name and password.

Upon booting, the Raspberry Pi will connect automatically to the configured WiFi network. You can use a SSH client like Putty to remotely connect to the Raspberry Pi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment