You are not logged in.

#1 2011-05-21 19:21:17

jonnybarnes
Member
From: Manchester, UK
Registered: 2011-05-11
Posts: 129
Website

Getting MPD to work as user

So I was following this part of the wiki, and having read about access to music I also changed the user to "jonny" so it should be able to access my music at /home/jonny/music. Now when I start mpd I get this:

[jonny@jonny-arch ~]$ mpd ~/.mpd/mpd.conf
listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
daemon: cannot init supplementary groups of user "jonny": Operation not permitted
Failed to load database: Database corrupted

What gives?

Offline

#2 2011-05-21 19:40:02

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: Getting MPD to work as user

according to https://bbs.archlinux.org/viewtopic.php?id=55279, you'll either need to change the default location of the files created by the daemon or change the permissions on the ones already created. Check out the linked page if you have any more problems, seems pretty extensive.


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#3 2011-05-21 20:39:44

jonnybarnes
Member
From: Manchester, UK
Registered: 2011-05-11
Posts: 129
Website

Re: Getting MPD to work as user

So I've commented out of the mpd.conf file the line about user, as it says it defaults to current user.

My problem now is it doesn't seem to start on boot, I have mpd ~/.mpd/mpd.conf in my ~/.xinitrc file, but for anything to work I still have to run the command mpd ~/.mpd/mpd.conf myself.

Offline

#4 2011-05-21 21:12:49

mangust
Member
From: nomad
Registered: 2010-09-18
Posts: 31

Re: Getting MPD to work as user

In addition to the 'user' in mpd.conf you should configure 'group' as 'users'.

What DE/WM do you run? For instance, in openbox you should add to .config/openbox/autorun.sh the command to run mpd as a user (mpd ~/.mpd/mpd.conf).


"I hate computers, why didn't I become a street musician?" - phrakture

Offline

#5 2011-05-21 21:38:18

synorgy
Member
From: $HOME
Registered: 2005-07-11
Posts: 272
Website

Re: Getting MPD to work as user

If you're using a login manager, ~/.xinitrc probably doesn't do anything. Try adding it to the startup files for your particular DE / WM.


"Unix is basically a simple operating system, but you have to be a genius to understand the simplicity." (Dennis Ritchie)

Offline

#6 2011-05-21 22:03:25

jonnybarnes
Member
From: Manchester, UK
Registered: 2011-05-11
Posts: 129
Website

Re: Getting MPD to work as user

I use Gnome3, I ran `gnome-session-properties` and added it there, but still, when I boot up I need to run the command.

Offline

#7 2011-05-21 22:05:08

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Getting MPD to work as user

Or as an XDG shortcut in «.config/autostart», then all XDG-compliant DEs and WMs will launch it.
EDIT:  Ninjaed by OP.

Last edited by Wintervenom (2011-05-21 22:06:54)

Offline

Board footer

Powered by FluxBB