LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-07-2019, 11:59 AM   #1
slackonslackoff
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Rep: Reputation: Disabled
0.20.18 mpd installation on Slackware 14.2


Are there any up-to-date resources on installing mpd on Slackware? I try and run mpd without sudo and am thrown an error:

Code:
Apr 07 11:54 : exception: Failed to bind to '/run/mpd/socket'
Apr 07 11:54 : exception: nested: Failed to bind socket: No such file or directory
I am coming from Linux Mint where you have systemd and starting up processes were easy. How can I get mpd running properly on slackware? And yes, I did install did via the slackbuild.
 
Old 04-07-2019, 02:33 PM   #2
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,408
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
0.20.18 mpd installation on Slackware 14.2

What was the command?
Did you have a look to the config file?

IIRC I just do

Code:
 mpd &
From the docs :
Quote:
MPD reads its configuration from a text file. Usually, that is /etc/mpd.conf, unless a different path is specified on the command line. If you run MPD as a user daemon (and not as a system daemon), the configuration is read from $XDG_CONFIG_HOME/mpd/mpd.conf (usually ~/.config/mpd/mpd.conf).

Last edited by Tonus; 04-07-2019 at 02:45 PM.
 
Old 04-07-2019, 03:46 PM   #3
slackonslackoff
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Tonus, I ran the mpd command and then I ran the mpd & command. I have read and edited the config file at ~/.config/mpd/ and am still being thrown the same error. When I installed mpd most of the process was taken cared of through automated means. Is there anything else I should have done or need to do manually?
 
Old 04-07-2019, 07:13 PM   #4
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Can you create the file, as the mpd user:

$ touch /run/mpd/socket

?

I'm in a parking lot w/my phone, so I can't test my own install, but the error message appears to suggest that your mpd config is telling mpd to pipe to a socket that doesn't exist yet.

If you don't intend for mpd to pipe to a socket, comment the appropriate line(s) in the config. If you want mpd to pipe to a socket and the user can't write to /run/mpd, create the file in the user's home dir and adjust the config accordingly, or make /run/mpd/socket writable by your user.

cheers,
 
Old 04-07-2019, 08:09 PM   #5
slackonslackoff
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
I have commented out the line pertaining to the socket. Now I am given an error that displays:

Code:
Apr 07 20:01 : fatal_error: Failed to set group 1001: Operation not permitted
I assume the group is the 'audio' group? I currently have the ownership of the mpd (local) configuration file as mpd:users.
 
Old 04-08-2019, 12:51 AM   #6
mrclisdue
Senior Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 1,134

Rep: Reputation: 277Reputation: 277Reputation: 277
Did you create the user 'mpd'? If so, is 'mpd' a member of the audio group? If you created the user 'mpd' using Slackware's adduser shell script, you're prompted thusly:

Quote:
Press ENTER to continue without adding any additional groups
Or press the UP arrow to add/select/edit additional groups
: audio cdrom floppy plugdev video
If you missed that part, then add user 'mpd' to those groups and see what happens.

I have a wee bit of unsolicited (and perhaps contentious) advice: I re-read your initial post and noticed that you mentioned sudo. Sudo is not set up in Slackware, by default, as it is in the 'buntu's, and others.... There are very compelling security *thoughts* as to the wisdom of seemingly unfettered use of sudo. IMNSHO, friends don't let friends use sudo. If you must perform a task as root, then become root, don't fake it.

edit, to elaborate slightly, I'm addressing the use of sudo on a personal system, established by default, as opposed to being established by an administrator....

cheers,

Last edited by mrclisdue; 04-08-2019 at 01:00 AM. Reason: clarity
 
Old 04-11-2019, 09:26 PM   #7
slackonslackoff
LQ Newbie
 
Registered: Apr 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
mrclisdue, I do not recall being prompted with such. I can try and add the mpd user to those groups.

EDIT: I have added mpd to those groups to no avail. I still have to run sudo to get mpd to run anyway.

Last edited by slackonslackoff; 04-11-2019 at 09:53 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware arm 14.2 + mpd 0.20.5 compile error tb404 Slackware - ARM 4 02-28-2017 05:40 AM
[SOLVED] Slackware 14.2 multilib - Unable to upgrade mpd via sbopkg glupa4e Slackware 2 01-26-2017 01:43 PM
Slackware 14.2 - How to start mpd (Music Player Daemon) at boot time glupa4e Slackware 6 01-05-2017 02:20 AM
[SOLVED] slackware current and rpi2 ffplay -nodisp / mplayer no sound / and opus song files with mpd slackartist Slackware - ARM 0 04-27-2016 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration