DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-09-21 16:26:41

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

I bought a DNS-323 and I love it.  However, I also love getting into and trying new things.  I've been reading about fun_plug and want to create a streaming music server so that I can stream music to my android phone.  At first I thought it would be a simple app on the phone that might be able to do this through ftp.  Boy was I wrong.  So after some research I have installed fun_plug successfully and I have also installed (but not configured) mpd.  Can someone help me with this.  This is the point where my know how is at its end.  From what I have read I think what I am lacking is being able to point the mpd to my music files.  How do I do this through the telnet session? 

Do I need another app like Icecast to run on the NAS or will MPD be enough?  Any input would be greatly appreciated.  I eventually want to post up a very specific step by step "how to" for people to reference regarding this.

Offline

 

#2 2010-09-21 18:37:28

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

How did you install mpd?  After looking at http://mpd.wikia.com/wiki/Dependencies and other places on that wiki, it seems that you'd have to build the package.  Doing so on the 323 would NOT be trivial or easy.  Putting it another way, if you got through the building of the package for the 323, configuring it to find the music is easy.  BTW, they discuss the config files on that wiki as well, in the event that you found a pre-built package someplace.

The DNS 323 comes with a built-in music server (aka iTunes server or Firefly).  You'd have to find a client for your Android phone that would work with this server.  If you have such a client, the easiest path is to just enable the server on the 323.  See the 323 wiki entry for "firefly" for more info.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#3 2010-09-21 18:42:19

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

Never mind - already being discussed in http://dns323.kood.org/forum/viewtopic. … 40&p=1


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#4 2010-09-21 18:51:13

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

I installed through telnet by following this link http://dns323.kood.org/forum/viewtopic.php?id=4440

as well as this link http://dns323.kood.org/howto:optware

My problem now is that the telnet session is seeing /volume_1/ffp as the root directory rather than just /volume_1 and my ipkg directory is outside of /ffp so I can't navigate to it through telnet.

I don't really think that firefly is going to do what I want.  I've read a considerable amount on the subject and I don't think firefly will provide me with a streaming media solution that lets me stream media directly from the nas over the internet and play it back on my android OS

Offline

 

#5 2010-09-21 19:09:57

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

OK, so I see that you installed it via optware.

No, /volume_1/ffp is not the root directory when logged in via telnet.  The root directory is always /.

While in a telnet session, type in:

cd /

to move to the root directory.  /volume_1/ffp is probably just the HOME directory that your ffp-installed telnet uses. 

I actually don't see where "/volume_1/ffp" comes from.  Maybe you did something to make "/volume_1" point to /mnt/HD_a2, which is where the first hard disk is mounted.

Sounds like you need to learn some Linux basics in order to find and edit the mpd config file.  http://freeengineer.org/learnUNIXin10minutes.html

The config file probably got installed in /opt/etc, so you would

cd /opt/etc

and use vi to edit mpd.conf.  See the above link about UNIX to learn how to use vi.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#6 2010-09-21 19:55:24

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

thanks for that advice.  I was able to get back to the real root and get to the correct folder and file.  I'm also able to open up the mpd .conf file that came with the package.  Is this just a dummy file?  I would've assumed it would look more like code rather than all of the instruction that is present in the text.

Offline

 

#7 2010-09-21 21:46:04

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

also, the instructions in the thread i referenced say to "Create" a startup file.  How do I go about creating a new file in linux?  So sorry for the extreme noob questions, but I have never touched linux before.

Offline

 

#8 2010-09-21 23:07:49

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

bigwebb83 wrote:

thanks for that advice.  I was able to get back to the real root and get to the correct folder and file.  I'm also able to open up the mpd .conf file that came with the package.  Is this just a dummy file?  I would've assumed it would look more like code rather than all of the instruction that is present in the text.

No, (good) config files have a lot of comments along with the settings that they describe.  You might see XML "code" in a config file, but rarely "C" code.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#9 2010-09-21 23:09:08

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

bigwebb83 wrote:

also, the instructions in the thread i referenced say to "Create" a startup file.  How do I go about creating a new file in linux?  So sorry for the extreme noob questions, but I have never touched linux before.

vi new_file_name

When you save the file with :wq, it will be created in the directory that was current when you started vi.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#10 2010-09-21 23:24:57

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

Thanks!

Offline

 

#11 2010-09-21 23:36:48

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

Everything in the mpd.conf file has a # before it though.  When I tried to run everything and start the service it says there is no audio output device detected.  in the .conf file it shows "examples of 3 or 4 different types.  but like I said every line has a # before it so I don't know what is code or what is notes?

Offline

 

#12 2010-09-21 23:55:21

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

it actually says no audio output defined in the config file

Offline

 

#13 2010-09-23 01:54:02

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

bigwebb83 wrote:

Everything in the mpd.conf file has a # before it though.  When I tried to run everything and start the service it says there is no audio output device detected.  in the .conf file it shows "examples of 3 or 4 different types.  but like I said every line has a # before it so I don't know what is code or what is notes?

The # is a comment.
It is common practice to put all configurable items in the supplied sample configuration file with the items commented out, but set to the default values.  This documents what the default settings are so that you don't have to go look them up.  Also, putting all or most of the configurable items also saves you a trip to the documentation.  Finally, they may also put in commonly used sample configs for your convenience.
If you want, you can delete all the comments and just keep the items you are setting.
It should be pretty obvious what is documentation and what is a setting.

Code:

# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#
#follow_outside_symlinks    "yes"

The last line is a setting that defaults to "yes".

What I usually do when working with config files like these is:

Code:

# If this setting is set to "yes", MPD will discover audio files by following
# symbolic links outside of the configured music_directory.
#
#follow_outside_symlinks    "yes"
follow_outside_symlinks    "no"

If I want to change something from the default, I copy the line, remove the # and change the value.  That way, I can tell what the old default value was, in case I want to go back to defaults.

Last edited by karlrado (2010-09-23 01:59:02)


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#14 2010-09-23 02:02:04

karlrado
Member
Registered: 2009-12-07
Posts: 229

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

bigwebb83 wrote:

it actually says no audio output defined in the config file

I don't use this program, but I would guess that you need to define at least one audio output in the config file.  MPD may try to auto-detect a sound card on the machine it is running on, which might work on a desktop machine running Ubuntu.  But the DNS does not have any sound hardware, so you probably need to define a streaming output "device" in the config file.  There is no way for MDP to guess what you want in terms of streaming the output.


DNS-323 FW 1.07 : 2 1TB WD Caviar Green SATA : fun_plug: utelnet + optware (no ffp)

Offline

 

#15 2010-10-01 21:10:11

bigwebb83
Member
Registered: 2010-09-21
Posts: 49

Re: Trying to setup streaming music on DNS-323 w/ Fun_Plug HELP!

I have mpd running and can control it from my android phone and my computer but I can't get audio.  I have installed raop play but when i look at pid's I don't see it there.  When I run the command: "raop_play 192.168.2.10 /tmp/mpdfifo" I get the error "raop_play: can't load library 'libsamplerate.so.0'"

Any ideas?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB