HOME > Components > Raspberry Pi - Set Up Network Sharing

Raspberry Pi - Set up network sharing

On your Raspberry Pi you can set up network sharing in a few steps. To do this, all you need is the Samba software, which you first configure. Then you take the network share.

How to set up network sharing on the Raspberry Pi

In this example, the instructions to set up network sharing with your Raspberry Pi are done with the user "Pi". If you have renamed the user, replace "Pi" with it.
  1. Network sharing using Samba software is suitable for setting up NAS, for example.
  2. First, install Samba via the terminal with the command: "sudo apt-get install samba samba-common-bin".
  3. With the command "sudo nano /etc/samba/smb.conf" open the Samba configuration.
  4. In the line "# security = user" now remove the hashtag.
  5. With "sudo smbpasswd -a pi" you set the user for Samba. The username must already be created on the computer.
  6. Assign the user the rights for the shared folder: "sudo chown -R pi:pi /media/WD250/samba".

The last step of network sharing

  1. Open with "sudo nano /etc/samba/smb.conf“ erneut die Konfiguration für Samba.
  2. Am Dateienende fügen Sie nun die folgende Zeile ein: „[ShareRaspberry]“ „path = /media/WD250/samba“ „writeable = yes“ „guest ok = no“.
  3. Speichern Sie die Konfiguration. In [ShareRaspberry] geben Sie den Namen der Freigabe an. Er muss nicht ShareRaspberry lauten. Hinter path geben Sie den Pfad des Ordners an.
  4. Starten Sie die Anwendung zu guter Letzt neu: „sudo /etc/init.d/samba restart“.

By Hurlee

PDF: Remove password - how to decrypt the document :: How do I restart my iPad?
USEFUL LINKS