How to connect raspberry pi to WiFi without a monitor
In this tutorial, I will show you how to connect raspberry pi to Wifi without a monitor and keyboard. There are a lot of people like me who don’t have a monitor or a HDMI cable and LAN Cable. So, in this tutorial, we will setup WiFi in raspberry pi 3.
Requirements
- A Raspberry pi 3 (or use the link to buy on discount) Raspberry PI 3 Model B 1.2GHz 64-bit quad-core ARMv8 CPU, 1GB RAM
- Raspbian must be installed
Insert SD Card in your Computer
Firstly you need to put the SD Card with raspbian installed in your computer. You can use an SD Card reader or SD Card adapter and navigate to SD Card.
cd /Volumes/boot
The name of the SD Card would be boot. I am using Mac OS X so it is located in /Volumes directory. It will be different if you are using different OS.
Add config file
Now create a file wpa_supplicant.conf inside SD Card and add the following lines in it and replace the ssid and psk with your details.
vim wpa_supplicant.conf
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
}
When booting raspbian will copy wpa_supplicant.conf to /etc/wpa_supplicant/.
Now remove the SD card from the computer and insert it into Raspberry Pi and boot.
Now after boot Raspberry Pi will be connected to the internet.
Read Also: How to install latest docker on centos 7 / Redhat 7