Voyage MPD Starter Kit 2.0 - Getting Started Guide
© 2014 Voyage Design and Consultants Page 7 15-Mar-2014/ Version 1.2
Then create a /mnt/public directory on Voyage MPD and mount to NFS server:
# mkdir /mnt/public
# mount -a
Since MPD set /var/lib/mpd/music as default music library path, we now create a symlink that points from default
library path to our NFS mount point.
# ln -s /mnt/public/ /var/lib/mpd/music/public
At last, make sure the NFS shared directories and files are readable by MPD:
# chmod –R ugo+r /mnt/public/
4.2 Mount to SAMBA shared drive
Like NFS share, if you have music files on Windows or Samba server, you can mount a directory to the samba
shared directory. Edit /etc/fstab as below:
# remountrw
# vi /etc/fstab
192.168.1.101:/public /mnt/public cifs
username=<username>,password=<password>,file_mode=0644,dir_mode=0755,iocharset=utf8 0 0
This assumes you have 192.168.1.101 server with a Windows/Samba shared directory named “public”. You
need to provide the username and password.
Like NFS mount, create a /mnt/public directory on Voyage MPD and mount to Windows/SAMBA server. Then
create a symlink so that MPD is able to search the music files under the SAMBA shared directory.
# mkdir /mnt/public
# mount –a
# ln -s /mnt/public/ /var/lib/mpd/music/public
# chmod –R ugo+r /mnt/public/
Note: If you are using Synology NAS, please use “username=<name of NAS>/admin” as user name parameter.
4.3 Access to UPnP AV Media Server
If you have music files hosted on UPnP AV Media Server in your network, you can use djmount to access UPnP
media from Voyage MPD.
If djmount is not installed, you can use apt-get to install it (requires Internet access from the kit).
# apt-get update
# apt-get install djmount
Then create a mount directory for UPnP media and run djmount manually:
# mkdir /media/upnp
# djmount -o allow_other,nonempty,iocharset=utf-8 /media/upnp
[I] Mount options = allow_other,nonempty,iocharset=utf-8
[I] Charset : successfully initialised charset='utf-8'
Make sure your UPnP media contents are publicly accessible from your network. When djmount is running, you
should be able to locate the media files under /media/upnp.
#find /media/upnp/
…
/media/upnp/punknix: root/Browse Folders/flac
/media/upnp/punknix: root/Browse Folders/flac/2l.no
/media/upnp/punknix: root/Browse Folders/flac/2l.no/Shchedrin: Basso Ostinato.flac
/media/upnp/punknix: root/Browse Folders/flac/2l.no/Crystalline.flac
/media/upnp/punknix: root/Browse Folders/flac/2l.no/Violin Concerto no. 4 in D major KV 218 -
Allegro.flac
…