Now if you want to share files from Raspberry pi to windows, linux, iOS, Android and Mac OS. Samba is the best file sharing server to install on the machine.
Samba is an open source server licensed under GNU General Public License. Samba has provided secure, stable and fast file and print services for all clients.
To install Samba on Raspberry Pi, run
sudo apt-get install samba samba-common-bin
and add user pi to the local smbpasswd file:
sudo smbpasswd -a pi
Now if you want to share specific folders you may open the samba config file and edit it
sudo nano /etc/samba/smb.conf
Paste in the below script in the end of the file.
[Photos] #This will the name which will be displayed on network path = </path/to/dir> #give the path of the directory to share available = yes valid users = @users read only = no browsable = yes public = yes writable = yes
Save the changes and restart Samba using
sudo /etc/init.d/samba restart
You can now access the defined share from any machine or from an app that supports the SMB protocol. You can even map this drive to your windows or mac machine. This will automatically mount the shared drive once your machine has booted up. Therefore you can use this as an additional Hard Drive on your mac or Windows. Now a days, Due to SSD storages in Mac you get a very minimal HDD space, use this method to increase your space without physically plugin the HDD to your Mac PC.
Along with file sharing, samba allows you to integrate Printer as well that works as a cloud.
I have also written a post on VNC on Raspberry PI to work on Raspbian.
Please share your valuable feedback and anything additional that I can help please do comment on comment box.
For more reading: