PDA

Bekijk de volledige versie : Twonky



dome
13-01-2007, 18:33
Sorry if this is a repost of some content, but I searched the whole forum and everything I found about "installing twonky" were some comments, that there are already some tutorials here...
However, I didn't find anything usefull but I know some of you guys mananged to install twonky on their WL-700gE. I downloaded the version for the asus wl-hdd, copied it to my internal hdd and thats all I know to do. How do I start that server? Just typing in "twonkymedia" doesn't work for me.
Perhaps anyone knows another good upnp-server, which is freeware?

dome
14-01-2007, 10:04
Perhaps I have to specify my problem: I copied all the files, made them executable with chmod but when I type in /path/twonkymedia.sh it always says "/path/twonkymedia.sh: not found". What am I doing wrong?
Everything works fine with ubuntu, using the same command...
But when I say /path/readme.txt, it only says "applet not found", so why doesn't it find the twonkymedia?
I know I'm a linux noob ;)

dome
21-01-2007, 11:12
Isn't there anybody out there, who got twonky to work on a wl-700ge?

saprize
28-01-2007, 17:12
I was able to get Twonky to work but I'm still having problems with the lame plugin. I am running Kfurge's firmware.
I followed the instructions on another post and did the following to install Twonky:

1. download the Maxtor Shared Storage [plus] version
2. unzipped it to /shares/MYVOLUME1/MYSHARE1/Twonkyvision
3. renamed twonkymedia-default.ini to twonkymedia-default.ini.backup
4. start the server using full path /shares/MYVOLUME1/MYSHARE1/Twonkyvision/twonkymedia.
If you get an error like "no version information available" it is because of LD_LIBARARY_PATH.
It doesn't start with the updated path. So, I did 'export LD_LIBRARY_PATH=/lib:/opt/lib' so it can use the default path.
Then it started just fine.
5. configure Twonky using (192.168.1.1:9000) to point to the media. Assuming that is the ip address of your router

That all works fine after giving it a while to read all of the media. I can see the photos and see the music files but the music files won't play on my client device (which is a DirecTV HR20).
I tried the lame plugin 'Linux MIPS little endian glibc 2.2.3'.
However, I get the following error in the telnet console when attempting to play the mp3 files:

# QUERY_STRING ?source=/shares/MYVOLUME1/MYSHARE1/Music/iTunes/iTunes Music/Clash/Combat Rock/Track1.mp3&from=audio/mpeg&to=audio/L16&cache=/shares/MYVOLUME1/MYSHARE1/Twonkyvision/twonkymedia.db/cache
/shares/MYVOLUME1/MYSHARE1/Twonkyvision/cgi-bin/lame: error while loading shared libraries: cannot open shared object file: cannot load shared object file: No such file or directory

dome
29-01-2007, 18:49
Hi,
tanks for your answer. Twonky works for me with no problems :) But how did you manage to autostart twonky? I always have to enable it by telnet and when I exit telnet, twonky exists, too :(

saprize
29-01-2007, 19:07
I haven't gotten that far yet since my mp3s still don't play on the client device. Have you tried adding '/shares/MYVOLUME1/MYSHARE1/Twonkyvision/twonkymedia &' to rc.local then rebooting? That's my plan if I ever get the lame plugin to work.

Stiefel
31-01-2007, 20:52
Today i managed to install Twonky on my WL-700g running kforges custom firmware.

I did it more or less the way SAPRIZE did it (see post two days ago).

To make it work after a reboot i added it to rc.local like this.

# Start the twonky music server
/shares/MYVOLUME1/MYSHARE1/Twonky/twonkymusic &

First it did not work, since the new libraries from kforges custom firmware did not work together with twonky. The solution was a simple hack: i moved the start command before the two EXPORT lines in the rc.local - this way twonky sees still the old libraries and everything works just fine :-)

Now i am happy and i will not touch this box for the next weeks - i locked my self out once and needed a whole day to figure out to get in again :-)

Good luck ...

