Go Back
Samba file shares on Raspberry Pi
Posted:
Most of the time I use SSH to interface with my Raspberry pis, including CyberDuck for moving files. However, there are certain operations that require an old fashion file share.
Login to Raspberry Pi
From your favorite terminal app, login with ssh
Make sure you have Samba installed
sudo apt-get updatesudo apt-get upgradesudo apt-get install samba samba-common-bin
Configure Samba
We’re going to add a share called *Music*.
Edit the file /etc/samba/smb.conf
At the bottom of the file, add something like this:
[Music]path = /mnt/easystore/Musicwriteable=Yescreate mask=0777directory mask=0777public=noread only=no
Create a samba user
sudo smbpasswd -a pi
Restart Samba
sudo service smbd restart
Connect to Samba share from macOS
From the Finder
- Go to *Go > Connect to Server*
- Enter the address with the smb prefix (eg. smb://192.168.1.x)
- Click the + button to add it as a favorite (have to do this for it to ask for username and password for some reason...)
- Enter samba username and password you created earlier
Access from Terminal in macOS
You should now be able to access the share at
/Volumes/Music