You are not logged in.
Pages: 1
im been trying to setup mpd on my computer as a global config and use ncmpcpp to controll it.
ive gone through the wiki and setup my configs as such, seems work okay but when i fire up ncmpcpp and hit u it doesnt find any media please help
here are my configs for reference
/etc/mpd.conf
music_directory "/home/derek/data/Music"
playlist_directory "/var/lib/mpd/playlists"
db_file "/var/lib/mpd/mpd.db"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/mpd.pid"
state_file "/var/lib/mpd/mpdstate"
user "mpd"
# Binding to address and port causing problems in mpd-0.14.2 best to leave
# commented.
# bind_to_address "127.0.0.1"
# port "6600"
mixer_type "software"
audio_output {
type "pulse" #<- Change this to "pulse"
name "Sound Card"
}
.ncmpcpp/config
#=================================#
#|| ||#
#|| N C M P C P P C O N F I G ||#
#|| ||#
#=================================#
##
##### connection settings #####
## set it in order to make tag editor and renaming files work properly
mpd_host = "127.0.0.1"
mpd_port = "6600"
mpd_music_dir = "/home/derek/data/Music"
mpd_connection_timeout = "5"
mpd_crossfade_time = "1"
mpd_communication_mode = "notifications" (polling/notifications)
Offline
Does user "mpd" have access to /home/derek/data/Music ?
Offline
should i change that to my username ?
Offline
Running mpd as your user is much simpler and can be made even more straightforward by using Rasi's script (it's linked to from the wiki).
If you have to use it system-wide, then you will need to sort out the ratmangle of permissions that are required...
Offline
not be a negative nelly but arent the instruction on the wiki somewhat incomplete the system wide setup requires more than what is on there ? ive tried to chown -R mpd /home/derek/Music to no avail :<
i can use the script as you suggest for now
Offline
If you read the discussion page, you will see that there is/was debate about the clarity of the page.
FWIW: your issue is covered under troubleshooting: https://wiki.archlinux.org/index.php/Mp … ermissions
Offline
you can use my script to setup mpd.
First make sure to start from scratch:
rm -fr ~/.mpd*
Then run my script as your very own user. After that Just make sure to enable the user line in ~/.mpdconf and put YOUR username in there.
after that move the file
sudo mv ~/.mpdconf /etc/mpd.conf
Now the system daemon should work plus you have all mpd related files in one folder, which is owned by your user. ($HOME/.mpd)
The reason why it isnt working your way is that $HOME needs proper permissions, you cant access its subfolders as another user without chmodding $HOME too, which is something you normally dont want to do...
Last edited by Rasi (2011-12-29 07:05:49)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
thanks works great !
Offline
now the only probelm i have after i run the script and run it locally it works fine, but when i copy .mpdconf to /etc/ ncmpcpp runs okay but appears to be no volume output anymore, i chosen pulse in my mpd config file.
Offline
now the only probelm i have after i run the script and run it locally it works fine, but when i copy .mpdconf to /etc/ ncmpcpp runs okay but appears to be no volume output anymore, i chosen pulse in my mpd config file.
this makes no sense... "running locally"?
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
locally by having the mpdconf in home folder opposed to system wide by moving it to /etc
Offline
Pages: 1