You are not logged in.

#1 2014-03-20 03:02:24

Jaydn
Member
Registered: 2014-03-20
Posts: 2

Easy MPD + NCMPCPP Installer [Pastebin / Git]

Hey there, I had some trouble installing MPD + NCMPCPP myself a while ago and realized that there's probably a few other people struggling with it.
There was a very similar script to this in this very section but sadly the link has 404'd.

I've tested this 15 times forward and back with no issues on my end. Please inform me of any bugs!
931TKFS.png

Update: here is the git repo if you want to read through the source. It's nothing special, but the admin says so.
https://github.com/jaydn-/mpd

Download links:

git clone https://github.com/jaydn-/mpd.git

or

wget -O install_mpd_for_arch.sh http://pastebin.com/raw.php?i=PLvLrHjc && wget -O mpd.conf http://pastebin.com/raw.php?i=jr1ddPRu && wget -O ncmpcpp.conf http://pastebin.com/raw.php?i=fJMtEy0d

And then

sh install_mpd_for_arch.sh

Last edited by Jaydn (2014-03-20 04:22:30)

Offline

#2 2014-03-20 03:35:24

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

Re: Easy MPD + NCMPCPP Installer [Pastebin / Git]

Can you please include a link to the github repo so people can read the script?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-03-20 03:47:39

cedeel
Member
From: ~
Registered: 2009-08-25
Posts: 176
Website

Re: Easy MPD + NCMPCPP Installer [Pastebin / Git]

Yeah, no thanks.
You're going the wrong way about creating the config file, ending up with a world writeable file(!).

If you're going to supply your own configuration, why not just do exactly that? Include it in your git repository rather than having to maintain echo lines in your script. KISS!

Edit: There's also no need to mark a shell script as executable when you can just do "sh script.sh" smile

Last edited by cedeel (2014-03-20 03:48:29)

Offline

#4 2014-03-20 04:09:20

Jaydn
Member
Registered: 2014-03-20
Posts: 2

Re: Easy MPD + NCMPCPP Installer [Pastebin / Git]

cedeel wrote:

Yeah, no thanks.
You're going the wrong way about creating the config file, ending up with a world writeable file(!).

If you're going to supply your own configuration, why not just do exactly that? Include it in your git repository rather than having to maintain echo lines in your script. KISS!

Edit: There's also no need to mark a shell script as executable when you can just do "sh script.sh" smile


Ah yes, very good point. Sorry quite tired today although that's really no excuse.
Fixing the OP.

EDIT: Also fixed the ncmpcpp config and fixed a nano bug
Thank you for pointing all this out

Last edited by Jaydn (2014-03-20 04:23:03)

Offline

#5 2014-03-20 04:57:35

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,218

Re: Easy MPD + NCMPCPP Installer [Pastebin / Git]

Jaydn wrote:

Hey there, I had some trouble installing MPD + NCMPCPP myself a while ago and realized that there's probably a few other people struggling with it.
There was a very similar script to this in this very section but sadly the link has 404'd.

https://github.com/ronalde/mpd-configure
There is another installer if you wish to examine it, haven't used it though but just tossing it out there.  It was from the https://bbs.archlinux.org/viewtopic.php?id=123515 thread.

Last edited by frank604 (2014-03-20 04:58:41)

Offline

#6 2014-03-22 07:34:22

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

Re: Easy MPD + NCMPCPP Installer [Pastebin / Git]

I made a script to set up mpd that is somewhat simlar to this, which is linked in arch's mpd wiki page. for ages smile

In my case its all in one single .sh file. network is autodetected and appropriate bindings created. audio output is only created if pulse is detected.
the only question the user has to answer is the path to the music files (with tab completion)

Last edited by Rasi (2014-03-22 07:37:56)


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 2014-03-22 08:05:35

frank604
Member
From: BC, Canada
Registered: 2011-04-20
Posts: 1,218

Re: Easy MPD + NCMPCPP Installer [Pastebin / Git]

@Rasi - I was trying to find your script for the OP and failed.  It is a good script, I used it to set mine up long ago.

Offline

Board footer

Powered by FluxBB