Firmware: A-410 [01 Apr. 2014] | A-400 [12 Mar. 2014] | C-300 [13 Feb. 2014] | A-300 [24 Feb. 2014] | C-200 [11 July 2013] | A-200/A-210 [11 July 2013] | Popbox V8 [3 Dec 2013]

Just got your NMT | WIKI has the answers | Search the forum | Forum Rules/Policy | Firmware & Official NMT News | Popcornhour manuals



User(s) browsing this thread: 1 Guest(s)
Post Reply 
MPD installation howto (updated 4 May 2009)
02-18-2009, 04:02 PM (This post was last modified: 11-18-2009 11:10 PM by gwillem.)
Post: #1
Music MPD installation howto (updated 4 May 2009)
Update October: Awesome! AlanH has again put considerable effort in our MPD version. He created the structure required to abide the (GPL) law. There's no CSI package yet but refer to this post in another thread for installation instructions. Great work Alan!

Update 4 May: New mpd version from Alanh fixes bug with playing video's after using mpd, better AAC support, better hardware mixer support. Also new version of mpc-ird (remote control) by RICOUK and Glorifyday. Als fixed problem with HDD spinning up. Thanks guys! Todo: mpd/gpl-compliant build system, CSI compatible package, mpdscribble.

Update 8 April: Fixed remote control bug. Again thanks to Alan H, now supports streaming & FLAC!

Update 21 March: thanks to Alan H, no more USB device required! Work in progress: HDMI output (currently only analogue output works), live streaming, last.fm scrobbler.

MPD is a standalone network music player that can run independantly on your NMT. It supports many features and plugins, such as remote control (Iphone, PC, IR), playlists and streams. It does not output anything to your screen.

Make sure your NMT is non-idle (orange led on the PCH!). Log into your NMT through ssh or telnet. Uninstall previous version and reboot if you got any older version (see below). Then issue these commands.

edited by Werner: i removed the link to the package which seems to break the GPL, you can read the reason for that here http://www.networkedmediatank.com/showth...#pid207623
Code:
cd /share
wget LINK REMOVED, GPL ISSUES FOR mpd-nmt-20090504 -qO - | tar xvz
cd /share/Apps/mpd
sh install.sh
sh daemon.sh start

First startup will take some time, because it will index all the music in /share/Music. Note that you don't have to start anything manually next time, because mpd will be loaded on boottime automatically. Now, you can start your favourite MPD client. I use GMPC for Linux, Minion for Firefox and MPoD for my iPhone but there are many others. I included a local client. Try these commands:

Code:
mpc ls | mpc add
mpc play
mpc status
mpc next
mpc pause
mpc add http://89.238.146.144:7010

Remote control
You can also use your remote control, but only when the NMT is in standby/idle mode (red led). See this post from RICOUK and this post from glorifyday for instructions.

Uninstallation
Code:
mpc stop && sleep 3
killall mpd
killall mpc-ird
rm -rf /mnt/syb8634/etc/mpd
rm -rf /share/Apps/mpd
sed -i '/\/mpd\//d' /mnt/syb8634/etc/ftpserver.sh
sed -i '/\/daemon.sh\//d' /mnt/syb8634/etc/ftpserver.sh

Enjoy your music!
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 23 users say Thank You to gwillem for this post
02-22-2009, 01:12 PM
Post: #2
RE: MPD installation howto
Hi gwillem,
thnx for this howto.
First of all, following this howto made mpd running on my pch with creative sound blaster usb device.

But mpd seems to ignore the id3-tags.
Minion (firefox plugin) shows no albums, no artists, only folders like REM, A-HA, etc. and contained files.
The mp3 files in these folders are shown e. g. as
REM/Reveal/01 - Reveal - REM - The Lif.mp3
like
"folder/subfolder/name of file"
MPod on my iphone shows:
Unknown Artist, Unknown Album, Unknown Song.

I'm sure the mp3 files are fine because another mpd on Ubuntu 8.10 shows all id3 information of same sound files.


Please give me a hint to fix this issue.

Some further questions:
Is it possible to control (stop, restart, update, etc) mpd on pch with telnet?
How to uninstall mpd?

Greetings to Amsterdam
tonne
Find all posts by this user
Add Thank You Quote this message in a reply
02-22-2009, 03:26 PM
Post: #3
RE: MPD installation howto (updated)
I excluded the Id3 parsing on purpose to speed things up (it will take a while to index my 300+ GB of music :-)) but I see this messes things up for the Ipod control. So I made a new version with id3 parsing (see download link above). Make sure to delete your tag_cache file and restart mpd.

Also added sections for telnet control, ir remote control and uninstallation.
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 10:08 AM
Post: #4
RE: MPD installation howto (updated)
(02-18-2009 04:02 PM)gwillem Wrote:  MPD is a standalone network music player that can run independantly on your NMT. It supports many features and plugins, such as remote control (Iphone, PC, IR), playlists and streams. It does not output anything to your screen.

