Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200802 - media-sound/mpd - changes in default conf.
Summary: media-sound/mpd - changes in default conf.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Andrej Kacian (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 01:21 UTC by DEMAINE Benoît-Pierre, aka DoubleHP
Modified: 2008-01-28 17:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DEMAINE Benoît-Pierre, aka DoubleHP 2007-11-30 01:21:58 UTC
I had troubles for long time; mpd took hours before I could get it work, for a very simple reason: the default conf does not work.

Guys from IRC chan said:
(02:06:53) avuton: doublehp: take bind_to_address out of your mpd.conf
(02:07:08) avuton: stupid gentoo conf :(

After commenting the line, and restarting the server, it worked.

Please, change this default setting.

And, also put in the ebuild an ewarn about the basic steps to get mpd work; from what I have collected on wikis:

as root:
 * edit /etc/mpd.conf
 * rc-update add mpd default
 * /usr/bin/mpd --create-db
 * /etc/init.d/mpd start
 * install mpc and/or gmpc

as user:
 * mpc update
 * mpc add /
 * mpc play
 * to get more help, visit http://mpd.wikia.com/wiki/Main_Page

These steps are not trivial at all, nor intuitive for a music player that is considered by many as a replacement for xmms, audacious or bmp. I really think that ewarns should tell about these basic steps.

I am also compleetely unable to understand how to use PHPmp, but thats an other topic (no gentoo help, /usr/share/doc/phpmp-0.11.0/INSTALL.bz2 not revealant for Gentoo, URL reported in Description not apropriate to get it work on Gentoo). Please also insert main guidelines in enotices for www-apps/phpmp.

Good luck.
Comment 1 Andrej Kacian (RETIRED) gentoo-dev 2007-12-08 01:45:21 UTC
No, I'm not going to have bind_to_address commented out in default config, as that leaves MPD wide open to access from network.

Default config file works fine for non-network usage - only issue is that on ipv6-enabled hosts, it binds to an ipv6 localhost (I believe this is controlled by  first localhost entry in /etc/hosts), while mpc looks for ipv4 localhost by default.
Comment 2 DEMAINE Benoît-Pierre, aka DoubleHP 2008-01-27 17:00:15 UTC
I tried again after update to media-sound/mpd-0.14.0_pre20080120 , and accepting the new default conf, with

bind_to_address                 "localhost"
#port                            "6600"


root@moon_gen_2:~# /etc/init.d/mpd stop
 * Service mpd stopping
 * Service mpd stopped
root@moon_gen_2:~# /etc/init.d/mpd start
 * Service mpd starting
 * Service mpd started
root@moon_gen_2:~#

dhp@moon_gen_2:~$ mpc play
MPD_HOST and/or MPD_PORT environment variables are not set
error: problems getting a response from "localhost" on port 6600 : Connection refused
dhp@moon_gen_2:~$

After commenting again bind line, and restarting daemon:

dhp@moon_gen_2:~$ mpc play
DHP_400.lnk/themes/Disco Rojo Vol.2/08.@ccelerator (Syndicate of L.A.W).mp3
[playing] #1/505   0:00/3:42 (0%)
volume: 87%   repeat: off   random: off
dhp@moon_gen_2:~$

I really wonder how to get the default settings work on your box.
Comment 3 Andrej Kacian (RETIRED) gentoo-dev 2008-01-28 17:51:42 UTC
(In reply to comment #2)
> I really wonder how to get the default settings work on your box.

I already explained it in comment #1 - I do not have the ipv6 entry for localhost.

Anyway, mpd now has new maintainer, perhaps you can convince him to work around the idiotic localhost resolving in mpc/mpd.