To install samba capabilities on your Linx box, run the following commands:
sudo apt-get install samba samba-common-bin
This will run off an install process, note that it may ask you if you’re sure about installing this, press y to accept and continue.
Now edit the samba configuration file using:
sudo nano /etc/samba/smb.conf
Go all the way to the end of the file and add the following lines…
- [share]
- comment=Pi Share
- path= DIRECTORY LOCATION e.g. /mnt/library
- browseable = yes
- writeable = yes
- only guest = no
- create mask = 0777
- public = no
- guest ok = no
At this point your may need to restart the smb service using the following command:
sudo service smbd restart
You may need to know the IP address of the Linux share in order to access it, you can do this by using “ifconfig” and looking for something along the lines of “192.168…” on the eth0 interface”
To access the share using the Windows and R key to bring up the run dialog box and type in the IP address of the Linux box or its hostname. It would now ask you for credentials, here you should use your regular Linux credentials.
You can see this below:
Once it has accepted my credentials I get the following:
Hopefully, you get the same as I did, if not then leave a comment. Enjoy!