On Lu, 09 iun 14, 23:05:43, Teresa e Junior wrote:
> I believe it's got something to do with NetworkManager, because mpc started
> working as soon as I run:
> $ sudo service network-manager stop
> 
> And then I run this, and while trying to connect, or later if connecting
> fails, mpc won't work again:
> $ sudo service network-manager start
> 
> The version of NetworkManager installed is 0.9.4.0-10 on wheezy. I believe
> NM kind of advertises to the system if there is a connection available. As
> an example, if configured as such, Claws Mail will only check for emails
> based on information passed by NetworkManager.

As far as I can tell mpc is low-level enough to not care about what 
Network Manager advertises. I'm suspecting it does have something to do 
with DNS, so I'd suggest you pick a name for your machine and make sure 
you adjust your configs as follows (assuming your machine's name is 
'mpdserver'):

/etc/hostname:
mpdserver

/etc/hosts:
127.0.0.1   localhost
127.0.1.1   mpdserver

(you can also use the lan IP here if it is fixed and enabling the IPv6 
entries could also help)

mpd.conf:
bind_to_address     "localhost"

If you make all these changes it's probably a good idea to reboot. If 
mpc still can't connect please post the output of:

    getent hosts localhost
    getent hosts mpdserver # or whatever you named it
    netstat -plant | grep mpd

with and without Network Manager running.

Kind regards,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
http://nuvreauspam.ro/gpg-transition.txt

Attachment: signature.asc
Description: Digital signature

Reply via email to