Raspberry Pi: file server (NAS) setup - so it goes
A NAS is not set up hard and in a few steps done. In this case, we will show you the steps for a Pi with Raspbian.
- Run apt first of all, the command "sudo apt-get update && sudo-get upgrade" to get Raspbian up-to-date.
- Then run the commands "sudo apt-get install samba samba-common-bin -y", "sudo apt-get install apache2 -y" and "sudo apt-get install php5 mysql-server-y". Where appropriate, you have to be for MySQL to have a strong password set.
- Then enter the command "sudo chown -R pi /var/www/html" to your Raspberry-Pi-standard account access to a system folder.
- You also create using the command "sudo mkdir -m 1777 /share" to a new directory.

Raspberry Pi: file server (NAS) setup (source: Pixabay)
Samba to configure correctly
Then, you must configure the service "Samba". This goes with the command "sudo leafpad /etc/samba/smb.conf". Add at the very end of the file add the following entry. Do not forget to save the file at the end.
- [share]
- Comment = Pi Network Drive
- Path = /share
- Browseable = yes
- Writeable = Yes
- only guest = no
- create mask = 0777
- directory mask = 0777
- Public = yes
- Guest ok = yes
Raspberry Pi: NAS start
After you have completed all of the above steps, you can start the Server.
- You can do this by first using the command "sudo smbpasswd-a pi" a password for Samba.
- Finally, you can start the Server with the command "sudo /etc/init.d/samba restart" to start.
- Now you can access with an Internet enabled device in your network to the Cloud. Under Windows, open the file Explorer and click on "network".
In the next practical tip we will show you how to make your Raspberry Pi with the Smartphone control can.
