-
Download the
Raspbian
image from here. -
I am using
Etcher
for writing the image to the SD card. DownloadEtcher
from here. -
Once the flash is complete, enable ssh in the Pi. For enabling SSH in the Pi, create a file named
ssh
in the root of the boot directory.cd /media/shovan/boot touch ssh cat ssh
NOTE :- Mount path can be different in your setup.
-
To configure the Pi to connect to a WiFi network, create a file called
wpa_supplicant.conf
in the root of the boot directory with the below contents.country=IN update_config=1 ctrl_interface=/var/run/wpa_supplicant network={ scan_ssid=1 ssid="pify" psk="test@pify" }
NOTE :- Some of the values in the configuration should be replaced in your configuration. Here is one example file.
-
Eject the SD card and insert it into the Pi. Power up the Pi and wait for a minute to boot.
-
From your laptop, use
Nmap
to scan your local network. If you don’t haveNmap
, install it usingsudo apt-get install nmap
. UsingNmap
you will be able to find the IP of your Pi.shovan@probot:~$ sudo nmap -sn 192.168.1.0/24 [sudo] password for shovan: Starting Nmap 7.60 ( https://nmap.org ) at 2020-04-11 17:20 IST Nmap scan report for _gateway (192.168.1.1) Host is up (0.0025s latency). MAC Address: XX:XX:XX:XX:XX:XX (Unknown) Nmap scan report for 192.168.1.33 Host is up (0.049s latency). MAC Address: XX:XX:XX:XX:XX:XX (OnePlus Tech (Shenzhen)) Nmap scan report for 192.168.1.34 Host is up (0.032s latency). MAC Address: XX:XX:XX:XX:XX:XX (Raspberry Pi Foundation) Nmap scan report for 192.168.1.35 Host is up (0.010s latency). MAC Address: XX:XX:XX:XX:XX:XX (Raspberry Pi Foundation) Nmap scan report for 192.168.1.36 Host is up (0.065s latency). MAC Address: XX:XX:XX:XX:XX:XX (Raspberry Pi Foundation) Nmap scan report for 192.168.1.37 Host is up (-0.069s latency). MAC Address: XX:XX:XX:XX:XX:XX (Raspberry Pi Foundation) Nmap scan report for traefik.local (192.168.1.15) Host is up. Nmap scan report for pi-master.local (192.168.1.34) Host is up (0.020s latency). Nmap done: 256 IP addresses (7 hosts up) scanned in 6.07 seconds
NOTE :- CIDR can be different for your network.
-
Once you find the IP address of your Pi, SSH into it as
pi
user with the default passwordraspberry
.ssh [email protected] ssh [email protected] ssh [email protected] ssh [email protected]
NOTE :- IP of Pi can be different in your network.