Networked Media Tank
Music Player Daemon (MPD) 2009-10-01 Re-Release - Printable Version

+- Networked Media Tank (http://www.networkedmediatank.com)
+-- Forum: Community Jukebox, Themes, & UserApps Section (/forumdisplay.php?fid=106)
+--- Forum: 200/300/400 Series - Development and User Apps (/forumdisplay.php?fid=121)
+---- Forum: 100 Series - Development and User Apps (/forumdisplay.php?fid=33)
+---- Thread: Music Player Daemon (MPD) 2009-10-01 Re-Release (/showthread.php?tid=28854)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - sprogger - 11-14-2009 07:28 AM

Team
Sorry as I know this a noob question

Trying to get this running and am using putty to telnet to my HDX ..

When I type the sh daemon.sh start command I get this

Client mpc already installed...
Starting mpd...
Starting Remote control for MPD...
# sh: mpc: Permission denied
Failed to listen on any (line 76): Success

do I need to issue some command to give mpc permissions?

Cheers
Sprogger


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - primetimeguy - 11-16-2009 03:30 AM

(11-14-2009 07:28 AM)sprogger Wrote:  Team
Sorry as I know this a noob question

Trying to get this running and am using putty to telnet to my HDX ..

When I type the sh daemon.sh start command I get this

Client mpc already installed...
Starting mpd...
Starting Remote control for MPD...
# sh: mpc: Permission denied
Failed to listen on any (line 76): Success

do I need to issue some command to give mpc permissions?

Cheers
Sprogger

Another noob with mpd here, trying it tonight for the first time. I get this exact same error.


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - kolla - 11-16-2009 04:15 AM

Another noob trying to install MPD on my A100.
Telnet installed OK.

Tried to follow steps in Post #25.

When I try:
wget http://www.daedalusdevelopment.net/stuff/mpdroot.tar.gz -qO - | tar xvz

I get:

tar: invalid tar magic

I tried many times and the same error occurs. Looking for advice ..


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - shadowcode - 11-16-2009 09:49 AM

Could you try:
Code:
wget http://www.daedalusdevelopment.net/stuff/mpdroot.tar.gz -qO - | tar xvz

a couple of times? Might be something wrong with my host.


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - foobar70 - 11-16-2009 01:22 PM

(11-16-2009 09:49 AM)shadowcode Wrote:  Could you try:
Code:
wget http://www.daedalusdevelopment.net/stuff/mpdroot.tar.gz -qO - | tar xvz

a couple of times? Might be something wrong with my host.

Not sure - I had this initially when I used a very early version of telnetd and its busybox binary. After installation of telnetd from CSI everything worked.

M.


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - primetimeguy - 11-17-2009 04:57 AM

All 3 wget worked fine for me, but when I get to the next step to install

cd /share/Apps/mpd

I get an error saying cannot cd to /share/Apps/mpd

Any help?


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - shadowcode - 11-17-2009 10:51 AM

Could you do a:
Code:
ls -lah /share/Apps

and a:

Code:
ls -lah /share/

and post the outputs here?


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - primetimeguy - 11-17-2009 02:55 PM

Well, here is what I got. Not sure what to look for other than when I browse my NMT from my PC, I only see the mpd in the /share/Apps folder. This screen cap is showing the contents of my Apps folder in the root.


[Image: NMTDOSWindow.jpg]


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - shadowcode - 11-17-2009 03:04 PM

Any chance you forgot to do
Code:
cd /
first in post #25


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - avanegmond - 11-17-2009 03:09 PM

(11-17-2009 02:55 PM)primetimeguy Wrote:  Well, here is what I got. Not sure what to look for other than when I browse my NMT from my PC, I only see the mpd in the /share/Apps folder. This screen cap is showing the contents of my Apps folder in the root.


[Image: NMTDOSWindow.jpg]

The wget plus tar command should have created a directory mpd in your /share/Apps-folder.

Since there isn't I guess your wget & tar -commands weren't succesfull.

Follow the instructions in post 25 closely and verify the folders have been made.

-
aleg


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - primetimeguy - 11-17-2009 03:50 PM

Thanks for the help guys. I have seen instructions two places and the first step is different, either cd / or cd /share

So should the mpd directory be created in the existing Apps folder, or should it be created in /share/Apps? I noticed in the config file everything says /share/Apps.

Is /share supposed to be an actual directory that gets created or is it more of a place holder or something.

I have tried the install both ways and remember initially using cd / and it installed it in the existing Apps directory but I had some other issues. But sounds like that is what I need to do, correct?


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - avanegmond - 11-17-2009 04:15 PM

(11-17-2009 03:50 PM)primetimeguy Wrote:  Thanks for the help guys. I have seen instructions two places and the first step is different, either cd / or cd /share

So should the mpd directory be created in the existing Apps folder, or should it be created in /share/Apps? I noticed in the config file everything says /share/Apps.

Is /share supposed to be an actual directory that gets created or is it more of a place holder or something.

I have tried the install both ways and remember initially using cd / and it installed it in the existing Apps directory but I had some other issues. But sounds like that is what I need to do, correct?

It should be stored in the existing Apps-folder.

When using telnet (e.g. PuTTY) and you connect to the PCH, you start in the directory with "/opt/sybhttpd/localhost.drives/HARD_DISK #" as a prompt. This is where the Apps-folder is located.

Seen from the / -folder this folder is /share (/share is a link to /opt/sybhttpd/localhost.drives/HARD_DISK)

This is where all of your user-data is stored.

The downloads from post 25 have been packed to be tar-ed from / and will then be stored into /share/Apps/mpd.
So you will have to do
Code:
cd /
first.

So the instructions in post 25 are correct and should be followed closely.

-
aleg


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - primetimeguy - 11-17-2009 04:24 PM

Thank you very much.

(/share is a link to /opt/sybhttpd/localhost.drives/HARD_DISK)

was piece that helped me make sense of it all. I should be able to make it work now. Thanks.
When I get to the

sh install.sh

step, I get 'Generic daemon launcher already found, skipping....'

Any ideas?
Well, did a reboot and then tried again, same issue. But tried the start and things appear to work. I added one song to the folder, launched minion and it sees the song. I'll have to wait until I get home to see if it actually works. Thanks for all the help.


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - avanegmond - 11-17-2009 05:54 PM

(11-17-2009 04:24 PM)primetimeguy Wrote:  Thank you very much.

(/share is a link to /opt/sybhttpd/localhost.drives/HARD_DISK)

was piece that helped me make sense of it all. I should be able to make it work now. Thanks.
When I get to the

sh install.sh

step, I get 'Generic daemon launcher already found, skipping....'

Any ideas?
Well, did a reboot and then tried again, same issue. But tried the start and things appear to work. I added one song to the folder, launched minion and it sees the song. I'll have to wait until I get home to see if it actually works. Thanks for all the help.

I hope it works for you, but if not ... just give a call Wink

For me this is the most used application of the PCH. I use the PCH 95% of the time for playing audio using mpd and the other 5% is for viewing some video now and then.

So for me this is a great application. To control playback I use Mpod and iPodMp (for its folder navigation, which is sometimes easier than tags) from an iPod Touch.

Database maintenance I do with the mpc command line from my PC.
I have written a small DOS script for transforming a DOS-path into a Linux path and feeding this Linux-path automatically to the mpc-client to have it updated in the mpd-database. I run this DOS-script from a right-button click on the folder where the updated music is stored. Quite convenient.

Code:
@echo off
TITLE MPC - update database
d:
cd "D:\mpc"
CLS
@ECHO ON
mpc --host=192.168.1.35 version
mpc --host=192.168.1.35 stats
@ECHO OFF
REM -- Prepare the Command Processor --
SETLOCAL ENABLEEXTENSIONS
SETLOCAL DISABLEDELAYEDEXPANSION
set windir=%1%
set windir=%windir:W:\=%
set linuxdir=%windir:\=/%
@ECHO ON
mpc --host=192.168.1.35 update %linuxdir%
@sleep for 15
mpc --host=192.168.1.35 ls %linuxdir%
mpc --host=192.168.1.35 stats

Explanation:
"D:\mpc" is where my commandline mpc is stored
first it displays the version of my mpd-daemon
second it displays the statistics of my mpd-database
third it removes W:\ from the windows-path. W:\ is the drive-path to my NAS where my CD's are stored. It points to the same level / location as the mpd music_directory setting in mpd.conf
fourth it changes the backslash \ to the forward slash /
fifth it feeds the now linux-path to the mpc-client to have it updated by mpd
192.168.1.35 is the ip-address of my PCH where the mpd runs.

I then let it sleep for 15 seconds (for 1 or 2 albums this is sufficient)
and for reviewing the result have it show the listing of the linuxdir from within the mpd-database and view my new statistics.

All this is run from a right button menu-option from within Windows Explorer.

-
aleg


RE: Music Player Daemon (MPD) 2009-10-01 Re-Release - primetimeguy - 11-17-2009 11:03 PM

Everything works great!! Thanks again for your help!