mumsoft
07-04-2007, 16:55
I haven't gotten that far yet since my mp3s still don't play on the client device. Have you tried adding '/shares/MYVOLUME1/MYSHARE1/Twonkyvision/twonkymedia &' to rc.local then rebooting? That's my plan if I ever get the lame plugin to work.

I have just installed Twonkymusic, and both MP3's and OGG's run fine. It is version 4.1, I too have KCFurge's image running, and could use your installation instructions. In the directory where Twonkymusic resides is a executable called lame that came with the installation.
Now, the only differences are the software, twonkymedia vs twonkymusic, and my client, which is a Noxon 2 Audio.
Hope this helps a bit.

Marc

mumsoft
18-05-2007, 14:37
Hi,

I had twonkymusic 4.2 running on my Asus, but got a mail from Twonky that they had released version 4.3 of TwonkyMedia and had discontinued TwonkyMusic.
They gave me a new licensecode.
That was nice, but how to proceed? I had previously installed version 4.1 with twonkymusic-maxtor.zip, but that is not anymore in the list of distributions.
Fortunately I found that twonkymedia-mss.zip from http://www.twonkyvision.com/Download/TwonkyMedia/TM4Technicians.html, listed there as Maxtor Shared Storage [PLUS], works fine.
Just unzip this in e.g. /opt/share/TwonkyMedia,
give this command:
chmod 700 twonkym* cgi-bin/* plugins/*
and with
./twonkymedia it runs.

In rc.local I have this, before changing LD_LIBRARY_PATH:
if [ -e /shares/${pool}/opt ]; then
#Start Twonkymedia in stead of mt-daapd, runs with original library_path
/opt/share/TwonkyMedia/twonkymedia &

export PATH=/opt/bin:/opt/sbin:${PATH}
export LD_LIBRARY_PATH=/opt/lib:${LD_LIBRARY_PATH}
fi
You probably want to change the configuration. It lists /shares and /foreign-shares automagically, and read everything it finds. In that way it easily uses more memory than is allocated (20000). But worse, this will hit your Music directory twice, because it can be found under /shares/MYVOLUME1/MYSHARE1/Music and under /shares/DMSRoot/Music. Result is rubish. If this happens to you, you must recreate the mediafolders. Just make sure that it only serves music from /shares/MYVOLUME1/MYSHARE1/Music, and you will be fine. As least I was...

Greets,
Marc

emailpr
19-08-2007, 17:40
can someone help me with installing twonky on wl-700ge? I wanna be able to stream .mp4 and .avi video files to my dlink dsm-510 wirelessly.. the built-in media server in asus is not able to do it..
I have no knowledge about programing in linux.. so I would really appreciate if someone could detail the steps out for me.

Thanks a bunch..

mumsoft
20-08-2007, 13:55
Look here:

http://wl500g.info/showthread.php?t=7945&highlight=twonky

and read my message":
Twonkymedia 4.3 installs fine

Maybe I should have posted it as a proper HOW-TO message, but I hate to post things twice, and moreover, the forum has a search facility.

good luck
Marc

emailpr
20-08-2007, 16:06
Hello Marc, thank you for your reply.. I had seen that posting of yours before.. but had a few questions..

1> You said and i quote "Just unzip this in e.g. /opt/share/TwonkyMedia,"

where exactly is this folder hierarchy set up? In the PC or in the Asus router??
In my asus router I have the usual directories.. namely.. Download, Music, Videos, USB etc..under the /shares/MYVOLUME1/MYSHARE1.. Where exactly in this should I unzip it?

2> You said and I quote "give this command:
chmod 700 twonkym* cgi-bin/* plugins/*
and with
./twonkymedia it runs."

Where exactly should give this command? in a text file of some sort or in the rc.local?? I am not sure. sorry, like I said, I am clueless about linux.

3> should I first update it to the kfurge firmware?

Thanks

mumsoft
20-08-2007, 21:04
Hello Marc, thank you for your reply.. I had seen that posting of yours before.. but had a few questions..

1> You said and i quote "Just unzip this in e.g. /opt/share/TwonkyMedia,"

where exactly is this folder hierarchy set up? In the PC or in the Asus router??
In my asus router I have the usual directories.. namely.. Download, Music, Videos, USB etc..under the /shares/MYVOLUME1/MYSHARE1.. Where exactly in this should I unzip it?

2> You said and I quote "give this command:
chmod 700 twonkym* cgi-bin/* plugins/*
and with
./twonkymedia it runs."

Where exactly should give this command? in a text file of some sort or in the rc.local?? I am not sure. sorry, like I said, I am clueless about linux.

3> should I first update it to the kfurge firmware?

Thanks

Ok, my message is not a full How-to. So I left out the part that I assumed that one had installed kfurge's image. Now, 5 years ago I did not know anything about Linux, but I installed Suse 8.0, and that took only 30 minutes. After that I had hundred applications to play with. Now I am not so clueless about Linux anymore, but I am still used to a graphical interface, so peeking around in the router isn't my cup of tea either. But, if you read a lot around here, you learn a lot. That said, you will first take the courage to read through the excellent, but Linux-minded http://home.comcast.net/~kfurge/wl700ge.html
You don't have to follow all the steps though. Just install it, and follow the section after Installing the new firmware image In my opinion you can just use the web interface to flash it.
At least follow steps 1 to 3 after that.

Now you will have an /opt directory in the router. You kan create a /opt/share/TwonkyMedia there. The chmod command has to be given once, in this same directory. The you can run Twonky with ./twonkymedia, but that will only work until you end the telnet or ssh session. Didn't I say you had to telnet/ssh to the router in the first place? :rolleyes:
To start Twonky every time you power up the Asus, you have to change the rc.local.
Don't fall in the trap to edit rc.local with notepad!!!! . Do it with nano or joe.

Look around here, search for terms you don't understand, use Google a lot, and be welcome in the amazing world of Linux.

Greets
Marc

emailpr
20-08-2007, 22:59
one question.. I've seen links posted for the source of the starter rc.local script like for example http://home.comcast.net/%7Ekfurge/rc.local
if I click on this link.. it opens up a webpage with unix style language script I guess..
so do I copy this and paste it on notepad and name it rc.local?

mumsoft
21-08-2007, 07:06
No, choose "Save link target as" in the contextmenu (right mouse click)

Marc

Archimalaka
08-11-2007, 22:06
Is a good alternative if you want to edit unix files under windows

mingtsre
13-01-2008, 14:18
I get a weird thing happening:

I start twonkymedia on the command line and when I stop my shell it dies.

Anyone seen this?

Gizmo1007
04-04-2008, 20:19
Hopefully this may be of some use to those of you who use Twonky and have had issues with getting it to autostart on system reboot.

Before this I couldn't get Twonky to autostart i always had to go in and start it.
The following information is based on the latest KC firmware ver 1.0.7.8.
Anyway enough of that on with the code.

I have found version 4.4 of twonky to be problematic, (ie) I couldn't view any divx files however I have found that version 4.2 and v.4.3 work with no issues

You need to create a couple of files.

I am assuming that you have twonkymedia files located in /opt/etc/twonky
adjust the file below as necessary

File 1. /opt/etc/init.d/S82twonky
place code below into this file.



#!/opt/bin/sh

PATH=/opt/bin:/opt/sbin:/usr/sbin:/usr/bin:/sbin:/bin
DAEMON=/opt/etc/twonky/twonkymedia
NAME=ushare
DESC="Twonky UPnP A/V Media Server Version 4.2"
PIDFILE=/var/run/twonky.pid

start() {
if [ -f $PIDFILE ]; then
echo "Warning : $PIDFILE still present. Unclean shutdown ?"
kill -s 9 `cat $PIDFILE` 2>/dev/null
rm -f $PIDFILE 2>/dev/null
fi
echo -n "Starting $DESC... "
$DAEMON
echo "done"
}

stop() {
echo -n "Stopping $DESC... "
if [ -f $PIDFILE ]; then
kill -9 `cat $PIDFILE` 2>/dev/null
killall -9 twonkymediaserver
rm -f $PIDFILE 2>/dev/null
fi
echo "done"
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
sleep 1
start
;;
*)
echo "Usage: $0 (start|stop|restart)"
exit 1
;;
esac



Chmod 755 /opt/etc/init.d/S82twonky

next we create the file which crontab will run to check if twonky has been started. This will check if the pid has been put in the /var/run location.
if the file exists then it will simply exit.

File 2. /opt/etc/twonky-autostart.sh



#!/opt/bin/bash

# check for running pid and if not present
# start twonky.
# requires you to have S82twonky in init.d
# put in cron as a job and run every 5 minutes

PIDFILE=/var/run/twonky.pid

if [ -f $PIDFILE ]; then
exit 0;
else
/opt/etc/init.d/S82twonky start
fi



again make sure you chmod 755 twonky-autostart.sh.

Finally

put a check in your crontab to run this every 5 minutes.

like so

*/5 * * * * /opt/etc/twonky-autostart.sh


