One of the most convenient ways to share data across a network is using a shared network folder. In Windows, setting up a shared network is usually an easy process. However, it’s not a straightforward to do in Linux (no surprise).
Create Shared Network Folder Linux
To begin, you are going to need to download and install samba
apt-get install samba apt-get install samba-common-bin
Next, create the folder that you want to share. I am going to create a folder in my home directory called shared:
Then create a user and password combination that can be used to access your shared folder:
sudo smbpasswd - a dave
Finally, go into the Samba conf file and add the shared folder with the users:
sudo nano /etc/samba/smb.conf
Then add the following at the bottom:
[shared] path = /home/pi/shared valid users = dave read only = no
Restart Samba for the changes to take effect.
sudo /etc/init.d/samba restart
That’s it. You should now be able to access this shared network folder across other Windows and Linux devices.