Results 1 to 15 of 34

Thread: Twonky

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Twonky

    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?

  2. #2
    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

  3. #3
    Isn't there anybody out there, who got twonky to work on a wl-700ge?

  4. #4
    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

  5. #5
    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
    ASUS WL-700gE running with kfurge's firmware
    Twonkymediaserver on board

  6. #6
    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.

  7. #7

    Help with installing twonky on wl-700ge

    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..

  8. #8
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    244

    Cool

    Look here:

    http://wl500g.info/showthread.php?t=...ghlight=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

  9. #9
    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

  10. #10
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    244

    Talking Oh err, well, yes...

    Quote Originally Posted by emailpr View Post
    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?
    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

  11. #11
    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?

  12. #12
    I get a weird thing happening:

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

    Anyone seen this?

  13. #13

    Autostart Twonky

    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

  14. #14
    Join Date
    Jan 2007
    Location
    The Netherlands
    Posts
    244

    This works for me...

    Hi,

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

    Code:
     #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.
    Regarding divx, you probably should remove

    Code:
    MT:avi,divx video/avi

    in the clients.db (in directory resources)

    Love,
    Marc

Similar Threads

  1. Twonky locks up my Asus WL500gx?
    By sebw in forum WL-500g Q&A
    Replies: 1
    Last Post: 04-03-2007, 13:05
  2. Oleg + twonky + VPN
    By bakman in forum WL-HDD Q&A
    Replies: 0
    Last Post: 15-12-2006, 09:48
  3. Twonky Vision
    By Skymannn in forum German Discussion - Deutsch (DE)
    Replies: 1
    Last Post: 27-09-2006, 13:56
  4. Internet toegang op WL-HDD via router
    By Jeroen van Omme in forum Dutch Discussion - Nederlands
    Replies: 8
    Last Post: 06-07-2006, 22:36
  5. twonky media server, network drive with oleg firmware
    By black_bottom in forum WL-HDD Q&A
    Replies: 3
    Last Post: 22-03-2006, 07:15

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •