In this article, we are holding a great little device with unlimited potential in it. We are going to use the HEADLESS mode (i.e.  – not using the Monitor / Keyboard /Mouse to run the pi). On a new installation of Raspbian. we can simply connect the new model to the “pi 4” and that is Headless mode. Also, it can be connected with “pi 0” with external adding ports.

What is Raspberry Pi?Raspberry Pi is the name of a series of single-board computers made by the Raspberry Pi Foundation , a UK charity that aims to educate people in computing and create easier access to computing education.  The Raspberry Pi is a very cheap computer that runs Linux, but it also provides a set of GPIO (general purpose input/output) pins that allow you to control electronic components for physical computing and explore the Internet of Things (IoT). Raspberry Pi needs an operating system to work. Raspberry Pi OS (previously called Raspbian) is our official supported operating system.
What is headless mode?A computer setup without a monitor is said to be running headless.

In the headless mode – without a monitor keyboard or mouse. A computer system or a device that has been configured to operate without a head (i.e.- monitor we can say). Why is Headless mode required? – It is the operation of a server typically employed to reduce operating cost.
Glossary of terms

Step 1 : REQUIREMENTS

REQUIREMENTSA Raspberry Pi with Wi-Fi on-board.
A micro-SD card with SD adapter.
A power supply for your Pi; we recommend the official supply.
A computer connected to the same network you wish to connect your Pi to.

Raspbian Jessie or Jessie Lite, download from the RPi foundation (they have a complete installation guide if you run into trouble) PuTTY, a free SSH program. If you’re on OS or Linux, you can already SSH from your terminal.

Point to remember – Many laptops have an SD card socket, but you’ll need a microSD card to SD card adapter to plug the small microSD card the Raspberry Pi uses to your computer. If your laptop does not have a SD card socket, you’ll need a microSD card to USB Adaptor.

  • Initially go to the Raspbian website AND THEN DOWNLOAD THE lite Raspbian image.

No need to take a break, The Raspbian Lite is relatively lightweight and downloads pretty fast. 

  • Click Write. This process will take several minutes as Raspberry Pi Imager Downloads
  • Raspberry Pi OS and burns it to your microSD card.
  • Now the image file is downloaded and now going to be installed in Sd – card.

Download and install Raspberry Pi Image to a computer with an SD card reader. Put the SD card you’ll use with your Raspberry Pi into the reader and run Raspberry Pi Imager. Then to burn – an image into an SD card you can browse here. To run Etcher is pretty straight forward. Put a blank mini-SD card and adapter into your machine. No need to format it. You can use a new SD card right out of the package.

Step 2 – Configure the MicroSD card.

Don’t format your SD card, it would corrupt the Raspbian image which has been flash. Selected image from downloaded Raspbian lite and then selected drive which will be there on my PC.  After flashing means burning the image. Sometimes that drive will not be seen in the file browser so just appears with the name as a boot followed by a drive letter.

On the left, click on “Select Image” and browse the Raspbian image location to select it. In the middle, check that your SD card is selected or insert it into your computer.

Finally, click on “Flash!”  – to start the SD card preparation After a few seconds or minutes, the SD card is ready, and you can remove it from the computer. 

We can now move to the first boot of the Raspberry Pi!

Choosing the image & browse to the zip file you downloaded from Raspbian site. Select drive – it may find the SDHC Card automatically.  To see in the image and now we’re going to insert an image in the SD card that is needed to add a program (i.e. – image) that can write the operating system file onto a SD card. Insert your SD card with Raspbian into it into your computer and open the SD card from your file explorer – the drive will be labeled boot.

Step 3 – Enable SSH connection –

You simply have to create a file named ssh in the boot partition (the file does not have any extension).

Within the boot directory, Right-Click > New > Text Document and rename the document to wpa_supplicant.conf – Make sure that you change the file extension from .txt to .conf – You will be prompted to confirm the extension change. (Wi-Fi Protected Access (WPA) is a security standard for users of computing devices equipped with wireless internet connections. 

A Wireless Supplicant is a program that runs on a computer and is responsible for making login requests to a wireless network. It handles passing the login and encryption credentials to the authentication server. It also handles roaming from one wireless access point to another, in order to maintain connectivity.) 

  • With the empty file created, Right-Click on it and select open. You may be prompted to select a program you’d like to open the file with – just choose Notepad.

This is where we enter our Wi-Fi details. Enter the following text into the file, replacing the placeholder text with your own details, including country.

Making the setup of a wireless connection to pi module. Open the notepad and create a document. A file in the root of boot called the command: module. as an extension. In a boot drive. The extension should be visible so that it can be easy to find out the configure file.

Add Home Wi-Fi details in the newly created file. Add – name of your country code, Wi-Fi name/ssid and Wi-Fi password.  

Points to remember- (Wi-Fi connection should be the same as your system is being connected so it will be easily connected to your pi). Choose the File / Save As. Be sure to select the Save as type to All Files (so the file is NOT saved with a .txt extension). Call the file by the module. and save it. Then come back to My computer. In that ‘wpa_supplicant.conf ‘- add the details of the Wi-Fi. (the GitHub link is given in reference link; what to add)

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=IN
network={
 ssid="<Name of your wireless LAN>"
 psk="<password of your wireless LAN>"
 scan_ssid=1
}

