You are not logged in.

#1 2011-01-16 00:39:00

aluser
Member
Registered: 2011-01-16
Posts: 119

[SOLVED]help set up mpd + ncmpcpp

hello

I've just installed arch and I've got pretty much everything working except for ncmpcpp. I've followed every tutorial out there but they seem a little outdated and some of the commands do not work (such as mpd --create -db)

I've followed  http://archerbase.wordpress.com/2009/12 … rch-linux/ but no avail. when I installed mpd by using the command

"sudo pacman -S mpd mpc ncmpcpp" I've never found a file named mpd.conf in my /etc/ directory. So I gave up and

and most recently i came across this tutorial and have followed this instead.

https://wiki.archlinux.org/index.php/Mu … _procedure

And in this tutorial i found out that Mpd comes with an example configuration file, available at /usr/share/mpd/mpd.conf.example. I'm still confused why it's different in this tutorial. I've followed all the steps in this tutorial instead and I can't still get ncmpcpp to recgonize any of my music.  Are there any important steps that I may have missed?

here is my mpd.conf file in /etc/mpd.conf
http://pastebin.com/K0ZUtqUe

Last edited by aluser (2011-01-22 01:26:34)

Offline

#2 2011-01-16 00:57:10

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

Re: [SOLVED]help set up mpd + ncmpcpp

Welcome to the boards. First and most important lesson: you should only ever follow the Arch Wiki.

You would need to post more information about what you mean when you say ncmpcpp "can't recognize any of my music" - but it sounds like a permissions error:

https://wiki.archlinux.org/index.php/Mp … ermissions


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-01-16 01:23:07

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]help set up mpd + ncmpcpp

Hello again,

What I meant was that when I open ncmpcpp there is nothing in the media library. I've pressed 'u' which supposedly updates the database but it still shows nothing. I've never got ncmpcpp to work so sorry if i'm being to vague. I mean, as far as I've understood. All i need is to specify my music directory in the /etc/mpd.conf file. and then start mpd in the command line. I've done all that already. Is there anything i'm missing?

Offline

#4 2011-01-16 01:28:06

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

Re: [SOLVED]help set up mpd + ncmpcpp

Yes. According to your conf file, you have set up mpd to start as root, and then hand off to $USER (you). If you want to run it that way, then mpd needs the correct permissions to access your music directory - as per the link I posted.

Read the full page and follow one of the approaches to the letter and you will be fine.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-01-16 01:47:56

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]help set up mpd + ncmpcpp

am i supposed to replace the user part with my username like this?

# chmod a+x /home/$orlando
# chmod -R a+X /home/$orlando/music

Offline

#6 2011-01-16 02:03:17

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED]help set up mpd + ncmpcpp

My suggestion is to either keep your music out of $HOME, or take a look at ACL

Last edited by Mr.Elendig (2011-01-16 02:03:34)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2011-01-16 02:12:50

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: [SOLVED]help set up mpd + ncmpcpp

You can keep those files on your home. Like that you don't need to change permissions. Like creating a hidden folder on your home.
Or if I'm not mistaken you could change the permissions of the folders where the mpd files are like this for example

sudo chown -R USERNAME /var/lib/mpd/

Like this you change the owner of that folder for the the username.

But, personally, I keep those files on my home.

Offline

#8 2011-01-16 02:13:30

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]help set up mpd + ncmpcpp

Thanks you for your suggestions everybody. I've got it to work by changing user: orlando in my mpd.conf file to "user: mpd". I'd also like to know how to have it automatically started whenever X is running.

ATM i'm using this command to start mpd
sudo /etc/rc.d/mpd start
I'm guessing that should go to the .xinitrc though im not sure.

Last edited by aluser (2011-01-16 02:23:45)

Offline

#9 2011-01-16 02:40:47

ilusi0n
Member
Registered: 2010-06-09
Posts: 187

Re: [SOLVED]help set up mpd + ncmpcpp

Put mpd on your deamons.

edit: mpd will start at every boot if you put it to run as a deamon. No need to start it manually.

Last edited by ilusi0n (2011-01-16 02:45:41)

Offline

#10 2011-01-16 04:54:42

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED]help set up mpd + ncmpcpp

Thanks ilusi0n, that worked perfectly!

Offline

Board footer

Powered by FluxBB