Last active
August 27, 2018 22:06
-
-
Save broo0ose/3c6ee8130751350b90d0f0287c2b2788 to your computer and use it in GitHub Desktop.
headless wifi pi config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ write raspbian to the card | |
+ create a file called ssh in the boot partition (the only bit you can see in Windows), | |
No extension, right click properties make sure it is not ending in .txt ot anything like that. | |
+ using Notepad++ create a file called wpa_supplicant.conf in the boot partition. | |
+ paste this into the file changing it for your WiFi parameters | |
country=GB | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="SSID" | |
psk="mysecretwifipassword" | |
} | |
+ right click on the bottom bar of Notepad++ where it says Windows (CR LF) and change it to Unix (LF) | |
+ save the file as wpa_supplicant.conf | |
+ put the SD in the Pi and boot | |
+ check your router's DHCP table to find the IP address | |
+ SSH using Putty to the Pi. | |
+ if possible make a static DHCP assignment for the Pi's MAC address in your router. Then you always get the same IP. | |
After this you should be able to connect to the Pi using Putty on your laptop. | |
If you want the full Gui on your laptop then enable VNC from the raspi-config menu and the connect with the RealVNC client. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Does this work on Ubuntu 18.04.1 LTS? Many of the methods for connecting WiFi seems to have stopped working. I now use the nmcli command to configure WiFi on Ubuntu 18.04.1 LTS.