Raspberry Pi Full Headless Setup Guide

H E I S E N E B R G
3 min readJun 12, 2024

--

Hi Guys! A few days ago, I got my first Raspberry Pi 4 and I’m excited to share with you how to set it up. Follow along and if you get any errors feel free to contact me.

Let’s go!

Raspberry Pi 4 Model B

What you’ll need

  • Raspberry Pi 4
  • MicroSD card (16GB or larger)
  • Power supply for Raspberry Pi
  • Ethernet cable or Wi-Fi connection
  • Computer to set up the Raspberry Pi

Preparing your MicroSD card

First, download the Raspberry Pi imager from the official website:

https://www.raspberrypi.com/software/

Install the Raspbery Pi OS onto your MicrSD card, don’t forget to enable SSH and enter the SSID and your wifi’s password in custom settings!

Insert the MicroSD card into your Raspberry Pi and power it on(5W/3A).

Initial Setup

Let’s find it’s IP address.

sudo netdiscover -r [your ip range]

Here it is!

Now when we have it’s IP address, let’s log in via SSH.

ssh pi@192.168.11.54

Great!

Now you have CLI access to your device.

Graphical Access

If you want a graphical access to your Raspberry Pi, you gotta install VNC server on your Raspberry Pi.

sudo apt update

sudo apt install realvnc-vnc-server

sudo systemctl enable vncserver-x11-serviced

sudo systemctl start vncserver-x11-serviced

After this:

sudo raspi-config

Go to Interface OptionsVNCYes

Exit and Reboot.

Now install VNC Viewer on yout laptop:

Great! Now let’s try to connect to our VNC server!

Open VNC Viewer on your laptop and enter the IP address of your Raspberry Pi:

Enter your Username and Password:

AND WE ARE IN!

Conclusion

And that’s it! Now you can start using you Raspberry Pi and do lot’s of cool and interesting projects. I hope you enjoyed my write-up and it was helpful, if you have any questions feel free to contact me.

Thanks for your attention, don’t forget to follow me for more interesting content!

--

--