# STEP13
# share points (useful for browsing/updating server files from Windows or Mac ) add the lines below at the end of the smb configuration:
#
# also, add the home storage shared point
# if you want to get a full access to the sd card content from windows/mac
# (attention ‘root’ access here)
#
$ sudo nano /etc/samba/smb.conf
# edit samba configuration by commenting [home] entries and adding the settings bellow at end (playlists, music and storage access)
[playlists] path = /var/lib/mpd/playlists read only = no public = yes writable = yes browseable = yes guest ok = yes create mask = 0777 directory mask = 0755 force user = mpd [music] path = /mnt/media read only = no public = yes writable = yes browseable = yes guest ok = yes create mask = 0777 directory mask = 0755 force user = mpd [www] path = /var/www/html read only = no public = yes writable = yes browseable = yes guest ok = yes create mask = 0777 directory mask = 0755 force user = www-data [Downloads] path = /home/pi/Downloads read only = no public = yes writable = yes browseable = yes guest ok = yes create mask = 0777 directory mask = 0755 force user = pi [scripts] path = /home/pi/scripts read only = no public = yes writable = yes browseable = yes guest ok = yes create mask = 0777 directory mask = 0755 force user = pi [sdcard] path = /home/pi read only = no public = yes writable = yes browseable = yes guest ok = yes create mask = 0777 directory mask = 0755 force user = root
# CTRL+O to save
# CTRL+X to exit
# restart samba:
$ sudo /etc/init.d/smbd restart
# or
$ sudo systemctl restart smb
# wait 5 sec and type the cmd below if shared points are NOT visible from your Windows network browser:
$ sudo systemctl restart nmb
# the music contains the songs files and playlists directory is empty but visible using the Windows network browser on your PC
# OPTIONAL: reboot your device
$ sudo reboot
# IMPORTANT: it’s recommended to remove the [sdcard] shared point from smb.conf as soon as your installation is working correctly.
Click the button NEXT below to continue…