You are not logged in.

#1 2011-07-31 21:53:48

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

REALLY simple mpd setup script

Because the complaints about mpd not working never stop and the reasons being always the same, i decided to make a really, REALLY simple setup script.
All this will do is the following:

It makes sure you run it as the user, that owns the music files.
It asks for the path to your music files.
It creates ~/.mpd and ~/.mpd/playlists
It creates ~/.mpdconf with all needed config options (apart from outputs, since mpd should autodetect those)
It copy/pastes all possible mpd options to the created config file, so the user can easily tweak it, if he likes (ugly done by including a 2nd file to be used)
It creates the entry to /etc/hosts.allow
It deletes itself.

Hopefully this might be useful for those new to mpd.


Anyway, here is the script:
http://karif.server-speed.net/~carnager/mpdsetup.tar

Download, extract and run with ./mpdsetup.sh


**edit**
updated it to disable ffmpeg per default, since it keeps crashing mpd, when playlist files are present in music directory.

Last edited by Rasi (2011-08-01 14:16:31)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#2 2011-08-01 02:44:18

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: REALLY simple mpd setup script

..and there was much rejoicing on the boards smile

Nice work! All that remains is an entry in the wiki...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-08-01 05:14:29

jomasti
Member
From: USA
Registered: 2010-08-17
Posts: 96

Re: REALLY simple mpd setup script

Great script. This would have been useful for me when I first tried to use mpd. It's bound to be useful for others.

Offline

#4 2011-08-01 10:47:55

whitethorn
Member
Registered: 2010-05-02
Posts: 153

Re: REALLY simple mpd setup script

Nice, I'm gonna destroy my non working mpd and use this to set it up.

Edit: Nuked my old non working mpd. Ran the script, awesome. Only grip I had with it is that it deletes itself and the conf file. Other than that, great job.

Last edited by whitethorn (2011-08-01 14:43:55)

Offline

#5 2011-08-01 12:20:48

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: REALLY simple mpd setup script

Brilliant! Thanks a lot smile


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#6 2011-08-02 00:46:09

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: REALLY simple mpd setup script

jasonwryan wrote:

..and there was much rejoicing on the boards smile

Nice work! All that remains is an entry in the wiki...

https://wiki.archlinux.org/index.php/Mu … figuration

Last edited by Rasi (2011-11-15 17:58:02)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#7 2011-11-15 08:31:51

syph
Member
Registered: 2011-11-10
Posts: 1

Re: REALLY simple mpd setup script

oh my god. you are a legend for this script. it was really difficult for me to set up mpd even following the instructions hmm n00b

Offline

#8 2011-11-15 17:58:52

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: REALLY simple mpd setup script

I just add the mpd user to the group user so the mpd user can get read access to /home/$USER/Music.  Then run the standard /etc/rc.d/mpd start script.

Music will then carry on when I logout smile

Offline

#9 2011-11-29 09:29:58

smakked
Member
From: Gold Coast , Australia
Registered: 2008-08-14
Posts: 420

Re: REALLY simple mpd setup script

Excellent script mate , makes it easier and works well.


Certified Android Junkie
Arch 64

Offline

#10 2013-04-18 08:41:33

ronalde
Member
From: Oss, The Netherlands
Registered: 2013-04-18
Posts: 6
Website

Re: REALLY simple mpd setup script

I created another automatic configuration script for mpd, specifically targeted towards using mpd for audiophile bit perfect playback.

The script source is available at github. I made an accompanying article with some explanation at How to turn Music Player Daemon (mpd) into an audiophile music player.

Offline

#11 2014-01-12 01:19:54

Herbalist
Member
Registered: 2014-01-12
Posts: 55

Re: REALLY simple mpd setup script

Thanks Rasi for the great script.

Offline

#12 2016-01-12 18:25:19

cgreidanus
Member
Registered: 2016-01-12
Posts: 1

Re: REALLY simple mpd setup script

The link to the tar file is broken, can someone please relink/rehost

Offline

#13 2016-01-14 05:57:30

Shinryuu
Member
From: /dev/urandom
Registered: 2010-02-27
Posts: 339

Re: REALLY simple mpd setup script

cgreidanus wrote:

The link to the tar file is broken, can someone please relink/rehost

Arch's wiki page also contains links for two different scripts and they're good, https://wiki.archlinux.org/index.php/Mu … figuration

Offline

Board footer

Powered by FluxBB