1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Trying Upgrading to Twonkymedia 4.99 or 5.0

Discussion in 'Cisco/Linksys Network Storage Devices' started by johnd2, Dec 24, 2008.

  1. johnd2

    johnd2 Addicted to LI Member

    I created a directory on the root of the first HD like the directions say. I run a ps au and see it connecting to new dir. see below:
    2208 root 452 S < sh -c /bin/rm -rf /harddisk/volume_1/conf/twonkymedia
    2209 root 432 D < /bin/rm -rf /harddisk/volume_1/conf/twonkymedia.db
    2213 root 620 R ps au

    But after it starts to run it goes back to run at /etc
    2208 root 452 S < sh -c /bin/rm -rf /harddisk/volume_1/conf/twonkymedia
    2209 root 432 D < /bin/rm -rf /harddisk/volume_1/conf/twonkymedia.db
    2213 root 620 R ps au

    Before I start up the media server I reboot the linksys and it still runs on /etc. Can you please let me know what step I am missing.
    Thanks in advance -john
     
  2. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    What you see here is that something is clearing the database. This takes a minute (depending on how big it is) and then you should see something like:
    Code:
     2969 root        528 S   /bin/sh /etc/rc.d/twonkymedia.sh start
     2976 root        480 S   /bin/sh /harddisk/volume_1/data/rc.d/twonky5/twonkyme
     2978 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2979 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2984 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2985 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2986 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2987 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2988 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2989 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2990 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2991 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     2994 root       4332 S   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
     3006 root       4332 R   /harddisk/volume_1/data/rc.d/twonky5/actual/twonkymed
    
    The first line is the Twonky startup script (this is started from the Linksys web GUI server)
    The second line is the Twonky server, started from the startup script
    The other lines are all worker processes started by the Twonky server.

    It will take a while (several minutes) before all your media becomes visible on a player; you should probably leave the NAS200 on 24/7 to prevent it from deleting the database every time it starts the media server.

    This is the exact same as what you said above... Copy/Paste error?

    To run an updated Twonky on Jac2a you can do one of the following:
    • Expand the zip file to e.g. \\address\DISK 1\rc.d\twonky (corresponds to /harddisk/volume_1/data/rc.d/twonky) to let the Linksys software control it completely. You can use the Linksys web GUI to add media sharing directories; the Twonky web GUI is disabled but you should be able to control the 5.0 server from the new MediaManager. Every time you start the server from the Linksys web GUI, the INI file gets rewritten (it's derived from /etc/media.conf) so you'll have to re-enter your license key.
    • Expand the zip file to another place and write a script /harddisk/volume_1/data/rc.d/twonky/twonkymediaserver. A sample script is in the Jac2a article; this will allow you to use the Linksys web GUI but also lets you override INI settings on the command line (the sample overrides the enableweb option to allow use of the Twonky web GUI).
    • Expand the zip file to another place and start it manually from a custom script in \\address\DISK 1\rc.d. Assuming you unpacked the zip file to \\address\DISK 1\mytwonky, the script should read something like:
      Code:
      #!/bin/sh
      chmod -R 777 /harddisk/volume_1/data/mytwonky
      /harddisk/volume_1/data/mytwonky/twonkymedia.sh start
      This will give you complete control over the Twonky configuration but it also means that you can't control it from the Linksys web GUI anymore and you have to remember to disable the built-in Twonky.

    Keep in mind that after you unpack the files using a remote machine using e.g. Windows, the access rights will initially be set wrong. You can fix this from a command prompt using the chmod and/or chown commands; if you restart the NAS it will automatically take ownership and set the access rights as part of the startup procedure. ALWAYS USE /etc/rc.d/rc.reboot TO REBOOT THE SYSTEM FROM THE COMMAND LINE! If you just type "reboot", your file systems won't be synced and you may lose data.

    Also keep in mind that the file system is case-sensitive; you have to name the directory "rc.d/twonky" (or something), not "RC.D/Twonky".

    If you let the Linksys/Jac2a script start the Twonky server, you won't be able to use the Twonky web GUI to let it restart itself; it will simply terminate and you'll have to use Telnet or SSH to run "/etc/rc.d/twonkymedia.sh start" to start it up again. This appears to be a bug in the way the Linksys software starts the Twonky software.

    Hope this helps; if not, please post the output of ls -lR /harddisk/volume_1/data/rc.d/twonky*

    I realize it's still not quite as easy to run an updated Twonky as it should be. I will try to improve things in a future version.

    ===Jac
     
  3. johnd2

    johnd2 Addicted to LI Member

    Thanks Jac for this detail info it is very useful and it explains a lot.

    I am leaning towards using the second option that will allow me to use the Linksys web GUI and the twonky web GUI, just have to figure out how to create and run the script you outlined.

    I have not tried using the Twonky Web GUI can you please let me know how to run it from windows? What is the web address I should use to start it up and what are the advantages of using the Twonky vs the Linksys web GUI.
     
  4. johnd2

    johnd2 Addicted to LI Member

    Jac,

    Tried to upgrade and still having issues. I created the twonkymediaserver script with notepad++ like you said first time I saved it as unix file without the .sh extension and didnt work then I put in the .sh extention still no luck. Still running in /etc see below:
    2063 root 460 S sh -c /etc/rc.d/twonkymedia.sh start >/dev/null 2>&1
    2067 root 520 S /bin/sh /etc/rc.d/twonkymedia.sh start

    Here is the output like you asked. Thanks again.
    $ ls -lR /harddisk/volume_1/data/rc.d/twonky*

    /harddisk/volume_1/data/rc.d/twonky50:
    drwxrwxrwx 5 admin everyone 4096 Dec 25 10:44 actual
    -rw-rw-r-- 1 admin everyone 323 Dec 25 11:00 twonkymediaserver.sh

    /harddisk/volume_1/data/rc.d/twonky50/actual:
    -rw-rw-r-- 1 admin everyone 2649 Dec 25 10:44 Linux-HowTo.txt
    -rw-rw-r-- 1 admin everyone 37236 Dec 25 10:44 RevisionHistory
    drwxrwxrwx 2 admin everyone 4096 Dec 25 10:44 cgi-bin
    -rw-rw-r-- 1 admin everyone 134 Dec 25 10:44 initial_keystore.dat
    -rw-rw-r-- 1 admin everyone 219 Dec 25 10:44 mediafusion_keystore.dat
    drwxrwxrwx 2 admin everyone 127 Dec 25 10:44 plugins
    -rw-rw-r-- 1 admin everyone 421 Dec 25 10:44 radio.m3u
    drwxrwxrwx 3 admin everyone 4096 Dec 25 10:44 resources
    -rw-rw-r-- 1 admin everyone 7 Dec 25 10:44 twonkymedia
    -rw-rw-r-- 1 admin everyone 138 Dec 25 10:44 twonkymedia-server-defau
    lt.ini
    -rw-rw-r-- 1 admin everyone 3775 Dec 25 10:44 twonkymedia.sh
    -rw-rw-r-- 1 admin everyone 606 Dec 25 10:44 twonkymediaserver

    /harddisk/volume_1/data/rc.d/twonky50/actual/cgi-bin:
    -rw-rw-r-- 1 admin everyone 180 Dec 25 10:44 any-mp4-mp3.desc
    -rw-rw-r-- 1 admin everyone 182 Dec 25 10:44 any-wav-mp3.desc
    -rw-rw-r-- 1 admin everyone 185 Dec 25 10:44 any-wma-mp3.desc
    -rw-rw-r-- 1 admin everyone 93 Dec 25 10:44 cgi-jpegscale
    -rw-rw-r-- 1 admin everyone 180 Dec 25 10:44 convert-bmp-scale.desc
    -rw-rw-r-- 1 admin everyone 180 Dec 25 10:44 convert-gif-scale.desc
    -rw-rw-r-- 1 admin everyone 166 Dec 25 10:44 convert-jpg-scale.desc
    -rw-rw-r-- 1 admin everyone 180 Dec 25 10:44 convert-png-scale.desc
    -rw-rw-r-- 1 admin everyone 181 Dec 25 10:44 convert-tiff-scale.desc
    -rw-rw-r-- 1 admin everyone 28 Dec 25 10:44 convert.location
    -rw-rw-r-- 1 admin everyone 158 Dec 25 10:44 dsat-wav-mp3.desc
    -rw-rw-r-- 1 admin everyone 161 Dec 25 10:44 dsat-wma-mp3.desc
    -rw-rw-r-- 1 admin everyone 144 Dec 25 10:44 dstflv-mp4-flv.desc
    -rw-rw-r-- 1 admin everyone 145 Dec 25 10:44 dstflv-mpg-flv.desc
    -rw-rw-r-- 1 admin everyone 150 Dec 25 10:44 dstflv-msvideo-flv.desc
    -rw-rw-r-- 1 admin everyone 149 Dec 25 10:44 dstflv-wmv-flv.desc
    -rw-rw-r-- 1 admin everyone 158 Dec 25 10:44 dsvt-mpg-mp4.desc
    -rw-rw-r-- 1 admin everyone 161 Dec 25 10:44 dsvt-wmv-mp4.desc
    -rw-rw-r-- 1 admin everyone 215 Dec 25 10:44 ffmpeg-asf-flv.desc
    -rw-rw-r-- 1 admin everyone 210 Dec 25 10:44 ffmpeg-avi-flv.desc
    -rw-rw-r-- 1 admin everyone 188 Dec 25 10:44 ffmpeg-flv-mpg.desc
    -rw-rw-r-- 1 admin everyone 216 Dec 25 10:44 ffmpeg-mov-flv.desc
    -rw-rw-r-- 1 admin everyone 210 Dec 25 10:44 ffmpeg-mp4-flv.desc
    -rw-rw-r-- 1 admin everyone 211 Dec 25 10:44 ffmpeg-mpg-flv.desc
    -rw-rw-r-- 1 admin everyone 212 Dec 25 10:44 ffmpeg-mpg-wmv.desc
    -rw-rw-r-- 1 admin everyone 216 Dec 25 10:44 ffmpeg-msvideo-flv.desc
    -rw-rw-r-- 1 admin everyone 215 Dec 25 10:44 ffmpeg-wmv-flv.desc
    -rw-rw-r-- 1 admin everyone 9 Dec 25 10:44 ffmpeg.location
    -rw-rw-r-- 1 admin everyone 167 Dec 25 10:44 flac-wav.desc
    -rw-rw-r-- 1 admin everyone 653 Dec 25 10:44 jpeg-scale.desc
    -rw-rw-r-- 1 admin everyone 175 Dec 25 10:44 lame-mp3-wav.desc
    -rw-rw-r-- 1 admin everyone 340 Dec 25 10:44 mencoder-mpg-divx.desc
    -rw-rw-r-- 1 admin everyone 711 Dec 25 10:44 mencoder-mpg-xvid.desc
    -rw-rw-r-- 1 admin everyone 411 Dec 25 10:44 mencoder-wmv-pal.desc
    -rw-rw-r-- 1 admin everyone 25 Dec 25 10:44 mencoder.location
    -rw-rw-r-- 1 admin everyone 184 Dec 25 10:44 mplayer-ogg-wav.desc
    -rw-rw-r-- 1 admin everyone 25 Dec 25 10:44 mplayer.location
    -rw-rw-r-- 1 admin everyone 19026 Dec 25 10:44 overview.gif
    -rw-rw-r-- 1 admin everyone 148 Dec 25 10:44 pvtranscoder-wmv-avi.des
    c
    -rw-rw-r-- 1 admin everyone 9187 Dec 25 10:44 transcoding.html
    -rw-rw-r-- 1 admin everyone 281 Dec 25 10:44 vlc-flv-mp4.desc
    -rw-rw-r-- 1 admin everyone 277 Dec 25 10:44 vlc-flv-mpeg2.desc
    -rw-rw-r-- 1 admin everyone 264 Dec 25 10:44 vlc-flv-wmv.desc
    -rw-rw-r-- 1 admin everyone 277 Dec 25 10:44 vlc-mov-mpeg2.desc
    -rw-rw-r-- 1 admin everyone 254 Dec 25 10:44 vlc-wma-mp3.desc
    -rw-rw-r-- 1 admin everyone 29 Dec 25 10:44 vlc.location
    -rw-rw-r-- 1 admin everyone 326 Dec 25 10:44 whs-ffmpeg-mov-mov.desc
    -rw-rw-r-- 1 admin everyone 324 Dec 25 10:44 whs-ffmpeg-mov-wmv.desc
    -rw-rw-r-- 1 admin everyone 327 Dec 25 10:44 whs-ffmpeg-mpg-mov.desc
    -rw-rw-r-- 1 admin everyone 325 Dec 25 10:44 whs-ffmpeg-mpg-wmv.desc
    -rw-rw-r-- 1 admin everyone 331 Dec 25 10:44 whs-ffmpeg-wmv-mov.desc
    -rw-rw-r-- 1 admin everyone 329 Dec 25 10:44 whs-ffmpeg-wmv-wmv.desc

    /harddisk/volume_1/data/rc.d/twonky50/actual/plugins:
    -rw-rw-r-- 1 admin everyone 237 Dec 25 10:44 itunes-import
    -rw-rw-r-- 1 admin everyone 180 Dec 25 10:44 itunes-import.plugin
    -rw-rw-r-- 1 admin everyone 365 Dec 25 10:44 mediafusion-integration-
    plugin
    -rw-rw-r-- 1 admin everyone 233 Dec 25 10:44 mediafusion-integration.
    plugin

    /harddisk/volume_1/data/rc.d/twonky50/actual/resources:
    -rw-rw-r-- 1 admin everyone 2506 Dec 25 10:44 TwonkyMediaConfig.css
    -rw-rw-r-- 1 admin everyone 31685 Dec 25 10:44 TwonkyMediaConfig.js
    -rw-rw-r-- 1 admin everyone 1213 Dec 25 10:44 TwonkyMediaConfig_groupi
    ng.js
    -rw-rw-r-- 1 admin everyone 11800 Dec 25 10:44 TwonkyMediaServer_logo.j
    pg
    -rw-rw-r-- 1 admin everyone 529 Dec 25 10:44 arrow-left.gif
    -rw-rw-r-- 1 admin everyone 530 Dec 25 10:44 arrow-right.gif
    -rw-rw-r-- 1 admin everyone 119 Dec 25 10:44 arrow_test_small.gif
    -rw-rw-r-- 1 admin everyone 1043 Dec 25 10:44 attention-small.gif
    -rw-rw-r-- 1 admin everyone 563 Dec 25 10:44 cart.gif
    -rw-rw-r-- 1 admin everyone 10248 Dec 25 10:44 cds-noupdate.xml
    -rw-rw-r-- 1 admin everyone 15812 Dec 25 10:44 cds.xml
    -rw-rw-r-- 1 admin everyone 13808 Dec 25 10:44 clients.db
    -rw-rw-r-- 1 admin everyone 4852 Dec 25 10:44 cms.xml
    -rw-rw-r-- 1 admin everyone 1281 Dec 25 10:44 comingsoon.gif
    -rw-rw-r-- 1 admin everyone 27418 Dec 25 10:44 config-content.html
    -rw-rw-r-- 1 admin everyone 920 Dec 25 10:44 config-head.html
    -rw-rw-r-- 1 admin everyone 3008 Dec 25 10:44 config-menu.html
    -rw-rw-r-- 1 admin everyone 1160 Dec 25 10:44 config.gif
    -rw-rw-r-- 1 admin everyone 1718 Dec 25 10:44 config.html
    -rw-rw-r-- 1 admin everyone 215 Dec 25 10:44 description.txt
    -rw-rw-r-- 1 admin everyone 807 Dec 25 10:44 empty.gif
    -rw-rw-r-- 1 admin everyone 4286 Dec 25 10:44 favicon.ico
    -rw-rw-r-- 1 admin everyone 950 Dec 25 10:44 folder.gif
    -rw-rw-r-- 1 admin everyone 19056 Dec 25 10:44 head-background.jpg
    -rw-rw-r-- 1 admin everyone 831 Dec 25 10:44 home.gif
    -rw-rw-r-- 1 admin everyone 2316 Dec 25 10:44 index.html
    -rw-rw-r-- 1 admin everyone 358 Dec 25 10:44 left.gif
    -rw-rw-r-- 1 admin everyone 569 Dec 25 10:44 mb-config.gif
    -rw-rw-r-- 1 admin everyone 2928 Dec 25 10:44 mb-header-logo.gif
    -rw-rw-r-- 1 admin everyone 501 Dec 25 10:44 mb-headerBG-kachel.gif
    -rw-rw-r-- 1 admin everyone 481 Dec 25 10:44 mb-music-sel.gif
    -rw-rw-r-- 1 admin everyone 481 Dec 25 10:44 mb-music.gif
    -rw-rw-r-- 1 admin everyone 558 Dec 25 10:44 mb-photo-sel.gif
    -rw-rw-r-- 1 admin everyone 561 Dec 25 10:44 mb-photo.gif
    -rw-rw-r-- 1 admin everyone 542 Dec 25 10:44 mb-radio-sel.gif
    -rw-rw-r-- 1 admin everyone 547 Dec 25 10:44 mb-radio.gif
    -rw-rw-r-- 1 admin everyone 537 Dec 25 10:44 mb-video-sel.gif
    -rw-rw-r-- 1 admin everyone 533 Dec 25 10:44 mb-video.gif
    -rw-rw-r-- 1 admin everyone 443 Dec 25 10:44 mediabrowser-sel.gif
    -rw-rw-r-- 1 admin everyone 618 Dec 25 10:44 mediabrowser.gif
    -rw-rw-r-- 1 admin everyone 4069 Dec 25 10:44 menu-background.jpg
    -rw-rw-r-- 1 admin everyone 2486 Dec 25 10:44 msreg.xml
    -rw-rw-r-- 1 admin everyone 392 Dec 25 10:44 music-sel.gif
    -rw-rw-r-- 1 admin everyone 616 Dec 25 10:44 music.gif
    -rw-rw-r-- 1 admin everyone 2479 Dec 25 10:44 nocover.jpg
    -rw-rw-r-- 1 admin everyone 382 Dec 25 10:44 photo-sel.gif
    -rw-rw-r-- 1 admin everyone 578 Dec 25 10:44 photo.gif
    -rw-rw-r-- 1 admin everyone 2615 Dec 25 10:44 platform-specific-menu-g
    rouping.js
    -rw-rw-r-- 1 admin everyone 422 Dec 25 10:44 radio-sel.gif
    -rw-rw-r-- 1 admin everyone 620 Dec 25 10:44 radio.gif
    -rw-rw-r-- 1 admin everyone 536 Dec 25 10:44 record.gif
    -rw-rw-r-- 1 admin everyone 355 Dec 25 10:44 right.gif
    -rw-rw-r-- 1 admin everyone 1352 Dec 25 10:44 rss.gif
    -rw-rw-r-- 1 admin everyone 369 Dec 25 10:44 status-sel.gif
    -rw-rw-r-- 1 admin everyone 568 Dec 25 10:44 status.gif
    -rw-rw-r-- 1 admin everyone 189 Dec 25 10:44 stop.gif
    -rw-rw-r-- 1 admin everyone 3 Dec 25 10:44 strings-chs.txt
    -rw-rw-r-- 1 admin everyone 4 Dec 25 10:44 strings-cht.txt
    -rw-rw-r-- 1 admin everyone 3 Dec 25 10:44 strings-de.txt
    -rw-rw-r-- 1 admin everyone 4 Dec 25 10:44 strings-en.txt
    -rw-rw-r-- 1 admin everyone 4 Dec 25 10:44 strings-es.txt
    -rw-rw-r-- 1 admin everyone 4 Dec 25 10:44 strings-fi.txt
    -rw-rw-r-- 1 admin everyone 5 Dec 25 10:44 strings-fr.txt
    -rw-rw-r-- 1 admin everyone 3 Dec 25 10:44 strings-it.txt
    -rw-rw-r-- 1 admin everyone 42 Dec 25 10:44 strings-jp.txt
    -rw-rw-r-- 1 admin everyone 3 Dec 25 10:44 strings-ko.txt
    -rw-rw-r-- 1 admin everyone 4 Dec 25 10:44 strings-nl.txt
    -rw-rw-r-- 1 admin everyone 1753 Dec 25 10:44 transcoding.db
    -rw-rw-r-- 1 admin everyone 101 Dec 25 10:44 tri-blau.gif
    -rw-rw-r-- 1 admin everyone 9449 Dec 25 10:44 twonkyicon-120x120.jpg
    -rw-rw-r-- 1 admin everyone 5709 Dec 25 10:44 twonkyicon-120x120.png
    -rw-rw-r-- 1 admin everyone 3014 Dec 25 10:44 twonkyicon-48x48.jpg
    -rw-rw-r-- 1 admin everyone 2149 Dec 25 10:44 twonkyicon-48x48.png
    -rw-rw-r-- 1 admin everyone 5443 Dec 25 10:44 twonkyicon-80x80.jpg
    -rw-rw-r-- 1 admin everyone 1716 Dec 25 10:44 twonkymedia.gif
    -rw-rw-r-- 1 admin everyone 381 Dec 25 10:44 video-sel.gif
    -rw-rw-r-- 1 admin everyone 608 Dec 25 10:44 video.gif
    drwxrwxrwx 2 admin everyone 29 Dec 25 10:44 views
    -rw-rw-r-- 1 admin everyone 2209 Dec 25 10:44 wait.gif
    -rw-rw-r-- 1 admin everyone 1707 Dec 25 10:44 wait.htm
    -rw-rw-r-- 1 admin everyone 1262 Dec 25 10:44 webbrowse-back.gif
    -rw-rw-r-- 1 admin everyone 1138 Dec 25 10:44 webbrowse-e61-back.gif
    -rw-rw-r-- 1 admin everyone 1215 Dec 25 10:44 webbrowse-e61-home.gif
    -rw-rw-r-- 1 admin everyone 1147 Dec 25 10:44 webbrowse-e61-logo.gif
    -rw-rw-r-- 1 admin everyone 1144 Dec 25 10:44 webbrowse-e61-next.gif
    -rw-rw-r-- 1 admin everyone 871 Dec 25 10:44 webbrowse-e61-play.gif
    -rw-rw-r-- 1 admin everyone 1149 Dec 25 10:44 webbrowse-e61-prev.gif
    -rw-rw-r-- 1 admin everyone 1012 Dec 25 10:44 webbrowse-e61-upload.gif
    -rw-rw-r-- 1 admin everyone 3258 Dec 25 10:44 webbrowse-e61.css
    -rw-rw-r-- 1 admin everyone 831 Dec 25 10:44 webbrowse-home.gif
    -rw-rw-r-- 1 admin everyone 1207 Dec 25 10:44 webbrowse-logo.gif
    -rw-rw-r-- 1 admin everyone 1359 Dec 25 10:44 webbrowse-mobile.gif
    -rw-rw-r-- 1 admin everyone 1113 Dec 25 10:44 webbrowse-n95-back.gif
    -rw-rw-r-- 1 admin everyone 1191 Dec 25 10:44 webbrowse-n95-home.gif
    -rw-rw-r-- 1 admin everyone 1117 Dec 25 10:44 webbrowse-n95-next.gif
    -rw-rw-r-- 1 admin everyone 871 Dec 25 10:44 webbrowse-n95-play.gif
    -rw-rw-r-- 1 admin everyone 1119 Dec 25 10:44 webbrowse-n95-prev.gif
    -rw-rw-r-- 1 admin everyone 1012 Dec 25 10:44 webbrowse-n95-upload.gif
    -rw-rw-r-- 1 admin everyone 3091 Dec 25 10:44 webbrowse-n95.css
    -rw-rw-r-- 1 admin everyone 530 Dec 25 10:44 webbrowse-next.gif
    -rw-rw-r-- 1 admin everyone 1475 Dec 25 10:44 webbrowse-pc.gif
    -rw-rw-r-- 1 admin everyone 871 Dec 25 10:44 webbrowse-play.gif
    -rw-rw-r-- 1 admin everyone 529 Dec 25 10:44 webbrowse-prev.gif
    -rw-rw-r-- 1 admin everyone 1138 Dec 25 10:44 webbrowse-psp-back.gif
    -rw-rw-r-- 1 admin everyone 1215 Dec 25 10:44 webbrowse-psp-home.gif
    -rw-rw-r-- 1 admin everyone 1147 Dec 25 10:44 webbrowse-psp-logo.gif
    -rw-rw-r-- 1 admin everyone 1144 Dec 25 10:44 webbrowse-psp-next.gif
    -rw-rw-r-- 1 admin everyone 871 Dec 25 10:44 webbrowse-psp-play.gif
    -rw-rw-r-- 1 admin everyone 0 Dec 25 10:44 webbrowse-psp-prev.gif
    -rw-rw-r-- 1 admin everyone 0 Dec 25 10:44 webbrowse-psp-upload.gif
    -rw-rw-r-- 1 admin everyone 3539 Dec 25 10:44 webbrowse-psp.css
    -rw-rw-r-- 1 admin everyone 1374 Dec 25 10:44 webbrowse-settings.gif
    -rw-rw-r-- 1 admin everyone 1354 Dec 25 10:44 webbrowse-upload.gif
    -rw-rw-r-- 1 admin everyone 3279 Dec 25 10:44 webbrowse.css
    -rw-rw-r-- 1 admin everyone 10390 Dec 25 10:44 website-bg.gif

    /harddisk/volume_1/data/rc.d/twonky50/actual/resources/views:
    -rw-rw-r-- 1 admin everyone 18166 Dec 25 10:44 default.view.xml
    $
    $
     
  5. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    First of all, the script really has to be named twonkymediaserver without the .sh. The reason is that my script searches for the executable that would normally be the actual Twonky server.

    Second, the access rights are wrong: you will have to log in through Telnet or SSH and change them:
    Code:
    chown -Rh root /harddisk/volume_1/data/rc.d/twonky5
    chmod -R 777 /harddisk/volume_1/data/rc.d/twonky5
    
    I know I said that should happen automatically on reboot but apparently there's a problem that my scripts don't run the custom scripts as they're supposed to. :doh:

    Provided you saved the script in Unix mode with Notepad++, you should be all set after this (at least it looks that way). All you'll need to do is enable the media server from the Linksys web GUI. If it's already enabled, run "/etc/rc.d/twonkymedia.sh start" from the Telnet or SSH command prompt. Remember it takes a while before it finds all your media.

    EDIT: Oh, one more thing: your rc.d/actual/twonkymediaserver is a little on the small side (606 bytes). Looks like you overwrote the original server program with a script by accident. The real program is 669KB...

    ===Jac
     
  6. johnd2

    johnd2 Addicted to LI Member

    Getting close I think. Ok I made the changes you outlined. Thanks again great help with changing the permissions.

    I run the this:
    $ /etc/rc.d/twonkymedia.sh start
    and get this:
    Starting /etc/twonkymediaserver ... TwonkyMedia Version 4.4.2.1
    Do a ps au
    and get this:
    2069 root 460 S sh -c /etc/rc.d/twonkymedia.sh start >/dev/null 2>&1
    2075 root 524 S /bin/sh /etc/rc.d/twonkymedia.sh start
    2082 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2087 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2088 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2089 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2090 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2091 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2092 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2094 root 1184 R /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2116 root 380 S /usr/sbin/CheckHDDDrive
    2131 root 2196 S /usr/sbin/nmbd -D
    2133 root 272 S init
    2134 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2135 root SW [pdflush]
    2138 root 560 S /usr/sbin/telnetd -l /bin/sh
    2139 root 676 S /bin/sh
    2141 root 516 S /bin/sh /etc/rc.d/twonkymedia.sh start
    2148 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2149 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2150 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2151 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2152 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2153 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2154 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2155 root 1184 R /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2170 root 1184 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2171 root 564 S /usr/sbin/telnetd -l /bin/sh
    2172 root 676 S /bin/sh
    2174 root 616 R ps au

    Looks like its still running in /etc instead of the new directory.

    I ran this again for you to check out:
    $ ls -lR /harddisk/volume_1/data/rc.d/twonky*
    /harddisk/volume_1/data/rc.d/twonky50:
    drwxrwxrwx 5 root everyone 4096 Dec 25 16:46 actual
    -rw-rw-r-- 1 admin everyone 56 Dec 25 17:13 twonkymediaserver

    /harddisk/volume_1/data/rc.d/twonky50/actual:
    -rwxrwxrwx 1 root everyone 2649 Dec 25 10:44 Linux-HowTo.txt
    -rwxrwxrwx 1 root everyone 37236 Dec 25 10:44 RevisionHistory
    drwxrwxrwx 2 root everyone 4096 Dec 25 10:44 cgi-bin
    -rwxrwxrwx 1 root everyone 134 Dec 25 10:44 initial_keystore.dat
    -rwxrwxrwx 1 root everyone 219 Dec 25 10:44 mediafusion_keystore.dat
    drwxrwxrwx 2 root everyone 127 Dec 25 10:44 plugins
    -rwxrwxrwx 1 root everyone 421 Dec 25 10:44 radio.m3u
    drwxrwxrwx 3 root everyone 4096 Dec 25 10:44 resources
    -rwxrwxrwx 1 root everyone 7 Dec 25 10:44 twonkymedia
    -rwxrwxrwx 1 root everyone 138 Dec 25 10:44 twonkymedia-server-defau
    lt.ini
    -rwxrwxrwx 1 root everyone 3775 Dec 25 10:44 twonkymedia.sh
    -rwxrwxrwx 1 root everyone 571 Dec 25 16:46 twonkymediaserver

    /harddisk/volume_1/data/rc.d/twonky50/actual/cgi-bin:
    -rwxrwxrwx 1 root everyone 180 Dec 25 10:44 any-mp4-mp3.desc
    -rwxrwxrwx 1 root everyone 182 Dec 25 10:44 any-wav-mp3.desc
    -rwxrwxrwx 1 root everyone 185 Dec 25 10:44 any-wma-mp3.desc
    -rwxrwxrwx 1 root everyone 93 Dec 25 10:44 cgi-jpegscale
    -rwxrwxrwx 1 root everyone 180 Dec 25 10:44 convert-bmp-scale.desc
    -rwxrwxrwx 1 root everyone 180 Dec 25 10:44 convert-gif-scale.desc
    -rwxrwxrwx 1 root everyone 166 Dec 25 10:44 convert-jpg-scale.desc
    -rwxrwxrwx 1 root everyone 180 Dec 25 10:44 convert-png-scale.desc
    -rwxrwxrwx 1 root everyone 181 Dec 25 10:44 convert-tiff-scale.desc
    -rwxrwxrwx 1 root everyone 28 Dec 25 10:44 convert.location
    -rwxrwxrwx 1 root everyone 158 Dec 25 10:44 dsat-wav-mp3.desc
    -rwxrwxrwx 1 root everyone 161 Dec 25 10:44 dsat-wma-mp3.desc
    -rwxrwxrwx 1 root everyone 144 Dec 25 10:44 dstflv-mp4-flv.desc
    -rwxrwxrwx 1 root everyone 145 Dec 25 10:44 dstflv-mpg-flv.desc
    -rwxrwxrwx 1 root everyone 150 Dec 25 10:44 dstflv-msvideo-flv.desc
    -rwxrwxrwx 1 root everyone 149 Dec 25 10:44 dstflv-wmv-flv.desc
    -rwxrwxrwx 1 root everyone 158 Dec 25 10:44 dsvt-mpg-mp4.desc
    -rwxrwxrwx 1 root everyone 161 Dec 25 10:44 dsvt-wmv-mp4.desc
    -rwxrwxrwx 1 root everyone 215 Dec 25 10:44 ffmpeg-asf-flv.desc
    -rwxrwxrwx 1 root everyone 210 Dec 25 10:44 ffmpeg-avi-flv.desc
    -rwxrwxrwx 1 root everyone 188 Dec 25 10:44 ffmpeg-flv-mpg.desc
    -rwxrwxrwx 1 root everyone 216 Dec 25 10:44 ffmpeg-mov-flv.desc
    -rwxrwxrwx 1 root everyone 210 Dec 25 10:44 ffmpeg-mp4-flv.desc
    -rwxrwxrwx 1 root everyone 211 Dec 25 10:44 ffmpeg-mpg-flv.desc
    -rwxrwxrwx 1 root everyone 212 Dec 25 10:44 ffmpeg-mpg-wmv.desc
    -rwxrwxrwx 1 root everyone 216 Dec 25 10:44 ffmpeg-msvideo-flv.desc
    -rwxrwxrwx 1 root everyone 215 Dec 25 10:44 ffmpeg-wmv-flv.desc
    -rwxrwxrwx 1 root everyone 9 Dec 25 10:44 ffmpeg.location
    -rwxrwxrwx 1 root everyone 167 Dec 25 10:44 flac-wav.desc
    -rwxrwxrwx 1 root everyone 653 Dec 25 10:44 jpeg-scale.desc
    -rwxrwxrwx 1 root everyone 175 Dec 25 10:44 lame-mp3-wav.desc
    -rwxrwxrwx 1 root everyone 340 Dec 25 10:44 mencoder-mpg-divx.desc
    -rwxrwxrwx 1 root everyone 711 Dec 25 10:44 mencoder-mpg-xvid.desc
    -rwxrwxrwx 1 root everyone 411 Dec 25 10:44 mencoder-wmv-pal.desc
    -rwxrwxrwx 1 root everyone 25 Dec 25 10:44 mencoder.location
    -rwxrwxrwx 1 root everyone 184 Dec 25 10:44 mplayer-ogg-wav.desc
    -rwxrwxrwx 1 root everyone 25 Dec 25 10:44 mplayer.location
    -rwxrwxrwx 1 root everyone 19026 Dec 25 10:44 overview.gif
    -rwxrwxrwx 1 root everyone 148 Dec 25 10:44 pvtranscoder-wmv-avi.des
    c
    -rwxrwxrwx 1 root everyone 9187 Dec 25 10:44 transcoding.html
    -rwxrwxrwx 1 root everyone 281 Dec 25 10:44 vlc-flv-mp4.desc
    -rwxrwxrwx 1 root everyone 277 Dec 25 10:44 vlc-flv-mpeg2.desc
    -rwxrwxrwx 1 root everyone 264 Dec 25 10:44 vlc-flv-wmv.desc
    -rwxrwxrwx 1 root everyone 277 Dec 25 10:44 vlc-mov-mpeg2.desc
    -rwxrwxrwx 1 root everyone 254 Dec 25 10:44 vlc-wma-mp3.desc
    -rwxrwxrwx 1 root everyone 29 Dec 25 10:44 vlc.location
    -rwxrwxrwx 1 root everyone 326 Dec 25 10:44 whs-ffmpeg-mov-mov.desc
    -rwxrwxrwx 1 root everyone 324 Dec 25 10:44 whs-ffmpeg-mov-wmv.desc
    -rwxrwxrwx 1 root everyone 327 Dec 25 10:44 whs-ffmpeg-mpg-mov.desc
    -rwxrwxrwx 1 root everyone 325 Dec 25 10:44 whs-ffmpeg-mpg-wmv.desc
    -rwxrwxrwx 1 root everyone 331 Dec 25 10:44 whs-ffmpeg-wmv-mov.desc
    -rwxrwxrwx 1 root everyone 329 Dec 25 10:44 whs-ffmpeg-wmv-wmv.desc

    /harddisk/volume_1/data/rc.d/twonky50/actual/plugins:
    -rwxrwxrwx 1 root everyone 237 Dec 25 10:44 itunes-import
    -rwxrwxrwx 1 root everyone 180 Dec 25 10:44 itunes-import.plugin
    -rwxrwxrwx 1 root everyone 365 Dec 25 10:44 mediafusion-integration-
    plugin
    -rwxrwxrwx 1 root everyone 233 Dec 25 10:44 mediafusion-integration.
    plugin

    /harddisk/volume_1/data/rc.d/twonky50/actual/resources:
    -rwxrwxrwx 1 root everyone 2506 Dec 25 10:44 TwonkyMediaConfig.css
    -rwxrwxrwx 1 root everyone 31685 Dec 25 10:44 TwonkyMediaConfig.js
    -rwxrwxrwx 1 root everyone 1213 Dec 25 10:44 TwonkyMediaConfig_groupi
    ng.js
    -rwxrwxrwx 1 root everyone 11800 Dec 25 10:44 TwonkyMediaServer_logo.j
    pg
    -rwxrwxrwx 1 root everyone 529 Dec 25 10:44 arrow-left.gif
    -rwxrwxrwx 1 root everyone 530 Dec 25 10:44 arrow-right.gif
    -rwxrwxrwx 1 root everyone 119 Dec 25 10:44 arrow_test_small.gif
    -rwxrwxrwx 1 root everyone 1043 Dec 25 10:44 attention-small.gif
    -rwxrwxrwx 1 root everyone 563 Dec 25 10:44 cart.gif
    -rwxrwxrwx 1 root everyone 10248 Dec 25 10:44 cds-noupdate.xml
    -rwxrwxrwx 1 root everyone 15812 Dec 25 10:44 cds.xml
    -rwxrwxrwx 1 root everyone 13808 Dec 25 10:44 clients.db
    -rwxrwxrwx 1 root everyone 4852 Dec 25 10:44 cms.xml
    -rwxrwxrwx 1 root everyone 1281 Dec 25 10:44 comingsoon.gif
    -rwxrwxrwx 1 root everyone 27418 Dec 25 10:44 config-content.html
    -rwxrwxrwx 1 root everyone 920 Dec 25 10:44 config-head.html
    -rwxrwxrwx 1 root everyone 3008 Dec 25 10:44 config-menu.html
    -rwxrwxrwx 1 root everyone 1160 Dec 25 10:44 config.gif
    -rwxrwxrwx 1 root everyone 1718 Dec 25 10:44 config.html
    -rwxrwxrwx 1 root everyone 215 Dec 25 10:44 description.txt
    -rwxrwxrwx 1 root everyone 807 Dec 25 10:44 empty.gif
    -rwxrwxrwx 1 root everyone 4286 Dec 25 10:44 favicon.ico
    -rwxrwxrwx 1 root everyone 950 Dec 25 10:44 folder.gif
    -rwxrwxrwx 1 root everyone 19056 Dec 25 10:44 head-background.jpg
    -rwxrwxrwx 1 root everyone 831 Dec 25 10:44 home.gif
    -rwxrwxrwx 1 root everyone 2316 Dec 25 10:44 index.html
    -rwxrwxrwx 1 root everyone 358 Dec 25 10:44 left.gif
    -rwxrwxrwx 1 root everyone 569 Dec 25 10:44 mb-config.gif
    -rwxrwxrwx 1 root everyone 2928 Dec 25 10:44 mb-header-logo.gif
    -rwxrwxrwx 1 root everyone 501 Dec 25 10:44 mb-headerBG-kachel.gif
    -rwxrwxrwx 1 root everyone 481 Dec 25 10:44 mb-music-sel.gif
    -rwxrwxrwx 1 root everyone 481 Dec 25 10:44 mb-music.gif
    -rwxrwxrwx 1 root everyone 558 Dec 25 10:44 mb-photo-sel.gif
    -rwxrwxrwx 1 root everyone 561 Dec 25 10:44 mb-photo.gif
    -rwxrwxrwx 1 root everyone 542 Dec 25 10:44 mb-radio-sel.gif
    -rwxrwxrwx 1 root everyone 547 Dec 25 10:44 mb-radio.gif
    -rwxrwxrwx 1 root everyone 537 Dec 25 10:44 mb-video-sel.gif
    -rwxrwxrwx 1 root everyone 533 Dec 25 10:44 mb-video.gif
    -rwxrwxrwx 1 root everyone 443 Dec 25 10:44 mediabrowser-sel.gif
    -rwxrwxrwx 1 root everyone 618 Dec 25 10:44 mediabrowser.gif
    -rwxrwxrwx 1 root everyone 4069 Dec 25 10:44 menu-background.jpg
    -rwxrwxrwx 1 root everyone 2486 Dec 25 10:44 msreg.xml
    -rwxrwxrwx 1 root everyone 392 Dec 25 10:44 music-sel.gif
    -rwxrwxrwx 1 root everyone 616 Dec 25 10:44 music.gif
    -rwxrwxrwx 1 root everyone 2479 Dec 25 10:44 nocover.jpg
    -rwxrwxrwx 1 root everyone 382 Dec 25 10:44 photo-sel.gif
    -rwxrwxrwx 1 root everyone 578 Dec 25 10:44 photo.gif
    -rwxrwxrwx 1 root everyone 2615 Dec 25 10:44 platform-specific-menu-g
    rouping.js
    -rwxrwxrwx 1 root everyone 422 Dec 25 10:44 radio-sel.gif
    -rwxrwxrwx 1 root everyone 620 Dec 25 10:44 radio.gif
    -rwxrwxrwx 1 root everyone 536 Dec 25 10:44 record.gif
    -rwxrwxrwx 1 root everyone 355 Dec 25 10:44 right.gif
    -rwxrwxrwx 1 root everyone 1352 Dec 25 10:44 rss.gif
    -rwxrwxrwx 1 root everyone 369 Dec 25 10:44 status-sel.gif
    -rwxrwxrwx 1 root everyone 568 Dec 25 10:44 status.gif
    -rwxrwxrwx 1 root everyone 189 Dec 25 10:44 stop.gif
    -rwxrwxrwx 1 root everyone 3 Dec 25 10:44 strings-chs.txt
    -rwxrwxrwx 1 root everyone 4 Dec 25 10:44 strings-cht.txt
    -rwxrwxrwx 1 root everyone 3 Dec 25 10:44 strings-de.txt
    -rwxrwxrwx 1 root everyone 4 Dec 25 10:44 strings-en.txt
    -rwxrwxrwx 1 root everyone 4 Dec 25 10:44 strings-es.txt
    -rwxrwxrwx 1 root everyone 4 Dec 25 10:44 strings-fi.txt
    -rwxrwxrwx 1 root everyone 5 Dec 25 10:44 strings-fr.txt
    -rwxrwxrwx 1 root everyone 3 Dec 25 10:44 strings-it.txt
    -rwxrwxrwx 1 root everyone 42 Dec 25 10:44 strings-jp.txt
    -rwxrwxrwx 1 root everyone 3 Dec 25 10:44 strings-ko.txt
    -rwxrwxrwx 1 root everyone 4 Dec 25 10:44 strings-nl.txt
    -rwxrwxrwx 1 root everyone 1753 Dec 25 10:44 transcoding.db
    -rwxrwxrwx 1 root everyone 101 Dec 25 10:44 tri-blau.gif
    -rwxrwxrwx 1 root everyone 9449 Dec 25 10:44 twonkyicon-120x120.jpg
    -rwxrwxrwx 1 root everyone 5709 Dec 25 10:44 twonkyicon-120x120.png
    -rwxrwxrwx 1 root everyone 3014 Dec 25 10:44 twonkyicon-48x48.jpg
    -rwxrwxrwx 1 root everyone 2149 Dec 25 10:44 twonkyicon-48x48.png
    -rwxrwxrwx 1 root everyone 5443 Dec 25 10:44 twonkyicon-80x80.jpg
    -rwxrwxrwx 1 root everyone 1716 Dec 25 10:44 twonkymedia.gif
    -rwxrwxrwx 1 root everyone 381 Dec 25 10:44 video-sel.gif
    -rwxrwxrwx 1 root everyone 608 Dec 25 10:44 video.gif
    drwxrwxrwx 2 root everyone 29 Dec 25 10:44 views
    -rwxrwxrwx 1 root everyone 2209 Dec 25 10:44 wait.gif
    -rwxrwxrwx 1 root everyone 1707 Dec 25 10:44 wait.htm
    -rwxrwxrwx 1 root everyone 1262 Dec 25 10:44 webbrowse-back.gif
    -rwxrwxrwx 1 root everyone 1138 Dec 25 10:44 webbrowse-e61-back.gif
    -rwxrwxrwx 1 root everyone 1215 Dec 25 10:44 webbrowse-e61-home.gif
    -rwxrwxrwx 1 root everyone 1147 Dec 25 10:44 webbrowse-e61-logo.gif
    -rwxrwxrwx 1 root everyone 1144 Dec 25 10:44 webbrowse-e61-next.gif
    -rwxrwxrwx 1 root everyone 871 Dec 25 10:44 webbrowse-e61-play.gif
    -rwxrwxrwx 1 root everyone 1149 Dec 25 10:44 webbrowse-e61-prev.gif
    -rwxrwxrwx 1 root everyone 1012 Dec 25 10:44 webbrowse-e61-upload.gif
    -rwxrwxrwx 1 root everyone 3258 Dec 25 10:44 webbrowse-e61.css
    -rwxrwxrwx 1 root everyone 831 Dec 25 10:44 webbrowse-home.gif
    -rwxrwxrwx 1 root everyone 1207 Dec 25 10:44 webbrowse-logo.gif
    -rwxrwxrwx 1 root everyone 1359 Dec 25 10:44 webbrowse-mobile.gif
    -rwxrwxrwx 1 root everyone 1113 Dec 25 10:44 webbrowse-n95-back.gif
    -rwxrwxrwx 1 root everyone 1191 Dec 25 10:44 webbrowse-n95-home.gif
    -rwxrwxrwx 1 root everyone 1117 Dec 25 10:44 webbrowse-n95-next.gif
    -rwxrwxrwx 1 root everyone 871 Dec 25 10:44 webbrowse-n95-play.gif
    -rwxrwxrwx 1 root everyone 1119 Dec 25 10:44 webbrowse-n95-prev.gif
    -rwxrwxrwx 1 root everyone 1012 Dec 25 10:44 webbrowse-n95-upload.gif
    -rwxrwxrwx 1 root everyone 3091 Dec 25 10:44 webbrowse-n95.css
    -rwxrwxrwx 1 root everyone 530 Dec 25 10:44 webbrowse-next.gif
    -rwxrwxrwx 1 root everyone 1475 Dec 25 10:44 webbrowse-pc.gif
    -rwxrwxrwx 1 root everyone 871 Dec 25 10:44 webbrowse-play.gif
    -rwxrwxrwx 1 root everyone 529 Dec 25 10:44 webbrowse-prev.gif
    -rwxrwxrwx 1 root everyone 1138 Dec 25 10:44 webbrowse-psp-back.gif
    -rwxrwxrwx 1 root everyone 1215 Dec 25 10:44 webbrowse-psp-home.gif
    -rwxrwxrwx 1 root everyone 1147 Dec 25 10:44 webbrowse-psp-logo.gif
    -rwxrwxrwx 1 root everyone 1144 Dec 25 10:44 webbrowse-psp-next.gif
    -rwxrwxrwx 1 root everyone 871 Dec 25 10:44 webbrowse-psp-play.gif
    -rwxrwxrwx 1 root everyone 0 Dec 25 10:44 webbrowse-psp-prev.gif
    -rwxrwxrwx 1 root everyone 0 Dec 25 10:44 webbrowse-psp-upload.gif
    -rwxrwxrwx 1 root everyone 3539 Dec 25 10:44 webbrowse-psp.css
    -rwxrwxrwx 1 root everyone 1374 Dec 25 10:44 webbrowse-settings.gif
    -rwxrwxrwx 1 root everyone 1354 Dec 25 10:44 webbrowse-upload.gif
    -rwxrwxrwx 1 root everyone 3279 Dec 25 10:44 webbrowse.css
    -rwxrwxrwx 1 root everyone 10390 Dec 25 10:44 website-bg.gif

    /harddisk/volume_1/data/rc.d/twonky50/actual/resources/views:
    -rwxrwxrwx 1 root everyone 18166 Dec 25 10:44 default.view.xml
    $
     
  7. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Oops! You didn't change the owner on that one...

    That file should be MUCH bigger.

    You're right; you're ALMOST there :)

    ===Jac
     
  8. johnd2

    johnd2 Addicted to LI Member

    Opps yes you are correct. I copied over the twonkymeidaserver file after I changed the permission. But now I am getting another odd problem. I copy over the twonkymeidaserver file which shows up on my pc as 685,048 after I FTP it over as binary the file transfers fully at 685,048 then a few seconds later the file size drops down to 571. Do you know what can cause that.

    Have other question once I get this working hopefully. How do you start the twonky web gui and what are the advantages of using it over linksys gui.

    Thanks again for you help. Almost there I hope.
     
  9. johnd2

    johnd2 Addicted to LI Member

    JAC,

    Disregard last post I just copied it via windows and it copied just fine. Started it up and now seeing this.

    $ /etc/rc.d/twonkymedia.sh start
    Starting /harddisk/volume_1/data/rc.d/twonky50/twonkymediaserver ... TwonkyMedia
    Version 5.0.40
    using logile /tmp/TwonkyMediaServer-log.txt
    could not create DataDir "/root/.TwonkyMediaServer"
    using g_strEXEDir "/harddisk/volume_1/data/rc.d/twonky50/actual" instead

    So I guess its working.

    Still have one more questions though:
    How do you start the twonky web gui and what are the advantages of using it over linksys gui.

    Thank again for you help.
    john
     
  10. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Yes it's safe to ignore this warning. The /root path doesn't exist on the NAS200 so it's using the working directory to store the database. That's fine.

    In your startup script, add "-enableweb 2" (without the quotes) to the command.

    The Twonky web GUI will give you more control over your server than the Linksys web GUI, and it will even allow you to upload media to the NAS200 (though I have to say I never tried this).

    Even without the web GUI, it's possible to control the Twonky server using Twonky Media Manager on a PC.

    ===Jac
     
  11. johnd2

    johnd2 Addicted to LI Member

    Thanks again a few more questions then I think I will be done.

    How do I start up the Twonky Web GUI. When I try to bring it up via port 9000 http://MyLinksys:9000/ I get "Access is restricted to MediaServer configuration!"
    My startup script is below and it already has -enableweb 2:

    $(dirname "$0")/actual/twonkymediaserver $* -enableweb 2

    Last question I hope: lol
    How would I verify that it running the new version? It started before in the new directory but now I see it running again in /etc.

    $ ps au
    PID Uid VmSize Stat Command
    1 root 200 S init
    2 root SWN [ksoftirqd/0]
    3 root SW [watchdog/0]
    4 root SW< [events/0]
    5 root SW< [khelper]
    6 root SW< [kthread]
    40 root SW< [kblockd/0]
    41 root SW< [ata/0]
    42 root SW< [ata_aux]
    43 root SW< [ksuspend_usbd]
    46 root SW< [khubd]
    48 root SW< [kseriod]
    73 root SW [pdflush]
    74 root SW [pdflush]
    75 root SW< [kswapd0]
    76 root SW< [aio/0]
    77 root SW< [xfslogd/0]
    78 root SW< [xfsdatad/0]
    209 root SW< [scsi_eh_0]
    210 root SW< [scsi_eh_1]
    229 root SW [mtdblockd]
    271 root SW< [kmmcd]
    472 root 168 S lld2d eth0
    1658 root SW< [xfsbufd]
    1659 root SW< [xfssyncd]
    1795 root SW< [xfsbufd]
    1796 root SW< [xfssyncd]
    1926 root 560 S upnpd &>/dev/null
    1933 root 272 S CheckHDDPower
    1958 root 560 S upnpd &>/dev/null
    1959 root 560 S upnpd &>/dev/null
    1961 root 560 S upnpd &>/dev/null
    1963 root 272 S /usr/sbin/thttpd -C /etc/thttpd.conf
    1968 root 560 S upnpd &>/dev/null
    1982 root 44 S /usr/sbin/download
    1988 root 172 S /usr/sbin/inetd
    1993 root 208 S /usr/sbin/QuickSet
    1995 root 96 S /usr/sbin/USB_Detect
    1996 root 124 S /usr/sbin/USB_Detect
    2000 root 20 S /usr/sbin/ResetButton
    2002 root 40 S /usr/sbin/PowerButton
    2004 root 140 S < /usr/sbin/backup_button
    2006 root 112 S /usr/sbin/do_umount
    2008 root 48 S < /usr/sbin/USBButton
    2069 root 24 S /usr/sbin/init_media
    2070 root 124 S sh -c /etc/rc.d/twonkymedia.sh start >/dev/null 2>&1
    2076 root 148 S /bin/sh /etc/rc.d/twonkymedia.sh start
    2083 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2088 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2089 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2090 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2091 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2092 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2093 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2095 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    2120 root 152 S /usr/sbin/CheckHDDDrive
    2132 root 456 S /usr/sbin/smbd -D
    2135 root 44 S /usr/sbin/smbd -D
    2136 root 532 S /usr/sbin/nmbd -D
    2138 root 52 S init
    2140 root 4396 S /etc/twonkymediaserver -inifile /etc/twonkyvision-med
    4841 root 560 S upnpd &>/dev/null
    5807 root 4456 S /usr/sbin/smbd -D
    8272 root 284 S /usr/sbin/crond
    9723 root 256 S /sbin/udhcpc -H JD_NAS
    9945 root 1948 S /usr/sbin/smbd -D
    9973 root 564 S /usr/sbin/telnetd -l /bin/sh
    9974 root 672 S /bin/sh
    9975 root 624 R ps au
    $
     
  12. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Apparently for some reason your startup script is once again not found by /etc/rc.d/twonkymedia.sh ...

    The only reason to verify it is to manually start it from the command line by typing "/etc/rc.d/twonkymedia.sh start", and/or to check the output from the ps command.

    You can test if your script has the correct access rights by typing something like
    Code:
    [ -x /harddisk/volume_1/data/rc.d/twonky*/twonkymediaserver ] && echo Should work... || echo Sorry, won't work
    
    ===Jac
     
  13. johnd2

    johnd2 Addicted to LI Member

    Jac thanks again for your help.

    When I try to access http://mylinksys:9000 I get Mediaserver restricted access
    Is that how I am suppose to access the web GUI?

    ok here is the script not sure why it won't run:
    $ cat twonkymediaserver
    $(dirname "$0")/actual/twonkymediaserver $* -enableweb 2$

    Here are the permissions:
    $ ls -lR /harddisk/volume_1/data/rc.d/twonky*
    /harddisk/volume_1/data/rc.d/twonky50:
    drwxrwxrwx 9 root everyone 4096 Dec 30 09:28 actual
    -rwxrwxrwx 1 root everyone 56 Dec 25 17:13 twonkymediaserver

    When I run your test script to check permissions I get this:
    $ -x /harddisk/volume_1/data/rc.d/twonky*/twonkymediaserver
    /bin/sh: -x: not found
     
  14. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Yes.

    Looks like your script doesn't end in a line feed. Not sure if that matters.

    Try changing -enableweb 2 into -enableweb 3 as well...

    Sorry, I'm away from home until next week, I can't test it myself. Either way, as I said, if you use the Twonky Media Manager, you'll be able to control most of the configuration settings remotely.

    Looks good...

    Looks like you didn't copy the whole thing. The square brackets and everything behind it are part of the command.

    Either way, you should get a pretty good idea of what happens if you run "/etc/rc.d/twonkymedia.sh start" from the command line.

    ===Jac
     
  15. johnd2

    johnd2 Addicted to LI Member

    Hi Jac,

    Please let me know when you back so you can test the script. I still can't get the Twonky GUI to work and I prefer not to use the Twonky media manger.

    Thanks again for your help.
     
  16. johnd2

    johnd2 Addicted to LI Member

    Jac,

    Thanks again for your great help. Once I rebooted my NAS I was able to get to the Linksys web page.
     
  17. jac_goudsmit

    jac_goudsmit Super Moderator Staff Member Member

    Cool!

    On the next version I will try to find a way to make it easier to install an updated Twonky.

    ===Jac
     

Share This Page