HEADLESS RASPBERRY PI 3 SETUP
– Raspberry Pi 3 – Any Model with Wifi (Test on Model A+)
– MicroSD Card (8GB or More)
– MicroSD Card Reader/Adapter
– MicroUSB to USB connector
– A WiFi Hotspot
– A PC Obviously
Let’s Begin (macOS)
Windows/linux users also may follow similar steps but may have to use alternative software at certain steps.
(Note: Get all files and codes from Official Links, else you will be vulnerable to Hackers )
Step 1 :
Download Raspbian OS from the official Website and save it : https://www.raspberrypi.org/downloads/raspbian/
(Download any version of Raspbian you like – I used ‘Raspbian Stretch with desktop and recommended software‘ )
Download Etcher from the official Website and Install it in your system:
– Insert your microSD card to your PC using Card Reader
– Open Etcher, Click SELECT IMAGE button and choose your Raspbian image from saved location
– Then click SELECT DRIVE and Select your MicroSD card
– Finally Click FLASH and wait until it finishes
(automatically the SD card will get ejected)
– Plug out and Re-Insert your MicroSD card to PC
– You will see it mounted in the name ‘boot’
– Open an empty TextEdit and save it in boot with file name ‘ssh’ (No Extension)
– Again open another empty TextEdit and type the following:
Save it in boot with the file name ‘wpa_supplicant.conf’
[ Enter your WiFi Name and Password in respective fields ]
(Windows users can use Notepad++ for creating the files)
Now you have two files in your microSD Card.
Eject your microSD card from PC and Insert it into your Raspberry Pi 3
Connect your Raspberry Pi to PC using the microUSB Cable to USB Port of PC.
You will see a green light flashing near the red power light of Raspberry Pi.
Hurray ! Waiting for 30-60s . . .
Important : Connect your PC to same WiFi Network your provided for your Raspberry Pi File above
Now open Terminal and Type the following and wait :
Note : (Mac) If you gets an error at this point as in the below picture, do the following:
– Open Terminal and Type :
sudo nano /Users/your_pc_username/.ssh/known_hosts
– Delete all the Raspberry Pi related texts (Most case Delete everything in that file)
– Press Ctrl+O and hit Enter to Save
– Press Ctrl+X to exit
– Type again : ssh email@example.com
Now You will be asked to enter password for your Pi.
Default User Name: pi
Default Password: raspberry
Yahooooo ! your are connected to Pi Terminal
Keep this as it is.
Now Install a VNC viewer for your PC, i prefer realvnc
(Available for all OS)
Now in the Pi Terminal type the following commands one by one :
$ sudo apt-get update
$ sudo apt-get install tightvncserver
Get the IP address (Eg : 172.20.10.4:2 ) and type it in the VNC Viewer and Connect
(as in Figure)
Note: The number 2 in the IP Address came from raspberry:2 which you get on executing the command $ vncserver , if that number is different change it in IP also
Type in the tightvnc password
(The one You provide while executing the codes $/usr/bin/tightvncserver )
And Your are IN !
Please comment for any Queries or email us : firstname.lastname@example.org
All Contents from 711Solutions are Trusted and Free From any Vulnerable Attacks.