.......


Enjoy your music!

now, I havn't tried it YET, but thats how a "how2 guide" should be written.
I Know, I've PM'd you, but i actually was looking for a "how2" guide to telnet (or other way to get control/command line access) to NMT box. (maybe there was other dumb people like me who?)

Have you made one of these or is it out there? (sorry for offtopic)
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 12:26 PM (This post was last modified: 02-23-2009 01:17 PM by gwillem.)
Post: #5
RE: MPD installation howto (updated)
Hi Andemad, did you try installing telnet through http://www.nmtinstaller.com/ ?
I think it's so easy you won't need a howto Smile
It was released just yesterday, so I'd expect it to be fixed any moment.
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to gwillem for this post
02-23-2009, 01:49 PM
Post: #6
RE: MPD installation howto (updated)
It worked like a Charm.

I'm not sure, that I've done it right. I got some "error messages" in the commandprompt.

Quote:# cd /mnt/syb8634/etc
# wget http://nmt.explore.nl/mpd-nmt-20090222.tar.gz -qO - | tar xvz
mpd/mpd
mpd/mpc
mpd/mpc-ird
mpd/mpd.conf
mpd/Radio's.m3u
mpd/installmpd.sh
mpd/startmpd.sh
mpd/modules/snd-hwdep.ko
mpd/modules/snd-mixer-oss.ko
mpd/modules/snd-page-alloc.ko
mpd/modules/snd-pcm-oss.ko
mpd/modules/snd-pcm.ko
cdmpd/modules/snd-rawmidi.ko
mpd/modules/snd-timer.ko
mpd/modules/snd-usb-audio.ko
mpd/modules/snd-usb-lib.ko
mpd/modules/snd.ko
mpd/modules/soundcore.ko
# cd mpd
# pwd
/mnt/syb8634/etc/mpd
# ./installmpd.sh
# ./startmpd.sh
mknod: /dev/mixer: File exists
mknod: /dev/dsp: File exists
insmod: module '/mnt/syb8634/etc/mpd/modules/soundcore.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_page_alloc.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_hwdep.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_timer.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_pcm.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_rawmidi.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_mixer_oss.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_pcm_oss.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_usb_lib.ko' not found
insmod: module '/mnt/syb8634/etc/mpd/modules/snd_usb_audio.ko' not found
unable open db file "/mnt/syb8634/etc/mpd/tag_cache": No such file or directory
current locale is "C"
setting filesystem charset to ISO-8859-1

added Celina Ree - Kortslutning/01-adrenalin.mp3
added Celina Ree - Kortslutning/02-kortslutning.mp3
added Celina Ree - Kortslutning/03-12-time.mp3
added Celina Ree - Kortslutning/04-se-dig-selv-i-mig.mp3
added Celina Ree - Kortslutning/05-moerkeraed.mp3
added Celina Ree - Kortslutning/06-savner-dig-sindssygt.mp3
added Celina Ree - Kortslutning/07-naar-du-roer-ved-mig.mp3
added Celina Ree - Kortslutning/08-i-sort.mp3
added Celina Ree - Kortslutning/09-taend-et-lys.mp3
added Celina Ree - Kortslutning/10-sig-nu-hvad-du-vil-sige.mp3
added Celina Ree - Kortslutning/11-evighed.mp3
added Volbeat_-_Maybellene_i_hofteholder_(2008)/01-volbeat-maybellene_i_hofteholder.mp3
#
Btw, when adding music later on, one should run the start ./startmpd.sh again, or?
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 02:02 PM
Post: #7
RE: MPD installation howto (updated)
Andemad, can you paste the output of

Code:
find /mnt/syb8634/etc/mpd
lsmod
ls -lad /mnt/syb8634/etc/mpd

And afterwards, try rebooting. Can you connect with a client? Can you push "play" on the client?

You dont have to run ./startmpd next time, it will be started on boot automatically.
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 04:02 PM
Post: #8
RE: MPD installation howto (updated)
(02-23-2009 02:02 PM)gwillem Wrote:  Andemad, can you paste the output of

Code:
find /mnt/syb8634/etc/mpd
lsmod
ls -lad /mnt/syb8634/etc/mpd

And afterwards, try rebooting. Can you connect with a client? Can you push "play" on the client?

You dont have to run ./startmpd next time, it will be started on boot automatically.

Thanks - output below Smile

no, i havn't tried it with the client, because I wanted to see, if i worked, before i bought a ipod Touch/iphone which were my original idea Smile - I'm a little cautious newbee, i know..

Smile


Quote:# find /mnt/syb8634/etc/mpd
/mnt/syb8634/etc/mpd
/mnt/syb8634/etc/mpd/mpd
/mnt/syb8634/etc/mpd/mpc
/mnt/syb8634/etc/mpd/mpc-ird
/mnt/syb8634/etc/mpd/mpd.conf
/mnt/syb8634/etc/mpd/Radio's.m3u
/mnt/syb8634/etc/mpd/installmpd.sh
/mnt/syb8634/etc/mpd/startmpd.sh
/mnt/syb8634/etc/mpd/modules
/mnt/syb8634/etc/mpd/modules/snd-hwdep.ko
/mnt/syb8634/etc/mpd/modules/snd-mixer-oss.ko
/mnt/syb8634/etc/mpd/modules/snd-page-alloc.ko
/mnt/syb8634/etc/mpd/modules/snd-pcm-oss.ko
/mnt/syb8634/etc/mpd/modules/snd-pcm.ko
/mnt/syb8634/etc/mpd/modules/snd-rawmidi.ko
/mnt/syb8634/etc/mpd/modules/snd-timer.ko
/mnt/syb8634/etc/mpd/modules/snd-usb-audio.ko
/mnt/syb8634/etc/mpd/modules/snd-usb-lib.ko
/mnt/syb8634/etc/mpd/modules/snd.ko
/mnt/syb8634/etc/mpd/modules/soundcore.ko
/mnt/syb8634/etc/mpd/mpd.log
/mnt/syb8634/etc/mpd/errors.log
/mnt/syb8634/etc/mpd/tag_cache
/mnt/syb8634/etc/mpd/pid
# lsmod
em8xxx 785008 2 - Live 0xce1eb000
arusb_lnx 351056 0 - Live 0xca099000
af_packet 14112 0 - Live 0xc805a000
ide_generic 304 0 - Live 0xc8038000
ide_cd 36128 0 - Live 0xc8015000
ide_disk 13040 4 - Live 0xc8031000
tangox_bmide 7792 0 - Live 0xc8001000
ide_core 92096 4 ide_generic,ide_cd,ide_disk,tangox_bmide, Live 0xca081000
llad 91552 3 em8xxx, Live 0xc8042000
# ls -lad /mnt/syb8634/etc/mpd
drwxr-xr-x 3 root root 4096 Feb 23 13:44 /mnt/syb8634/etc/mpd
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 04:21 PM
Post: #9
RE: MPD installation howto (updated)
Strange...

Can you try, before buying an Iphone Wink this client? https://addons.mozilla.org/en-US/firefox/addon/6324

Can you reboot and do this:

Code:
insmod /mnt/syb8634/etc/mpd/modules/soundcore.ko
dmesg | tail
lsmod
uname -a

Also, what NMT brand/model do you have?
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 06:23 PM (This post was last modified: 02-23-2009 06:34 PM by Andemad.)
Post: #10
RE: MPD installation howto (updated)
Update, sorry - the player DID find the songs! but when i press PLAY it seems to start and then stop again without playing. Of course, I do not have an USB audio thingy yet, but it does not seem to be playing.
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 07:49 PM
Post: #11
RE: MPD installation howto (updated)
Andemad, please read the howto carefully. It says to first plugin a USB audio stick Wink

So get one. If you plug it in, reboot your NMT and all should be fine.

Good luck!
Find all posts by this user
Add Thank You Quote this message in a reply
02-23-2009, 07:55 PM (This post was last modified: 02-23-2009 07:58 PM by Andemad.)
Post: #12
RE: MPD installation howto (updated)
the code:
Code:
# insmod /mnt/syb8634/etc/mpd/modules/soundcore.ko
insmod: cannot insert '/mnt/syb8634/etc/mpd/modules/soundcore.ko': Success (17): Success
# dmesg | tail
EXT3-fs: mounted filesystem with ordered data mode.
Adding 506036k swap on /dev/hda2.  Priority:-1 extents:1 across:506036k
ir: Enable NEC decoder (0x00000000)
ir: Enable RC5 decoder (0x80001800)
ir: Enable RC6 decoder
usbcore: registered new driver snd-usb-audio
Algorithmics/MIPS FPU Emulator v1.5
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
NFSD: recovery directory /var/lib/nfs/v4recovery doesn't exist
NFSD: starting 90-second grace period
# lsmod
Module                  Size  Used by    Tainted: P
snd_usb_audio          58384  0
snd_usb_lib            12480  1 snd_usb_audio
snd_pcm_oss            56208  0
snd_mixer_oss          16496  1 snd_pcm_oss
snd_rawmidi            21264  1 snd_usb_lib
snd_pcm                75360  2 snd_usb_audio,snd_pcm_oss
snd_timer              22576  1 snd_pcm
snd_hwdep               7952  1 snd_usb_audio
snd_page_alloc          7264  1 snd_pcm
snd                    39920  7 snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_rawmidi,snd_pcm,snd_timer,snd_hwdep
soundcore               5376  1 snd
em8xxx                785008  2
arusb_lnx             351056  0
af_packet              14112  0
ide_generic              304  0
ide_cd                 36128  0
ide_disk               13040  4
tangox_bmide            7792  0
ide_core               92096  4 ide_generic,ide_cd,ide_disk,tangox_bmide
llad                   91552  3 em8xxx
# uname -a
Linux PCH-A100 2.6.15-sigma #614 PREEMPT Fri Nov 7 01:20:29 CST 2008 mips unknown
#

(02-23-2009 07:49 PM)gwillem Wrote:  Andemad, please read the howto carefully. It says to first plugin a USB audio stick Wink

So get one. If you plug it in, reboot your NMT and all should be fine.

Good luck!

D'oh! Sorry! Didn't think it would matter so much. but of course - that makes sence!

Thank you very much! Hope it will be the last of it Smile
Find all posts by this user
Add Thank You Quote this message in a reply
02-24-2009, 07:59 PM
Post: #13
RE: MPD installation howto (updated)
Just added an audio device. not sure it works... I thinks

Code:
# mpc ls | mpc add
adding: Celina Ree - Kortslutning
adding: Volbeat_-_Maybellene_i_hofteholder_(2008)
# mpc play
Celina Ree - Adrenalin
[playing] #2/14   0:00/3:05 (0%)
volume:100%   repeat: off   random: off
# mpc status
volume:100%   repeat: off   random: off
ERROR: problems opening audio device
# mpc next
volume:100%   repeat: off   random: off
ERROR: problems opening audio device
# mpc pause
volume:100%   repeat: off   random: off
ERROR: problems opening audio device
#

It pretty much states, thats my usb-audio thats not working, right? I think it requires a driver, but i'm not sure how to install a driver on the linux box (pch a-100) HDX1000 Sad - but, would you say, that if i buy one of those usb-audio-things that YOU linked to, it would probably work?
Find all posts by this user
Add Thank You Quote this message in a reply
02-24-2009, 08:08 PM
Post: #14
RE: MPD installation howto (updated)
Andemad, we won't give up until your sound is working ;-)

Can you unplug your usb audio, plug it in again and then send us the output of "dmesg | tail" ?

Any chance you can hook up your HDX to the net so I can take a look remotely?
Find all posts by this user
Add Thank You Quote this message in a reply
[+] 1 user says Thank You to gwillem for this post
02-24-2009, 10:22 PM
Post: #15
RE: MPD installation howto (updated)
oooooh my goood! IT WORKS!!!!!!!!!!!!

Thank you, thankyou, thankyou Smile

Now, to buy an ipod touch and install another client. I works with minion..

But i consider another USB device (eg. creative X-FI usb), since the audio quality is not that good. Its almost like its peaked out / too high gained, and i blame it on the usb or my amplifier. I don't suppose the NMT has nothing to do with the output...?

But it works! a little delay from pushing the button (i expected that) but goddamnit - it just works! You're the greatest man, i owe you!

/Andemad
Find all posts by this user
Add Thank You Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [100/110] oPKG v0.2.0 - Updated 6th Feb 2014 - CSI vaidyasr 523 145,431 Yesterday 07:07 PM
Last Post: vaidyasr
Star [CSI] Community Software Installer 2.7.2 ** UPDATED DEC 28th ** Ger Teunis 624 342,066 04-10-2014 05:52 AM
Last Post: jhmiller
  Music Browser for NMT - Updated August, 2nd, 2011 gkreidl 14 11,048 01-19-2013 04:07 PM
Last Post: winfried_laane
Music fuppes 0.629 for NMT - dlna, upnp media server [UPDATED: 31-May-2009] Mr Segfault 53 54,852 10-12-2011 01:04 AM
Last Post: spud
  Utils v0.0.4 - A110 - Released - Updated 5th July vaidyasr 84 31,191 01-31-2011 01:21 PM
Last Post: dc11ab
  [split] [Apps] I-pkg A100/A110 - Updated 27th Jan linky 1 2,408 01-27-2011 10:11 PM
Last Post: dc11ab
Video Rutabaga Subtitle Cleaner application 1.4 Updated rutabaga 5 5,365 10-28-2010 07:48 AM
Last Post: rutabaga
  Music Player Daemon (MPD) 2009-10-01 Re-Release alanh 290 139,312 04-24-2010 07:20 AM
Last Post: avanegmond
  Error while trying to downloading installation files. siblektis 1 1,960 04-17-2010 10:15 PM
Last Post: siblektis
Information aMule 2.2.3-2 build for NMT Popcorn Hours [updated 3/31/2009] empatico 59 42,350 03-01-2010 06:19 AM
Last Post: fancyboy2k

Forum Jump: