top of page

Raspberry Pi Setup - HEADLESS (Without Keyboard, Mouse and Display)

Hello, coders of the future 🤗. In today's article, I will explain the setup of the Raspberry Pi development board in 5 stages, moreover, you do not need to have a keyboard mouse and monitor for installation. Only an SD card is enough. Let's start the installation 👍.


1st Stage: Setting the SD Card

  1. The SD card is inserted into the computer with the microSD to SD converter.

  2. By clicking here, the SD Card Formatter programme is downloaded to the computer and run.

  3. Select the SD card inserted into the computer from the window that opens and click the Format button.

  4. Wait for the end of the formatting process.

  5. Click here to download the required operating system mould file (.img) for the Raspberry Pi.

  6. Click here to download Win32 Disk Imager.

  7. Wait for the download of the pattern file and the programme to complete.

  8. Open the installation file of Win32 Disk Imager and click on "I accept the agreement".

  9. Then Next>Next>Next>Next>Next>Next>Next to complete the installation.

  10. Open the Win32 Disk Imager program and select the downloaded pattern file from the Image file section.

  11. Click on the Write button to start the process of writing the mould to the SD card.

  12. The writing process is expected to be completed.

2nd Stage: Making the necessary connection adjustments for Raspberry Pi

  1. Enter the My Computer menu from the computer and enter the microSD card.

  2. Right-click on an empty place in the window with the mouse and click on new > create file.

  3. Enter ssh as a name.

  4. Again, right-click on an empty place in the window with the mouse and select new > create file.

  5. Enter wpa_supplicant.conf as the name.

  6. The information in the following code block is organised according to the information of the wireless internet connection.

  7. The edited information is added to the created wpa_supplicant.conf file and saved.

  8. Then the microSD card is removed from the apparatus and inserted into the microSD slot on the Raspberry Pi.

network={
    ssid="wifi_ssid"
    psk="wifi_password"
    key_mgmt=WPA-PSK
} 

3rd Stage: Accessing Raspberry Pi over Wi-Fi and connecting with Putty

  1. Click here to download and run Putty.

  2. Type the IP address of the Raspberry Pi in the Host Name (or IP Address) section. (You can find the IP address in the modem you are connected to.)

  3. Leave port 22.

  4. Click the Open button.

  5. If the IP address is correct, you will see a window like the Command prompt window and it will ask you for a username.

  6. Type pi and click enter.

  7. Then it will ask you for a password.

  8. type raspberry and press enter.

  9. If you have entered the correct information, you will see a text like pi@raspberrypi:~ $. You are now logged in and have access to the raspberry pi's command prompt.

4th Stage: Raspberry Pi VNC setup

After successfully logging in to the Raspberry Pi, we enter the boot settings of the raspberry pi using the command below.

sudo raspi-config 

We see the following screen:

raspberry pi boot screen

We perform the following operations on this screen:

  1. Use the direction keys on the keyboard to hover over Interfacing Options and press enter.

  2. Then hover over VNC and press enter.

  3. It will ask a question like "Would you like the VNC Server to be enabled?". Use the direction keys on the keyboard to hover over <Yes> and press enter.

  4. You will see a text like "The VNC Server is enabled". Press enter again from the keyboard. Now the Raspberry Pi is ready to connect via VNC.

5th Stage : Connecting to Raspberry Pi via VNC Viewer

  1. Download the installation file of the program called VNC Viewer by clicking here.

  2. After the download is complete, run the file and complete the installation by Next>Next>Next.

  3. Then run VNC Viewer from the desktop or start menu.

  4. In the "Enter a VNC Server address or search" section, type the IP address of the Raspberry Pi and press enter from the keyboard.

  5. If you get an error like "VNC Server identity check failed.", click Continue with the mouse.

  6. Then type pi in the Username section, raspberry in the Password section and click the OK button.

And Happy Ending. The Raspberry Pi's screen is now in front of you!

raspberry pi screen

After that, you can customise the sections that appear by doing Next > Next.

See you in our next article 😎. Happy coding!

Comments


bottom of page