SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-09-18 18:00:46

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Howto: MPD

sudo apt-get install mpd

Last edited by benj1 (2011-04-25 20:40:21)

Offline

Be excellent to each other!

#2 2009-09-30 18:14:28

uberbdon
#! CrunchBanger
Registered: 2009-09-13
Posts: 135

Re: Howto: MPD

i get this error: brandon@brandon-laptop:~$ mpd

** ERROR **: problems opening file /etc/mpd.conf for reading: Permission denied

aborting...
Aborted

Offline

#3 2009-09-30 19:39:32

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

Offline

#4 2009-10-02 17:27:57

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

glad to be of service smile

Offline

#5 2009-10-19 11:30:16

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: Howto: MPD

thanks a lot, great post! i have additionally installed the ncmpc as frontend. 

greetings!

Offline

#6 2009-10-19 14:35:25

Raffles10
#! Member
From: London, UK
Registered: 2009-08-27
Posts: 73

Re: Howto: MPD

For some extra functionality you might try ncmpcpp:

tag editor * playlists editor * easy to use search screen * media library screen * lyrics screen * possibility of going to any position in currently playing track without rewinding/fastforwarding * multi colored main window (if you want) * songs can be added to playlist more than once * and a lot of minor useful functions. smile

Offline

#7 2009-10-20 14:08:31

wildebos
New Member
Registered: 2009-08-16
Posts: 5

Re: Howto: MPD

Awesome post, thanks !! smile

Offline

#8 2009-10-30 19:00:49

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

OK benj1, so I followed your instructions to the letter, and I get this when I try to run MPD:

unable to bind port 6600: Address already in use
maybe MPD is still running?
Aborted

Do I just tell it to use a different port?  What else might be bound to this port?

Offline

#9 2009-10-30 19:52:51

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

if 'pgrep mpd' gives you anything, its running

mpd --kill will kill mpd

it is possible that something else is using the port, i dont know how to check definitively though

if you need to you can change the port in .mpdconf

Offline

#10 2009-10-30 20:07:18

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

pgrep mpd returns 3087.

mpd --kill returns
** ERROR **: unable to open pid_file "/home/peter/.mpd/pid": No such file or directory;;aborting;aborted
(semicolons are newlines)

Any ideas?

Offline

#11 2009-10-30 20:15:45

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

first off have you made an ~/.mpd directory? if not do that

if not try 'killall mpd' and then restart it

failing that im guessing youve started it and then changed the pid file?
try changing the conf file to point to '/var/run/mpd/pid'

see if that works

Last edited by benj1 (2009-10-30 20:18:18)

Offline

#12 2009-10-30 20:31:24

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

sudo killall mpd did the trick. smile

Offline

#13 2009-10-30 23:17:42

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

Something is starting mpd as root at startup.  It isn't in autostart.sh or the autorun directory.  Where could it be?  I've looked everywhere I can think of, and many places I couldn't think of.  I hate having to sudo killall mpd just to run it again with luser rights.

Last edited by pvsage (2009-10-30 23:18:41)

Offline

#14 2009-10-31 01:09:31

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

Offline

#15 2009-10-31 10:32:57

UkDkDe
Member
Registered: 2009-05-08
Posts: 47

Re: Howto: MPD

@ pvsage

After following this post, I had the problem of mpd running at start. Could only kill from sudo. Fixed as follows:
Make sure you have user as "your user name" in both the ~/.mpdconf AND the etc/mpd.conf files.
Then start mpd at openbox start by adding   mpd &

Offline

#16 2009-10-31 22:12:59

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

Since I can't imagine my Mini running as an actual server, I fixed my mpd problem by going back to MoC. MoC is uglier than a Fender Tweed amp, and sounds just as beautiful. cool

Offline

#17 2009-11-02 13:16:30

MacAnkka
New Member
Registered: 2009-11-02
Posts: 2

Re: Howto: MPD

Thanks for this nice guide! I've used mpd once before on a ubuntu box and it was a real pain to set up via trial and error.

About the mpd running as root on startup: you can disable that from the file /etc/default/mpd

like this, for example: "sudo nano /etc/default/mpd" and change the line

START_MPD=true

to

START_MPD=false

Offline

#18 2009-11-02 14:09:33

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

Offline

#19 2009-11-02 15:17:27

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

I'll wager his problems were the same as mine - mpd starting either at boot or at login, forcing a sudo killall to release port 6600.  I think the update should be to add his bit about editing /etc/default/mpd.

I wonder if simply deleting /etc/default/mpd would also fix the problem?

Maybe another option would be to simply let mpd run as root, and have a symlink in /var/lib/mpd/music that points to ~/music, so if you have multiple accounts on the computer they can all use their own music folders?

EDIT:  Incidentally, mpd started automatically as root the moment I installed it.

Last edited by pvsage (2009-11-02 15:18:42)

Offline

#20 2009-11-02 15:46:47

MacAnkka
New Member
Registered: 2009-11-02
Posts: 2

Re: Howto: MPD

Last edited by MacAnkka (2009-11-02 15:47:25)

Offline

#21 2009-11-02 16:08:14

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

well ive added an update section saying if you get errors such as
"problem opening log file "/root/.mpd/mpd.log" (config line 11) for writing"
or mpd not finding music files, im guessing those would be the symptoms?

Offline

#22 2009-11-02 16:10:31

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

Offline

#23 2009-11-02 16:16:53

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

The specific error I found due to mpd autostart (assuming I had edited .mpdconf properly) was

unable to bind port 6600: Address already in use
maybe MPD is still running?
Aborted

when I tried to run mpd as a regular user.

Offline

#24 2009-11-02 16:47:39

benj1
Wiki Wizard
From: Yorkshire, England
Registered: 2009-09-05
Posts: 1,084

Re: Howto: MPD

ok ive added that bit as well

Offline

Help fund CrunchBang, donate to the project!

#25 2009-11-03 18:48:16

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Howto: MPD

The file in /etc/default is mpd, not mpd.conf.  But thanks for updating the instructions!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo