HOW TO DO EVERYTHING

Everything you need to know, to do everything you want to do

Computers/IT

How to build your own NAS file server

build your own NAS file server

A dedicated file server is very handy. Unfortunately, finished NAS systems still cost a lot of money. However, you can also build your own NAS with the Raspberry Pi. How this works, you will learn in this practical guide for how to build your own NAS file server.

How to build your own NAS file server
How to encrypt a USB flash drive
How to replace an iPhone battery

Build your own NAS file server with Raspberry Pi

Setting up your own NAS is not difficult and done in a few steps. In this case we show you the steps for a Pi with Raspbian.

  • First run the command “sudo apt-get update && sudo apt-get upgrade” to update Raspbian.
  • Then run sudo apt-get install samba-samba-common -y, sudo apt-get install apache2 -y, and sudo apt-get install php5 mysql-server -y.
  • You may need to set a strong password for MySQL.
  • Next, use the sudo chown -R pi / var / www / html command to give your Raspberry Pi standard account access to a system folder.
  • Also create a new directory using the sudo mkdir -m 1777 / share command.

Configure Samba correctly

Then you need to configure the service “Samba”. This can be done with the command “sudo leafpad /etc/samba/smb.conf”. Add the following entry at the very end of the file. Do not forget to save the file at the end.
Comment = Pi network drive
Path = / share
Browseable = yes
Writable = Yes
only guest = no
create mask = 0777
directory mask = 0777
Public = yes
Guest ok = yes
Raspberry Pi: Launch NAS
After completing all the steps above, you can start the server.
First set a password for Samba with the command “sudo smbpasswd -a pi”.
Finally, you can start the server with the sudo /etc/init.d/samba restart command.
Now you can access the cloud with a web-enabled device on your network. Under Windows, open the file explorer and click on “Network”.

Theme by Anders Norén