Sunday, May 27, 2018

Headless Pi setup

Model used: Raspberry Pi 3 Model B.

1. Install Raspbian onto a micro SD card using etcher. (https://etcher.io/)
2. After installing, create a file in the boot directory, name it ssh.
3. Create another file in the boot directory, name it wpa_supplicant.conf. Within this file, insert the following text, using your ssid and password for your wifi network.

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

network={
    ssid="your_real_wifi_ssid"
    scan_ssid=1
    psk="your_real_password"
    key_mgmt=WPA-PSK
}

4. Turn on the Raspberry Pi.
5. Find out the IP Address of the Raspberry Pi, either by using your router's web interface, or installing a program such as Wireless Network Watcher (http://www.nirsoft.net/utils/wireless_network_watcher.html). 
6. Download Putty from https://www.putty.org/
7. Run Putty, and type in the IP Address where it says Host Name. Click Open
8. The terminal of the Raspberry Pi will open. The default username is pi, and the default password is raspberry. You now have headless access to the Raspberry Pi.

Sources:
https://www.raspberrypi.org/forums/viewtopic.php?t=191252
https://www.howtogeek.com/204057/how-to-see-who%E2%80%99s-connected-to-your-wi-fi-network/