Giz1007

mumsoft
04-04-2008, 21:04
Hi,

Impressive, but, I have only this in my rc.local: :p


#Start Twonkymedia, before changing library_path
/opt/share/TwonkyMedia/twonkymedia &

and I shut down my Asus every day, and it starts up with Twonky (4.4), no problem. :D
Regarding divx, you probably should remove


MT:avi,divx video/avi :rolleyes:
in the clients.db (in directory resources)

Love,
Marc

Michele Spinolo
07-05-2008, 18:52
ciao Mark,

does twonky media streams also video files? it is not clear to me!

thanx!

mumsoft
07-05-2008, 21:53
ciao Mark,

does twonky media streams also video files? it is not clear to me!

thanx!

Michele, I was not aware of your question upon today.
Yes Twonky can stream video files, but I never tried that really. I have a Ziova Clearstream that is capable to show video's, and I have tried that only with an iso-file, which it reaches through shares, not via Twonky.
But I think you already know much more about Twonky's video capabilities than me.

Greets,
Marc

Michele Spinolo
09-05-2008, 14:24
ciao Marc,

i followed your steps but what I get when I try to run ./twonkymedia is

/opt/lib/libpthread.so.0: no version information available (required by ./twonkymedia)

can you help me?

mumsoft
09-05-2008, 15:09
ciao Marc,