For MAC command is go to /Volumes/boot/module – The SD card mounts as two volumes boot and roots. Open the boot volume and create a file named module. On boot -this file will be copied to /etc/module. directory in /roots partition. The copied file tells the Pi the WIFI setup information. This would overwrite any existing wife configuration, so if you had already configured Wi-Fi on the pi, then that will be overwritten.

SSH: It’s a secure protocol to access the Raspberry Pi command line interface from your computer.

Step 4 –  Enable SSH

After wireless configuration.  ENABLING A RASPBERRY PI For that – Create an SSH blank document (i.e.- with no extension in the boot disk).  which will allow you to remotely access the Pi command line from your PC.

Be sure to set Save as type to All Files (so the file is NOT saved with a .txt extension). Call the file SSH and save it.

When the Pi is first started, it checks if the file exists and activates the SSH accordingly.

 Eject the SD-card – After the work done in the file browser save all the work done and close it and then at last from the task bar select the EJECT option and remove it from the system which has been inserted. Boot the Raspberry pi.

Insert (plug) the SD card in the raspberry Pi. Plug it in and give it a few minutes.  Booting up will start and their red light comes gently and the process is started. And afterwards SSH to raspberry pi enabling.

Once complete, the system asks you for a login and password. You will notice that you never set these, so there are default ones to enter this time:

 • Login: pi 

 • Password: raspberry

Step 5 – To Connect

The Pi is now ready for startup. Eject the SD card from your computer and insert it into your Pi. Power up your Pi and wait a few moments for the initial boot to complete. On your computer, open up PuTTY.

Step 6 – Connect Over SSH 

Secure Shell (SSH) gives us a terminal into an operating system over a network and encrypts the traffic, giving us a level of security. Depending on your host operating system, you have a number of options available to you.

In the Windows- 

PuTTY is an easy-to-use SSH. Open PuTTY, and set the Host Name to the IP address of the network.

Requirement of PUTTY to connect SSH to pi. Go in the web browser download putty of- 32 bit or 64 bits. To connect to Pi you need the default username and password of the device. On first boot, the username and password would be as follows. Through the system requirement. For that need to Download that installer. 

Open it to run the installer (if asked for permission, click Yes) Select: Add shortcut to PuTTY on the Desktop and we can connect SSH via command line also in case of downloading putty software because raspberry pi is Linux based. Installing the putty, we can easily connect to a raspberry pi with the hostname as we are on the same network.

Click Open. If asked about catching a host key, click Yes.

Points to remember – IP Address— Any device connected to a Local Area Network is assigned an IP address.

In order to connect to your Raspberry Pi from another machine using SSH or VNC, you need to know the Pi’s IP address. This is easy if you have a display connected, and there are a number of methods for finding it remotely from another machine on the network.

That’s it, you now have access to the Raspbian Lite terminal from your computer. By using command line – connecting SSH –

Find your IP address just ping the raspberry Pi and Enter the command – ping raspberrypi-4 in command prompt. Enter – So the process starts to get the ip – address detail. Pinging starts. The Ping scan just pings all the IP addresses to see if they respond. For each device that responds to the ping, the output shows the hostname and IP address like so – Returning your IP address -raspberry Pi to the given hostname. 

Then add username for logging to the raspberry Pi. Enter the password. If necessary, then update the pi by- command sudor apt-get update. The command for the Upgradation of the software with the latest versions. 

Open raspi-config then – sudo raspi-config • Select “Change User Password”. Changing the password can be done by using command – sudo raspi-config -for securing the ssh.

Log In

Once SSH connects, simply enter the default login credentials:

Username: pi

Password: raspberry

And the ping your ip address, if lost is not there, then the connection is done.

Step 6 – How do I find the IP address of my headless Raspberry Pi?

Using the Pi with a display. If you boot to the command line instead of the desktop, your IP address should be shown in the last few messages before the login prompt. Using the terminal (boot to the command line or open a Terminal window from the desktop), simply type hostname – I which will reveal your Pi’s IP address.

For setting of a remote desktop connection Vnc software required. The Vnc allows remote access to the Raspberry Pi desktop. configure your Raspberry Pi by entering sudo raspi-config to enter the configuration settings menu. And Initials in the command line -In that – setup option-select the -interfacing option connection, and select p3- with peripherals. VNC gets ready so then enable it. 

Download the VNC software because in computing, Virtual Network Computing (VNC) is a graphical desktop-sharing system that uses the Remote Framebuffer protocol (RFB) to remotely control another computer.  It transmits the keyboard and mouse events from one computer to another, relaying the graphical-screen updates back in the other direction, over a network. 

For a window user –

Use command sudo apt- get install xrdp in the command prompt. The command is added – get in the desktop protocol. Open the remote desktop connection in the window OS. Add your pi – IP address / hostname. Add Password (in – case changed -then add that) Do Enter — And it brings to the – raspberry pi desktop interface.

Now, ready to start using the Raspberry Pi. Click the Raspberry Pi icon at the top-left of the screen to access items such as programming IDEs, a web browser, media player, image viewer, games, and accessories such as a calculator, file manager, and text editor. 

5 1 vote
Article Rating
Previous articleShark VPN – Review
Next articleHow Does A VPN Work?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments