You are not logged in.

#1 2011-12-29 03:20:48

Drumitar
Member
Registered: 2011-04-13
Posts: 73

ncmpcpp + mpd no songs :<

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

#2 2011-12-29 03:48:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: ncmpcpp + mpd no songs :<

Does user "mpd" have access to /home/derek/data/Music ?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-12-29 03:51:27

Drumitar
Member
Registered: 2011-04-13
Posts: 73

Re: ncmpcpp + mpd no songs :<

should i change that to my username ?

Offline

#4 2011-12-29 03:55:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: ncmpcpp + mpd no songs :<

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...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-12-29 04:55:15

Drumitar
Member
Registered: 2011-04-13
Posts: 73

Re: ncmpcpp + mpd no songs :<

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

#6 2011-12-29 05:39:32

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: ncmpcpp + mpd no songs :<

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


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-12-29 06:46:45

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: ncmpcpp + mpd no songs :<

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

#8 2011-12-29 07:29:12

Drumitar
Member
Registered: 2011-04-13
Posts: 73

Re: ncmpcpp + mpd no songs :<

thanks smile works great !

Offline

#9 2011-12-30 02:22:41

Drumitar
Member
Registered: 2011-04-13
Posts: 73

Re: ncmpcpp + mpd no songs :<

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

#10 2011-12-30 09:24:12

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: ncmpcpp + mpd no songs :<

Drumitar wrote:

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

#11 2011-12-30 20:22:21

Drumitar
Member
Registered: 2011-04-13
Posts: 73

Re: ncmpcpp + mpd no songs :<

locally by having the mpdconf in home folder opposed to system wide by moving it to /etc

Offline

Board footer

Powered by FluxBB