i followed your steps but what I get when I try to run ./twonkymedia is

/opt/lib/libpthread.so.0: no version information available (required by ./twonkymedia)

can you help me?

You'd better try to run it via rc.local the way I described. Twonky needs the original libraries from the asus, not the versions in /opt.
When I tried to run ./twonkymedia in may 2007 I must have had the original librarypath in my environment.

Rgds,
Marc

Michele Spinolo
09-05-2008, 16:19
You'd better try to run it via rc.local the way I described. Twonky needs the original libraries from the asus, not the versions in /opt.
When I tried to run ./twonkymedia in may 2007 I must have had the original librarypath in my environment.

Rgds,
Marc


thank you very much for your help! it runs now! I can access it through the web interface.
I have to figure out how to configure it now! is the a manual somewhere?:confused:

mumsoft
11-05-2008, 22:08
thank you very much for your help! it runs now! I can access it through the web interface.
I have to figure out how to configure it now! is the a manual somewhere?:confused:

I never needed a manual for this. Just enter http://asus:9000/ where asus is the ip-address of your router, than hit the Twonky mediasettings tab.
There is also the website and a forum, so look around and find.

I ought not reply...

Marc

Michele Spinolo
12-05-2008, 13:01
thanks anyway Marc!

Twonky seems to work fine with PS3 although somtetimes I have DLNA server errors.
Up to know I resolved simply rebooting PS3. It would be nice to understand weather the problem is releated to Asus, PS3 or Twonky!

mumsoft
13-05-2008, 16:12
thanks anyway Marc!

Twonky seems to work fine with PS3 although somtetimes I have DLNA server errors.
Up to know I resolved simply rebooting PS3. It would be nice to understand weather the problem is releated to Asus, PS3 or Twonky!

