In this short tutorial let us learn how to install the Raspbian Buster on Raspberry Pi 4b.
Raspbian Buster is the officially supported operating system from Raspberry Pi Foundation. Soon, after releasing the Raspberry Pi 4b launch, the Raspberry Pi foundation released the Raspbian Buster.
Currently, the Raspbian Buster is available in three variants. You can download it from the Foundation’s download page. The three variants are:
- Raspbian Buster with desktop and recommended software
- Raspbian Buster with desktop
- Raspbian Buster Lite
The first two variants come with a GUI (Graphical User Interface). The Raspbian Buster Lite is a CLI (Command Line Interface) based OS. It comes with just enough preinstalled packages that are necessary to run web apps and services. In this example, we stick with Raspbian Buster Lite.
If you want to read more about the new Raspberry Pi 4b, you can read my article about it.
Download the Raspbian Buster Lite image from the Raspberry Pi’s Raspbian download page.
Take a micro-SD card (a pre-formatted card or the one that does not have some valuable data) and connect it to a computer using a micro-SD card reader. Prefer, atleast a UHS-I, Grade 1, Class 10 micro-SD card for better performance. We use the following card:
We will use ‘balenaEtcher’ program to flash the image to the card. So, you can download ‘balenaEtcher’ from their download page. Download the right installation media accordingly for your computer’s OS.
Start the ‘balenaEtcher’ program. Click on ‘Select image’ button and select the ‘Raspbain Buster Lite’ zip.
Next, click on the ‘Select target’ to select the card you want to flash with the image. Make sure you select the correct card. Flashing the image will erase all the data on the chosen card.
Review your selections and click on ‘Flash!’. After a while, the OS image would be flashed on to the card.
We have some steps that we recommend for the first boot. Please follow the steps below.
Booting Raspbian Lite for the first time on Raspberry Pi 4b.
Go to the ‘boot’ partition on the flashed micro-SD card. Create an empty file named ‘ssh’ (without the single quotes).
Note: We are taking this step so that we don’t have to connect our Raspberry Pi 4 to an external monitor. We will SSH into our Raspberry Pi 4b to use the CLI.
Remove the micro-SD from the micro-SD card reader, plugin the ethernet cable and power cable. Rasbian Lite would boot up.
Reserve a local IP address for the Raspberry Pi in your Router’s settings. This will make sure that the local IP address remains constant for the device.
Note: Steps for reserving the local IP are beyond the scope of this tutorial. The steps vary for each router manufacturer and model.
Connect to Raspberry Pi using SSH on a different machine on the same local network.
The command we need to use will be something as follow:
$ ssh useraname@localIPaddress
The default username for Raspberry Pi is
'pi'. And for this example, the local IP assigned to Rpi 4 is
192.168.0.5. So, our command to SSH into Rpi 4 would be:
$ ssh firstname.lastname@example.org
We will be shown the following message:
The default password for Rasbian Buster is
'raspberry'(without the single quotes). Type the password and press enter.
After we login, we will need to change the default password to something secure. Enter the following command:
You will be asked to enter your current password and then new password two times (to double-check that you entered what you wanted).
Remember the password you typed in. And, keep it at a safe place. We will need this a lot in future.
Let’s update the package list from repositories and upgrade the packages first. This is important from the security point of view. Having the packages up-to-date is must, there is no exception for that. Use the following commands to update and upgrade:
$ sudo apt-get update && sudo apt-get upgrade
Reboot your Raspberry Pi. Use the following command:
$ sudo shutdown -r now
After the reboot we will login again using SSH.
That is it, our Raspberry Pi with Raspbian Buster Lite is now ready. We may install any packages we wish.
You may view the video tutorial for additional help.
You may add your impressions regarding the blog post here: