Raspberry Pi’s are capable of running just like any computer, full displays and window management, keyboards and mouse, but you probably don’t intend to set one up on your desk and leave it there. More than likely your intent is to use it for a motion-sensitive webcam, IoT device or intelligent adapter or controller. Once you have your Raspberry Pi setup and deployed, remote management will be required, SSH will be ideal, and you probably didn’t want to install an extra 2.7GB worth of window management anyway.
There are ample of raspberry pi headless tutorials on internet like raspberry pi headless first boot, raspberry pi headless setup noobs, raspberry pi headless setup raspbian, raspberry pi headless tutorial, raspberry pi headless without router but i could not find any straight to the point raspberry pi raspbian headless installation guide. So here i share my experience i gained while setting up headless pi a week ago.
#1. Required Items :
#2. Downloadables :
#3. Backstage Preparation :
- Image Flashing : Install Etcher and flash recently downloaded raspbian image to SD Card.
- Enabling SSH : By default SSH has been disabled to enable it place a blank “ssh” file without any extension in /boot/. Download here
- Get on Online : Connect your PC/Laptop to a common internet network which can be either your broadband connection with WiFi facility or your mobile hotspot.
- Automatic Wifi connection : Add a “wpa_supplicant.conf” file in your /boot/ partition with following details :
iface lo inet loopback
iface eth0 inet dhcp
iface wlan0 inet dhcp
##replace ssid and password in line 11 & 12 respectively with your WLAN name and its password.
#4. Raspberry Pi Headless Boot
- Insert your Micro SD card and power on your Pi.
- Install and run Angry IP Scanner. Look for IP description as “Raspberry Pi”. Note down IP address.
- Install and open PuTTy on your windows machine. Enter previously copied IP of Pi in Host Name (or IP Address) and press enter.
- Enter Username as “pi” and password as “raspberry” this is default username password of new raspberry pi unless you change it.
- To enable RealVNC
sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer
## once done enter
sudo raspi-config ## Navigate to Interfacing Option and Enable VNC
Your raspberry pi is ready to be used. Now lets turn pi into a powerful media server. If you have any questions or suggestions to improve installation process. Please do comment below and let us know.