Then it would be wise to look at the twonky forum.
http://www.twonkyforum.com/viewforum.php?f=18&sid=1b7d449fe1d84bff93f972096da8aa3b

Rgds
Marc

Michele Spinolo
16-05-2008, 10:03
I found an interesting hint yesterday night: it seems Twonky can't work properly if the HD is in sleep mode.
What happen my PS3 can't recognize proper media format, thus "unsupported file format" is displayed.
Even if you try to force playback you still have an error.

To solve the problem simply reboot your asus. It is not an elegant solution but it's fast.

mumsoft
16-05-2008, 21:04
I found an interesting hint yesterday night: it seems Twonky can't work properly if the HD is in sleep mode.

To solve the problem simply reboot your asus. It is not an elegant solution but it's fast.

I have worked with Twonky for about a year on a HD that slept after a while, and never got such problems. If I started music or looked at pictures the HD just waked up and it only took some more time to get started.
But because some process in the Asus (the log?) wakes up the HD from time to time, I now have K.C. Furge's way of silencing it, which also means it never sleeps. This is more of an elegant solution, and much faster. Rebooting the Asus, urging Twonky to read all the media again, isn't fast at all. :(

Regards
Marc

Michele Spinolo
17-05-2008, 11:49
I have worked with Twonky for about a year on a HD that slept after a while, and never got such problems. If I started music or looked at pictures the HD just waked up and it only took some more time to get started.
But because some process in the Asus (the log?) wakes up the HD from time to time, I now have K.C. Furge's way of silencing it, which also means it never sleeps. This is more of an elegant solution, and much faster. Rebooting the Asus, urging Twonky to read all the media again, isn't fast at all. :(

Regards
Marc

ciao Marc,

I have KFurge FW, and in rc.local I have exactly the same parameters you have (or at least posted) in yours.
I was managing movies actually, i did not try with music or pics but that was the result.

Is it maybe something due with PS3 then: what are you using as client with twonky?

mumsoft
17-05-2008, 14:30
ciao Marc,

I have KFurge FW, and in rc.local I have exactly the same parameters you have (or at least posted) in yours.
Yes, I thought so. But especially because you get errors with these, I would suggest that you revert to the way K.C.Furge has handled this:

hdparm -B 164 ${internal_hdd}
hdparm -B 114 ${internal_hdd}

Is it maybe something due with PS3 then: what are you using as client with twonky?[/QUOTE]

Ziova Clearstream CS510
Pinnacle Soundbridge M1000 (not in use anymore)
Noxon Audio

I have nothing against playstations or Xboxes or WII's personally. But any apparatus entering our home should at least know about OGG, preferably about FLAC, and most urgently not having anything to do with MS (Windows).

Regards,
Marc

FastCat
05-09-2008, 21:45
Help pls to solve a problem.
I start (wl-700g) ./twonkymedia
In the answer I receive such message with an error

/opt/lib/libpthread.so.0: no version information available (required by./twonkymedia)

As it is possible to solve the given problem?

mumsoft
06-09-2008, 13:23
Help pls to solve a problem.
I start (wl-700g) ./twonkymedia
In the answer I receive such message with an error

/opt/lib/libpthread.so.0: no version information available (required by./twonkymedia)

As it is possible to solve the given problem?

Twonky does not like the versions of the library that it finds in /opt. So, you should start Twonky before the new library is activated.
You can do that in rc.local (/opt/etc/rc.local) just before the new libpath is defined. See the bold section in this part of rc.local:


#############
# These items only run once at power up
#############
if [ ! -f /tmp/rc.local.done ]; then

#Start Twonkymedia, werkt met originele library_path
/opt/share/TwonkyMedia/twonkymedia &

export PATH=/opt/bin:/opt/sbin:/bin:/sbin:/usr/bin:/usr/sbin
export LD_LIBRARY_PATH=/opt/lib:/apps/lib:/apps/usr/gift-nasoc/lib



Marc

FastCat
07-09-2008, 12:06
Many thanks. Your council has helped :)