Skip to content

Instantly share code, notes, and snippets.

@RupGautam
Last active December 9, 2017 02:58
Show Gist options
  • Select an option

  • Save RupGautam/1d158c1e71e6d17ebd5b38e7b08f87a1 to your computer and use it in GitHub Desktop.

Select an option

Save RupGautam/1d158c1e71e6d17ebd5b38e7b08f87a1 to your computer and use it in GitHub Desktop.
Headless Raspi setup

Etcher is a powerful image flasher for cross platforms.

On mac OS: brew cask install etcher

Other OS:

https://github.com/resin-io/etcher

  • Install it and flash the Raspbian into your MicroSD

  • Now create two files ssh and wpa_supplicant.conf

    cd /Volume/MicroSD; touch ssh wpa_supplicant.conf

  • Edit the wpa file vim wpa_supplicant.conf

  • And copy paste: And change the values for ssid & passwd & country code

      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
        update_config=1
        country=CA
    
        network={
        ssid="SSID"
        psk="PASSWORD"
        key_mgmt=WPA-PSK
        scan_ssid=1
        }```
    
  • Eject the SD card

  • Boot up the Pi

  • Now lets find IP address that Pi has been assigned nmap -sn 192.168.X.X/24

  • SSH into it ssh pi@IP-Address

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