How To Set Up Own NAS With Linux And Raspberry Pi – Guide

Are you concerned that if you lose your files, you’ll be disappointed? Do you want to build a network-attached storage (NAS) to keep your files safe and manageable? ..

This is an ideal development for you if you are looking to build a smart NAS server at a cost-effective cost. With the developed handling rate and running the Raspberry Pi 4 along with USB 3.0 and Gigabit Ethernet, you can build a NAS server that is efficient and reliable.

Edge Servers are becoming increasingly popular for a variety of reasons. One reason is that they can provide a high level of performance and security for your data. In this article, we will discuss NAS and RAID in Edge Server Applications. This will help you to make the most of your Edge Server and protect your data. ..

How to to define up Raspberry Pi as NAS?

If you have the necessary hardware for your own NAS server, you can dedicate yourself to installation and configuration of the software needed to operate it. There are several ways to do this, and one of the most popular is to download OpenMediaVault under the GPLv3 license.

Debian-based Linux distribution includes SSH, FTP, RSync and BitTorrent client which can be operated via web interface making it perfect turnkey solution for configuring Raspberry Pi NAS. Thanks to its modular structure, range of functions can be expanded at any time through plugins. ..

In this tutorial, you will learn how to install OpenMediaVault on your Raspberry Pi NAS server. You will need to follow the steps below to complete the installation:

  1. First, you will need to install OpenMediaVault on your Raspberry Pi NAS server. To do this, you can use the following command: sudo apt-get install openmediavault
  2. Next, you will need to create a new OpenMediaVault instance on your Raspberry Pi NAS server. To do this, you can use the following command: 2> mkdir -p /etc/openmediavault/server
  3. Finally, you will need to create a new OpenMediaVault configuration file in /etc/openmediavault/server. This file should look like the following: 4> nano /etc/openmediavault/server/configuration

Download and Install OpenMediaVault

OpenMediaVault is a software package that allows you to encrypt your digital media and keep it safe. You can use OpenMediaVault to store your photos, videos, music, and other files on your computer. OpenMediaVault also helps you protect your computer from data theft and online piracy.

To download the file, use Etcher to burn the microSD card with the image of the file on it.

Launch the Raspberry Pi NAS and change the keyboard layout

pi@raspberrypi:/$ ssh -L “localhost:80” -p 2222 pi@raspberrypi:/$ cd /home/pi/Desktop/ NAS_USERNAME NAS_PASSWORD

If you are using a different keyboard layout when accessing OpenMediaVault from a different country, you may need to change it in OpenMediaVault.

Change password and display IP address

To prevent unauthorized users from logging in to your Raspberry Pi NAS using the default password, you’ll need to assign a new root password.

This is a required command.

Confirm the new password by pressing the Enter key.

If the change is successful, the command line displays the message (“password updated successfully”).

iconfig –network-info

IP address for Raspberry Pi NAS server: 192.168.1.1

Login to the web interface

In this section, you will learn how to configure the Raspberry Pi as your NAS server. First, you will create a new user account and set up some basic settings. Next, you will create a file called config.txt and add the following content: raspberrypi = “0x8000” Then, in your web browser, navigate to http://192.168.1.1/ and enter the following into the address bar: configure raspberrypi

To do this, you need to switch to another computer on the same network and use a default Internet browser.

If you have a Raspberry Pi NAS connected to your router, enter the IP address in the address line of your browser and click on the login button. If you don’t have a Raspberry Pi NAS connected to your router, or if you don’t want to use the default login, enter the IP address in the text field below.

After logging in, the OpenMediaVault home menu opens with an overview of available services and various service information. ..

To set the system date and time, you can use the “Date and Time” command.

If your network is connected to the Internet, you can check “Use NTP server” – otherwise, just enter the corresponding times manually.

Securing the web interface

To secure the Raspberry Pi NAS server connection, you can use a security protocol such as SSH.

By default, HTTP traffic is unencrypted, which means that your data is vulnerable to interception. To protect your data, it’s recommended that you enable the encrypted pending HTTPS counterpart. ..

To use TLS / SSL, you also need a certificate which can be created in “System” -> “Certificates” -> “SSL”. Just click “Add” and the following pop-up window, click “Save”.

Save the certificate in the general settings and connect to the web interface using HTTPS.

Since the browser does not yet know the certificate, a warning will appear until you have added the certificate as an exception. Log in for the last time with your default data to enter your own password in “System” -> “General settings” -> “Web administrator password.” ..

Connecting storage media to the Raspberry Pi NAS

To set up the NAS server, you will need to connect the storage media to the Raspberry Pi and configure it for use with the web interface. ..

If there is a power supply and physical connection, you can view the media in the “Real Hard Disks” partition of the “Data Storage” partition. If OpenMediaVault does not automatically detect a disk, it may be necessary to use the “Browse” option button. ..

If you have added a storage unit to your Raspberry Pi NAS system and it is not showing up in the list of storage units, you can add it using the “Create” option. Once added, mark the individual storage units you want to include and add them to the NAS system using “Mount”. ..

Context up file sharing on included partitions

To allow users to store files on the connected data storage devices later, share the corresponding folders under “Access Control”. To do this, click on the “Shared Folder” submenu item and then on “Add”.

The user directory is the location where you will assign the path homes/ to your computer. You can also let your imagination run wild over the name and path, as long as you keep all other folders in the same location.

Creating user profiles to access the Raspberry Pi NAS server

After adding storage capacity to the Raspberry Pi NAS and structuring it accordingly, the next step is to create a user profile. You can do this in the “User” section of the menu (or via “Access Control”). Click on the “Add” option and enter the respective user data (name and password).

If you want to allow a user to adjust their login information, move the slider to “Change Access” and open the shared folders overview again. Select the relevant folders for access and assign the corresponding rights (read / write, read only or no access). ..

Context up access services for the Raspberry Pi NAS server

Users can exchange data with the NAS server by using SSH. SSH is enabled by default, but it can only be used by Linux users (through the terminal) without the need for additional software.

Windows users need to use client applications like PuTTY or WinSCP for data transfer via network protocol. ..

Enabling the Server Message Block (SMB) protocol under “Services” -> “SMB / CIFS” will make file sharing between Windows and Mac computers more convenient. ..

Windows has supported SMB/CIFS for years, while Linux and macOS use Samba, which is also a suitable solution. When activating the service, also check “Activate home directories for users” before adding the folders you want to be accessible through the protocol in the “Shares” tab. ..

Accessing the Raspberry Pi NAS

The Raspberry Pi NAS server has been rewritten to provide a central signal for file storage, so that the initial signal for central file storage can be provided. This makes it easier to use and operate, and makes it more reliable.

To connect to a Windows server, open the Control Panel and select “Network and Sharing Center.” Click “Change adapter settings.” Right-click the network connection that you want to use and select “Properties.” Select the “Security” tab and enter the server address including the smb: // prefix. The connection will be started. ..

Windows users establish a SMB connection to a Raspberry NAS through Windows Explorer. In this case, just enter the IP address after entering the double backslash (“”).

Final note

This guide will show you how to set up your own NAS with Linux and Raspberry Pi. If you have any questions about this article, please don’t hesitate to ask us. Additionally, please share this guide with your friends so that they can also benefit from it.