New Raspberry PI Setup 2022 Headless Mode
by ANKL in Circuits > Raspberry Pi
15979 Views, 17 Favorites, 0 Comments
New Raspberry PI Setup 2022 Headless Mode
In this tutorial You will learn the latest and updated method for Getting started with your Raspberry pi. Generally RPI setup has two modes: Normal mode and Headless mode.
In Normal mode we simply install the OS to our RPI and connect without Monitor to view and access the RPI OS contents.
But when it comes to Headless mode in this mode we are not going to use external monitors. In short this is helpful when you do not have a HDMI cable or a suitable monitor.
Headless mode installation can go a bit tricky if you do not have any previous relevant experience.
Watch my previous Post for Normal Installation.
Now its time for Headless mode installation. Haha Headless mode.
Supplies
Let's get started....
Normal setup: (Click here)
Raspberry pi above v3HDMI cable and suitable convertors(if applicable)Card readersuitable 5 volt adaptor and cableactive internet connection for software updateKeyboard and mouse
Headless setup:
- Raspberry pi above v3
- Card reader
- suitable 5 volt adaptor and cable
- active internet connection for software update(WIFI or ethernet)
Downloading and Installing Raspberry Pi OS in Headless Mode
- Insert a microSD card / reader into your computer.
- Download and install the official Raspberry Pi Imager.
- Click Choose OS and select Raspberry Pi OS
- Click Choose SD card and pick the one you’re using.
- Not its time to Configure Advanced Options.
Configure the Advanced Options
- To access it, press the Ctrl + Shift + x combination on your keyboard.
- The default password for the pi user is normally raspberry. You can change it to something harder to crack right away.
- Do not forget to Enable SSH.
- When we connect to the Raspberry PI via SSH later on, we need to know its hostname.
- After enabling SSH, you should therefore also set its hostname. The default raspberrypi hostname works fine.
- Once the hostname is set you can use " ping hostname.local " or the default command " ping rapberrypi.local " to find its ip.(may or may not work)
- If you plan on connecting your Raspberry PI to your local network via WiFi, then check the box for Configure wifi.
- Enter your WiFi network name in the SSID box and specify the password to gain access.
- Finally, select your country from the WiFi country drop-down selection box.
- Click Write.
The app will now take a few minutes to download the OS and write to your card.
Find IP Address
Enable SSH on rashberry pi: (See STEP 2)
Find the IP Address of Your Pi: (if "ping hostname.local" fails use Mobaxterm Network scanner)
- Run MobaXterm
- Click the “Tools” tab on the left hand edge of the window
- Click “Network Scanner”
- Ensure the “IP range” represents the IP address pattern on your network. In this example my addresses are of the form 192.168.16.*
- Press “Start Scan”.
SSH Connection to RPI Using Mobaxterm
- Click the “Session” icon in the top left hand corner
- Click the “SSH” icon
- Enter the “basic SSH settings” where the “Remote host” is the IP address of your
- Raspberry Pi and the username is “pi”.
- Click “OK” to finish and Save.
- Type in the the password and press [Enter].
- You maybe prompted to save the password in the Session Settings. This makes it quicker to connect next time but it is up to you.
- MobaXterm password save prompt.
- MobaXterm connected to Raspberry Pi.
- If you get confused click cancel.
- The terminal on the right is now ready to type commands just as you would on a keyboard connected to the Pi directly.
Enabling VNC Server
- Use mobaxterm
- Enter the command “ sudo raspi-config “.
- Use the arrow keys to select Interfacing Options and press Enter.
- Use the arrow keys to select VNC and press Enter.
- You will be prompted to enable VNC Server. Select Yes and press Enter.
- Use the arrow keys to select Ok and then Finish, to return to the terminal.
Installing a VNC Viewer
You will need to install a VNC Viewer on your computer, so you can connect to you
Raspberry Pi. There are a number of viewers available, but the easiest to set up is
Real VNC Viewer. You can download Windows and Mac installers from here: Click here.
Open Real VNC Viewer:
- Use Advanced IP scanner to scan your device and obtain its IP address.(better use mac address)
- Enter the ip address "192.168.16.54" and password.
Boom you are now accessing Raspberry pi Remotely using VNC Server.