Skip to content

Instantly share code, notes, and snippets.

@bberak
Last active January 27, 2024 18:07
Show Gist options
  • Save bberak/25dcd92c7991878257a8a54252936c84 to your computer and use it in GitHub Desktop.
Save bberak/25dcd92c7991878257a8a54252936c84 to your computer and use it in GitHub Desktop.
Configure a new Raspberry PI with WiFi and SSH

Configure Raspberry PI

Setting up Image

Configuration

  • Touch an empty file named ssh into the SD card (this enables SSH)
  • Locate cmdline.txt, append ip=192.168.0.XXX to the end (this gives you a static IP)
  • Create a wpa_supplicant.conf file on the SD card with the following contents:
country=au
update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
 scan_ssid=1
 ssid="your_network_name"
 psk="your_network_password"
}

Boot

  • Boot the raspberry pi
  • Browse to your router to find the new raspberrypi’s IP address (router is usually at 192.168.0.1)
  • On you macOS, open a new terminal table and run ssh [email protected]
    • The password will be raspberry
  • Edit /etc/hostname to change the hostname to something more obvious (reboot)

Additional

Install NVM and NodeJS:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
nvm install 8.9.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment