# Files and directories ##################################################
# This setting controls the top directory which MPD will search to discover t$
# available audio files and add them to the daemon's online database. This
# setting defaults to the XDG directory, otherwise the music directory will be
# be disabled and audio files will only be accepted over ipc socket (using
# file:// protocol) or streaming files over an accepted protocol.
#
music_directory "/media/cb/MUSICA"
#
# This setting sets the MPD internal playlist directory. The purpose of this
# directory is storage for playlists created by MPD. The server will use
# playlist files not created by the server but only if they are in the MPD
# format. This setting defaults to playlist saving being disabled.
#
#playlist_directory "/var/lib/mpd/playlists"
playlist_directory "/media/cb/MUSICA/mpd/playlists"
#
# This setting sets the location of the MPD database. This file is used to
# load the database at server start up and store the database while the
# server is not up. This setting defaults to disabled which will allow
# MPD to accept files over ipc socket (using file:// protocol) or streaming
# files over an accepted protocol.
#
#db_file "/var/lib/mpd/tag_cache"
db_file "/media/cb/MUSICA/mpd/tag_cache"
# These settings are the locations for the daemon log files for the daemon.
# These logs are great for troubleshooting, depending on your log_level
# settings.
#
# The special value "syslog" makes MPD use the local syslog daemon. This
# setting defaults to logging to syslog, otherwise logging is disabled.
#
#log_file "/var/log/mpd/mpd.log"
log_file "/media/cb/MUSICA/mpd/mpd.log"
#
# This setting sets the location of the file which stores the process ID
# for use of mpd --kill and some init scripts. This setting is disabled by
# default and the pid file will not be stored.
#
#pid_file "/var/run/mpd/pid"
pid_file "/media/cb/MUSICA/mpd/pid"
#
# This setting sets the location of the file which contains information about
# most variables to get MPD back into the same general shape it was in before
# it was brought down. This setting is disabled by default and the server
# state will be reset on server start up.
#
#state_file "/var/lib/mpd/state"
state_file "/media/cb/MUSICA/mpd/state"
naturalmente dovete sostituire "/cb/MUSICA" nell'esempio con la directory da voi scelta, per esempio sullo stesso disco dove avete archiviato la vostra musica e quindi in Linux "/media" come nel mio esempio.
Prima delle modifiche, assicuratevi di aver creato la nuova cartella "mpd" così:
mkdir /media/cb/MUSICA/mpd
sostituite il percorso in corsivo con quello che preferite poi
mkdir /media/cb/MUSICA/mpd/playlists e INVIO
touch /media/cb/MUSICA/mpd/tag_cache e INVIO
touch /media/cb/MUSICA/mpd/mpd.log e INVIO
touch /media/cb/MUSICA/mpd/pid e INVIO
touch /media/cb/MUSICA/mpd/state e INVIO
Modificate la cartella che ho indicato in corsivo (es. /media/cb/MUSICA/....) con quella dove voi, per esempio, avete messo i vostri files audio.
In questo modo diciamo a MPD di scrivere sul nostro disco HDD USB più veloce dove abbiamo anche la musica evitando così di toccare la USB o la CF, non adatte a questo tipo di scritture in quanto lente. Grazie a questo accorgimento sarà possibile visualizzare più velocemente le copertine dei nostri album ed avere sempre MPD configurato anche dopo una formattazione del disco USB o CF. Inoltre, non usando directory di "root", sarà possibile usare MPD non come utente "root".