How to install Raspbian on Raspberry Pi [Step-by-Step Guide]

by Vlad Constantinescu
Vlad Constantinescu
Vlad Constantinescu
VPN Expert & Privacy Advocate
Vlad might have a degree in Animal Husbandry and Livestock Management, but he's currently rocking anything software related, ranging from testing programs to writing in-depth reviews about them.... read more
Affiliate Disclosure
  • If you're the proud new owner of a Raspberry Pi, you must know a thing or two about this wonderful device.
  • First of all, note that Raspberry Pi, much like any other computer, requires an operating system so it can run.
  • Check out our Raspberry Pi section for more awesome RPi articles and guides.
  • Visit the Developer Tools Hub page to discover more development-related software.
How to install Raspbian on Raspberry Pi
To fix various PC problems, we recommend DriverFix:
This software will keep your drivers up and running, thus keeping you safe from common computer errors and hardware failure. Check all your drivers now in 3 easy steps:

  1. Download DriverFix (verified download file).
  2. Click Start Scan to find all problematic drivers.
  3. Click Update Drivers to get new versions and avoid system malfunctionings.
  • DriverFix has been downloaded by 0 readers this month.

If you’re the proud new owner of a Raspberry Pi, you must know a thing or two about this wonderful device. For starters, it’s a powerful computer and not a toy, or a limited widget you can mess around with.

And as with any other computer, you’ll need a way to interface with its multiple components. The most common way to achieve this is through special software called an operating system.

Now with a standard computer deploying an operating system couldn’t be easier. Back in the day, it was a real challenge, but now it’s been simplified to the point that even PC novices can do it without risking to compromise their systems.

However, with Raspberry Pi things are a bit different. The lack of any integrated peripherals (mouse + keyboard) or display might make it even more difficult. But it’s not that bad once you get the hang of it.

Come on, we’ll show you how to install Raspbian on a Raspberry Pi.

How to install Raspbian on SD card on Windows?

  1. Download Raspberry Pi Imager
  2. Fetch an empty (or discardable) SD card
  3. Install Raspberry Pi Imager on your Windows PCInstall Raspberry Pi Imager Windows
  4. Run the tool
  5. Click the Choose OS buttonChoose OS Raspberry Pi Imager
  6. Select Raspberry Pi OS (32-bit) as the program recommends itChoose RPi OS Raspberry Pi Imager
  7. Click the Choose SD card buttonChoose SD card Raspberry Pi
  8. Select the card you want to write the OS on (we used a camera as a card reader)Select card Raspberry Pi Imager
  9. Click the Write buttonWrite button Raspberry Pi Imager
  10. Confirm your action by clicking the Yes buttonRaspberry Pi Imager Yes button
  11. Wait for the process to come to an endProgress of Raspberry Pi Imager

Note that all previous data on your SD card will be erased by the Raspberry Pi Imager tool. Furthermore, you can’t access the content of the SD card or write on it by connecting the RPi to your PC.

Therefore, you’ll also have to use an SD card reader and connect it to your PC so you can write the OS to the card. We’ve used an old photo camera and it worked like a charm. Using a microSD-enabled phone can also work great.

Installing Raspberry Pi OS (formerly Raspbian) on Windows feels a tad less complicated thanks to the GUIs of the programs we used. Linux users prefer deploying it using the Terminal (the equivalent of Windows’ CMD).

How to install headless Raspbian on SD card?

This bit can be very useful in case you don’t have an HDMI cable and a monitor. Installing a headless Raspberry Pi OS on your RPi device can help you interface with it in lieu of the aforementioned components.

It’s quite simple, actually, and doesn’t require a lot of additional steps. You just follow the steps of the standard installation we’ve listed above, and perform the following after you’re done:

  1. Refrain from removing the SD card from your reader
  2. Open the SD card’s root in File Explorer
  3. Click the View button at the top of the Explorer window
  4. Make sure File name extensions is checkedExplorer enable file extension visibility
  5. Right-click anywhere in the window (don’t right-click any files)
  6. Select New > Text Document
  7. Name the file SSH and remove the .txt extensionRPi create empty SSH file
  8. Confirm your action
  9. Unplug the SD card from your reader

That’s it, now you’ve enabled SSH on your RPi device, which Raspberry Pi OS disables by default. Upon its first boot sequence, SSH will be activated when the OS sees the empty file you created.

Raspberry Pi not booting? Our guide will help you solve this issue quickly.

Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

Thus, instead of using peripherals to access your RPi device, you can simply interface with it by using a Secure Shell (SSH) client, as we’ll explain in the next section.

How to connect to Raspberry Pi?

1. Using peripherals

  1. Insert the newly OS-written SD card into your Raspberry Pi
  2. Get a keyboard, mouse, HDMI cable, and display monitor
  3. Connect all of the above to your Raspberry Pi
  4. Plug your RPi to a power source using the dedicated power port
  5. Optionally: connect an audio output device if you want to have sound
  6. Wait for the Raspberry Pi OS to boot
  7. Use pi as the username and raspberry as the password
  8. Enjoy your new Linux-based mini PC

If you installed the GUI version of Raspbian, you’ll get familiarized with the system quite easily. On the other hand, if you’ve opted for the simplified GUI-less, CLI-driven version, you’ll only see lines of text.

That shouldn’t be necessarily a problem, but many users get put off by operating PCs through typing seemingly complicated text commands. Which gets us to the second method to connect to your Raspberry Pi.

2. Using an SSH client

  1. Download an SSH client (we used Solar Putty)
  2. Install the SSH client on your PC
  3. Connect your Raspberry Pi to your router using an Ethernet cableEthernet cable Raspberry Pi
  4. Insert the Raspberry Pi OS SD card into your RPi
  5. Plug the Raspberry Pi into a power source (we used our router’s USB port)Power source Raspberry Pi
  6. Access your router’s gateway address in your browser
  7. Identify the local IP address of the RPi device and write it down
  8. Run the SSH client and create a new session within it
  9. Type the IP address you saved earlier
  10. Optional: you can skip the 6th and 7th steps by using raspberry or raspberry.local as the address
  11. Use pi/raspberry as the username/password combination
  12. Define a name for the credentials (if needed)Raspberry Pi SSH configuration
  13. Save the session details and launch it (hit Create button)

The SSH client version is the CLI one we’ve described above. There’s no GUI and you can only interact with your RPi through lines of text. However, once you get the hang of it, you’ll realize it’s not that complicated.

Granted, the SSH version is more suitable for advanced users, who know their way around Linux operating systems. Note that, unlike the GUI version, the CLI one is more permissive and lets you tamper with things you shouldn’t touch.Main screen SSH Raspberry Pi

Thus, we feel the need to give you a heads-up: never run any commands you’re not entirely familiarized with unless you feel like risking the integrity of your Raspberry Pi OS.

How to use Raspbian OS?

Now that you’ve successfully deployed Raspberry Pi OS on your Raspberry Pi, a world of opportunities awaits you. You can use your new mini-PC (we’re talking about size, of course) to host a website, run an email server, or even use it as a VPN server.

If none of these sound too appealing, you may be glad to hear that you can turn your Raspberry Pi device into a retro-gaming console. However, that’s a whole nother story and we won’t overburden you with the details here.

Last, but not least, you can use mobile apps to access your Raspberry Pi and control it, if PC interaction doesn’t seem to cut it. One such app is RaspController.

Final thoughts on installing Raspberry Pi OS

All things considered, deploying Raspberry Pi OS on your RPi device may not be exactly a walk in the park. However, following our comprehensive guide will help you perform the setup regardless of your previous experience.

Note that despite its size the RPi is a powerful computer. Therefore, you can use it for a wide range of projects, including but not limited to hosting websites, email servers, and even Minecraft servers.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

Frequently Asked Questions

This article covers:Topics: