DEV Community

Vedant
Vedant

Posted on • Edited on

Setup NAS on Raspberry Pi 4 - Part 2

You are reading the second part of the multi part series to Setup NAS on Raspberry Pi.

Part 1: Motivation
Part 2: Bake the Pi
Part 3: Install OpenMediaVault
Part 4: Setup OpenMediaVault (coming soon...)


Part 2: Bake the PI

So, Let's setup on Raspberry PI. I've used Raspberry PI 4 Model B 4 GB. You may use any other variant of the device.

First of all we need to install operating system on your Raspberry PI device. For that attach the SD Card to your Desktop/Laptop using card reader.

Download and install Raspberry Pi Imager to a computer https://www.raspberrypi.com/software/

Put the SD card you'll use with your Raspberry Pi into the reader and run Raspberry Pi Imager.

Open Raspberry Pi Imager.
Raspberry Pi Imager GUI

Click on CHOOSE OS button then select Raspberry Pi OS (other) option.

Raspberry Pi image selection

Select Raspberry Pi OS Lite (32-bit). This will be just fine for us as we don't need a GUI.

Raspberry Pi OS Lite image selection

Now click on CHOOSE STORAGE and select the SD Card you have attached to the computer.

Warning: make sure you select the correct device as this step will erase any data on the device.

One more thing before we write we have to enable the ssh. For that press ctrl + shift + x this will open below Advance options window.

Advance options

As you can see above check Enable SSH and select Use password authentication (you may select public-key authentication if need) then insert the password which you will need to ssh into the device later.

Click on WRITE button to install the OS on SD card.

This will take some time. It will download the Image from server if it is not already cached so take a coffee break.

ā˜•ā˜•ā˜•

Connect Raspberry PI using ssh

Insert the Memory card in Raspberry Pi. Connect the power cable and attach the Raspberry Pi to network using ethernet cable.

Now we are going to access and log into Raspberry Pi via SSH, but to do that we need to know the IP address. How can we find the IP address? the easiest way is to check your home router. Your home router will give out and IP address to your Raspberry Pi via DHCP, just look at the last device that signed in and got and IP address for me.

Most probably the connected device type/model will be named Raspberry Pi.

Now once we have IP address in my case it is 192.168.0.30.

Now lets ssh into the device. Open terminal and run the below command.

ssh pi@192.168.0.30
Enter fullscreen mode Exit fullscreen mode

This will ask you Are you want to continue connection? just put yes. It will ask you to insert password, insert the one you set earlier else default would be raspberry.

Now you should be in.


That is it for this part you can continue with the reading the rest of parts.

Part 1: Motivation
Part 2: Bake the Pi
Part 3: Install OpenMediaVault
Part 4: Setup OpenMediaVault (coming soon...)

Top comments (0)