WD Worldbook Database Links do not follow dyndns.com url

Other OS or NAS discussions
Post Reply
Undermoose
Posts:6
Joined:Sat Nov 21, 2009 4:07 am
AV Hardware:Windows 7, Linksys WRT610N, Western Digital Worldbook (white light).
WD Worldbook Database Links do not follow dyndns.com url

Post by Undermoose » Sat Nov 21, 2009 4:12 am

I have a WD Worldbook (White Bar) edition, production date Sept. 2009. Version 5.1 of Twonky.

I've read several posts on this topic on Twonky forums and they suggest editing the ini files or bypassing the ini files and using the command line switch.

Nothing is working.

One thing that I've never seen mentioned is that the top level links follow the dns properly, it's only the links to the database listings that do not.

So the real question seems to be, what's the module that's creating the DB and how do we change it to follow the dyndns.com url rather than the local IP.

Answer me that riddle if you will please :mrgreen:

mmalitz
Posts:6
Joined:Sun Nov 22, 2009 5:58 pm
AV Hardware:WDTV live
NAS: WD My Book World Edition II (white light)

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by mmalitz » Mon Nov 23, 2009 9:47 pm

which ini-files did you try to edit?

Undermoose
Posts:6
Joined:Sat Nov 21, 2009 4:07 am
AV Hardware:Windows 7, Linksys WRT610N, Western Digital Worldbook (white light).

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by Undermoose » Tue Nov 24, 2009 12:36 am

Thank you for the reply.

I started out trying to modify: twonkyvision-mediaserver.ini in the \root\twonky folder and adding the dyndns name plus http.

Then I tried modifying: twonkymedia-server-default.ini by adding the dyndns domain.

Twonkymedia.cfg holds the internal ip http string but reverts.

It's been a week or so since I did this, and I'm not 100 percent positive I edited the right spot. Last in etc/init.d/ on my system there is a 97twonkyserver file this is where I tried the command line switches (reverted to default in this post), it reads:

Code: Select all


#!/bin/sh
#
# MediaServer Control File written by Itzchak Rehberg
# Modified for fedora/redhat by Landon Bradshaw <phazeforward@gmail.com>
# Adapted to TwonkyMedia 3.0 by TwonkyVision GmbH
# Adapted to TwonkyMedia 4.0 by TwonkyVision GmbH
# Adapted to TwonkyMedia 5.0 by PacketVideo
#
# This script is intended for SuSE and Fedora systems.
#
#
###############################################################################
#
### BEGIN INIT INFO
# Provides:       twonkyserver
# Required-Start: $network $remote_fs
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Description:    TwonkyMedia UPnP server
### END INIT INFO
#
# Comments to support chkconfig on RedHat/Fedora Linux
# chkconfig: 345 71 29
# description: TwonkyMedia UPnP server
#
#==================================================================[ Setup ]===

WORKDIR="/twonky"
PIDFILE=/mnt/ram/mediaserver.pid

#=================================================================[ Script ]===

# Source function library.
if [ -f /etc/rc.status ]; then
  # SUSE
  . /etc/rc.status
  rc_reset
else
  # Reset commands if not available
  rc_status() {
    case "$1" in
	-v)
	    true
	    ;;
	*)
	    false
	    ;;
    esac
    echo
  }
  alias rc_exit=exit
fi

DAEMON=twonkymedia
TWONKYSRV="${WORKDIR}/${DAEMON}"

INIFILE="${WORKDIR}/twonkyvision-mediaserver.ini"

cd $WORKDIR

case "$1" in
  start)
    if [ -e $PIDFILE ]; then
      PID=`cat $PIDFILE`
      echo "TwonkyMedia server seems already be running under PID $PID"
      echo "(PID file $PIDFILE already exists). Checking for process..."
      running=`ps --no-headers -o "%c" -p $PID`
      if ( [ "${DAEMON}" == "${running}" ] ); then
        echo "Process IS running. Not started again."
      else
        echo "Looks like the daemon crashed: the PID does not match the daemon."
        echo "Removing flag file..."
        rm $PIDFILE
        $0 start
        exit $?
      fi
      exit 0
    else
      if [ ! -x "${TWONKYSRV}" ]; then
	  echo "TwonkyMedia server not found".
	  rc_status -u
	  exit $?
      fi
      route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
      echo -n "Starting $TWONKYSRV ... "
      $TWONKYSRV -D -inifile "${INIFILE}" -appdata /DataVolume/jewab/twonkymedia.db -logfile /DataVolume/jewab/twonkymedia.logs
      rc_status -v
    fi
  ;;
  stop)
    if [ ! -e $PIDFILE ]; then
      echo "PID file $PIDFILE not found, stopping server anyway..."
      killall -TERM twonkymedia
      rc_status -u
      exit 3
    else
      echo -n "Stopping Twonky MediaServer ... "
      PID=`cat $PIDFILE`
      kill -TERM $PID
      rm -f $PIDFILE
      rc_status -v
    fi
  ;;
  reload)
    if [ ! -e $PIDFILE ]; then
      echo "PID file $PIDFILE not found, stopping server anyway..."
      killall -TERM twonkymedia
      rc_status -u
      exit 3
    else
      echo -n "Reloading Twonky server ... "
      PID=`cat $PIDFILE`
      kill -HUP $PID
      rc_status -v
    fi
  ;;
  restart)
    $0 stop
    $0 start
  ;;
  status)
    if [ ! -e $PIDFILE ]; then
      running="`ps ax --no-headers | grep -e twonkymedia | grep -v grep | grep -v twonkymedia | cut -d ' ' -f 1`"
      if [ "${running}" == "" ]; then
        echo "No TwonkyMedia server is running"
      else
        echo "A TwonkyMedia server seems to be running with PID ${running}, but no PID file exists."
        echo "Probably no write permission for ${PIDFILE}."
      fi
      exit 0
    fi
    PID=`cat $PIDFILE`
    running=`ps --no-headers -o "%c" -p $PID`
    if ( [ "${DAEMON}"=="${running}" ] ); then
      echo "TwonkyMedia server IS running."
    else
      echo "Looks like the daemon crashed: the PID does not match the daemon."
    fi
  ;;
  *)
    echo ""
    echo "TwonkyMedia server"
    echo "------------------"
    echo "Syntax:"
    echo "  $0 {start|stop|restart|reload|status}"
    echo ""
    exit 3
  ;;
esac

rc_exit

If this is the right file, would you please confirm the proper edit in order for my Worldbook to hold my dyndns.com URL, if that's possible? :)
Last edited by Undermoose on Wed Nov 25, 2009 3:41 am, edited 1 time in total.

mmalitz
Posts:6
Joined:Sun Nov 22, 2009 5:58 pm
AV Hardware:WDTV live
NAS: WD My Book World Edition II (white light)

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by mmalitz » Tue Nov 24, 2009 6:09 pm

hey, this looks promising.

By the way: How did you manage to access the WD Worldbook in SSH-mode / as root?
I activated SSH in the configuration section of my WD My Book World Edition (new firmware) - where it says the password is welc0me - but when I try to log in as "root" using that password I get an error message / invalid user or password...
Last edited by mmalitz on Tue Nov 24, 2009 10:07 pm, edited 1 time in total.

Undermoose
Posts:6
Joined:Sat Nov 21, 2009 4:07 am
AV Hardware:Windows 7, Linksys WRT610N, Western Digital Worldbook (white light).

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by Undermoose » Tue Nov 24, 2009 8:49 pm

I use WinSCP with root account with welc0me. I am also able to putty in without a problem.

With WinSCP I copy the files to my hard disk, edit with Notepad, then copy them back to the Worldbook (overwriting). Their files have some chinese characters in them, so you'll need to do it this way I think, unless you know a better way. I'm using Windows7 which seems to recogize the chinese characters lol.

Undermoose
Posts:6
Joined:Sat Nov 21, 2009 4:07 am
AV Hardware:Windows 7, Linksys WRT610N, Western Digital Worldbook (white light).

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by Undermoose » Wed Nov 25, 2009 3:50 am

I editied my code post above to put this web site's code tags in place. Nice feature.

Here is my twonkyvision-mediaserver.ini code (which I edit in Win7 notepad). Not everything reverts when I edit this file oddly. Forexample I can modify the ports ok via this file, but the dyndns section reverts every time.

Code: Select all

#! TwonkyVision ini file / charset UTF-16਍⌀℀ 挀栀愀渀最攀 猀攀琀琀椀渀最猀 戀礀 挀漀洀洀愀渀搀氀椀渀攀 漀爀 戀礀 攀搀椀琀椀渀最 琀栀椀猀 昀椀氀攀ഀ
#! version 5.1਍嬀洀愀椀渀崀ഀ
# accessuser਍愀挀挀攀猀猀甀猀攀爀㴀䨀䬀䰀ഀ
਍⌀ 愀挀挀攀猀猀瀀眀搀ഀ
accesspwd=::ChangedforTwonkyForumPublicPosting਍ഀ
# autotree਍愀甀琀漀琀爀攀攀㴀㌀ഀ
਍⌀ 挀愀挀栀攀搀椀爀ഀ
cachedir=/DataVolume/jewab/twonkymedia.db/cache਍ഀ
# cachemaxsize਍挀愀挀栀攀洀愀砀猀椀稀攀㴀ഀ
਍⌀ 挀氀攀愀爀挀氀椀攀渀琀猀漀渀爀攀猀琀愀爀琀ഀ
clearclientsonrestart=0਍ഀ
# Enable sharing for new media receivers automatically਍挀氀椀攀渀琀愀甀琀漀攀渀愀戀氀攀㴀㄀ഀ
਍⌀ 挀漀搀攀瀀愀最攀ഀ
codepage=932਍ഀ
# Compilation directories਍挀漀洀瀀椀氀愀琀椀漀渀猀搀椀爀㴀䌀漀洀瀀椀氀愀琀椀漀渀猀Ⰰ匀愀洀瀀氀攀爀ഀ
਍⌀ 挀漀渀琀攀渀琀戀愀猀攀ഀ
contentbase=/DataVolume/Public਍ഀ
# Content Locations਍挀漀渀琀攀渀琀搀椀爀㴀⬀䴀簀⼀匀栀愀爀攀搀 䴀甀猀椀挀Ⰰ⬀嘀簀⼀匀栀愀爀攀搀 嘀椀搀攀漀猀Ⰰ⬀倀簀⼀匀栀愀爀攀搀 倀椀挀琀甀爀攀猀ഀ
਍⌀ 搀戀搀椀爀ഀ
dbdir=/DataVolume/jewab/twonkymedia.db਍ഀ
# dyndns਍搀礀渀搀渀猀㴀ഀ
਍⌀ 攀渀愀戀氀攀眀攀戀ഀ
enableweb=2਍ഀ
# followlinks਍昀漀氀氀漀眀氀椀渀欀猀㴀 ഀ
਍⌀ 匀攀爀瘀攀爀 渀愀洀攀ഀ
friendlyname=WORLDBOOK਍ഀ
# HTTP Server Port਍栀琀琀瀀瀀漀爀琀㴀ഀ
਍⌀ 栀琀琀瀀爀攀洀漀琀攀瀀漀爀琀ഀ
httpremoteport=਍ഀ
# ignoredir਍椀最渀漀爀攀搀椀爀㴀䄀瀀瀀氀攀䐀漀甀戀氀攀Ⰰ䄀瀀瀀氀攀䐀䈀Ⰰ䄀瀀瀀氀攀䐀攀猀欀琀漀瀀Ⰰ吀攀洀瀀漀爀愀爀礀䤀琀攀洀猀ഀ
਍⌀ 椀瀀ഀ
ip=਍ഀ
# ituneslib਍椀琀甀渀攀猀氀椀戀㴀ഀ
਍⌀ 䰀愀渀最甀愀最攀ഀ
language=en਍ഀ
# rtpport਍爀琀瀀瀀漀爀琀㴀ഀ
਍⌀ 刀攀猀琀愀爀琀 漀渀 一䤀䌀 挀栀愀渀最攀猀ഀ
nicrestart=1਍ഀ
# platform਍瀀氀愀琀昀漀爀洀㴀愀爀洀开洀愀爀瘀攀氀氀开氀攀开猀漀昀琀昀氀漀愀琀开漀攀洀ഀ
਍⌀ 刀攀猀挀愀渀 椀渀 洀椀渀甀琀攀猀ഀ
scantime=-1਍ഀ
# startupmb਍猀琀愀爀琀甀瀀洀戀㴀 ഀ
਍⌀ 猀琀爀攀愀洀戀甀昀昀攀爀ഀ
streambuffer=16384਍ഀ
# enable upload਍甀瀀氀漀愀搀攀渀愀戀氀攀搀㴀㄀ഀ
਍⌀ 甀瀀氀漀愀搀洀甀猀椀挀搀椀爀ഀ
uploadmusicdir=/DataVolume/Public/Shared Music਍ഀ
# uploadpicturedir਍甀瀀氀漀愀搀瀀椀挀琀甀爀攀搀椀爀㴀⼀䐀愀琀愀嘀漀氀甀洀攀⼀倀甀戀氀椀挀⼀匀栀愀爀攀搀 倀椀挀琀甀爀攀猀ഀ
਍⌀ 甀瀀氀漀愀搀瘀椀搀攀漀搀椀爀ഀ
uploadvideodir=/DataVolume/Public/Shared Videos਍ഀ
# onlinedir਍漀渀氀椀渀攀搀椀爀㴀⼀䐀愀琀愀嘀漀氀甀洀攀⼀樀攀眀愀戀⼀琀眀漀渀欀礀洀攀搀椀愀⸀搀戀⼀琀眀漀渀欀礀洀攀搀椀愀ⴀ猀攀爀瘀攀爀ⴀ漀渀氀椀渀攀ⴀ搀愀琀愀ഀ
਍⌀ 瘀ഀ
v=0਍ഀ
# webnodes਍眀攀戀渀漀搀攀猀㴀䴀倀嘀ഀ
਍⌀ 眀攀戀瀀椀挀琀甀爀攀渀甀洀ഀ
webpicturenum=0਍ഀ
# mediastatisticsenabled਍洀攀搀椀愀猀琀愀琀椀猀琀椀挀猀攀渀愀戀氀攀搀㴀 ഀ
਍⌀ 洀攀搀椀愀猀琀愀琀椀猀琀椀挀猀搀椀爀ഀ
mediastatisticsdir=/DataVolume/jewab/twonkymedia.db/media-statistics/਍ഀ
# defaultview਍搀攀昀愀甀氀琀瘀椀攀眀㴀愀搀瘀愀渀挀攀搀搀攀昀愀甀氀琀ഀ
਍⌀ 戀最琀爀愀渀猀ഀ
bgtrans=JPEG=0,MP3=0,MPEG2=0,MPEG4=0,Flash=0਍ഀ
# bgtransdir਍戀最琀爀愀渀猀搀椀爀㴀⼀䐀愀琀愀嘀漀氀甀洀攀⼀樀攀眀愀戀⼀琀眀漀渀欀礀洀攀搀椀愀⸀搀戀⼀琀眀漀渀欀礀洀攀搀椀愀ⴀ猀攀爀瘀攀爀ⴀ琀爀愀渀猀挀漀搀椀渀最ⴀ搀愀琀愀ഀ
਍⌀ 戀最琀爀愀渀猀爀瀀挀瀀漀爀琀ഀ
bgtransrpcport=9030਍ഀ
# bgtransmaxsizemb਍戀最琀爀愀渀猀洀愀砀猀椀稀攀洀戀㴀㄀    ഀ
਍⌀ 爀洀搀爀椀瘀攀猀ഀ
rmdrives=਍ഀ
# rmhomedrive਍爀洀栀漀洀攀搀爀椀瘀攀㴀⼀䐀愀琀愀嘀漀氀甀洀攀⼀樀攀眀愀戀⼀琀眀漀渀欀礀洀攀搀椀愀⸀搀戀ഀ
਍⌀ 䄀甀琀漀ⴀ猀栀愀爀攀 爀攀洀漀瘀愀戀氀攀 洀攀搀椀愀ഀ
rmautoshare=0਍ഀ
# ssdpttl਍猀猀搀瀀琀琀氀㴀㐀ഀ
਍⌀ 挀栀攀挀欀攀砀琀攀爀渀愀氀椀琀攀洀猀ഀ
checkexternalitems=਍ഀ
# maxitems਍洀愀砀椀琀攀洀猀㴀 ഀ
਍⌀ 猀甀瀀瀀爀攀猀猀洀攀渀甀ഀ
suppressmenu=਍ഀ

mmalitz
Posts:6
Joined:Sun Nov 22, 2009 5:58 pm
AV Hardware:WDTV live
NAS: WD My Book World Edition II (white light)

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by mmalitz » Wed Nov 25, 2009 10:54 am

Thanks for your WinSCP hint for SSH access.

Did you find any way to edit Twonky's standard folders? Pictures, Music, Video...

And did you find any files where albumart is managed?
I found an albumart_somecode.jpg in Twonky's cache folder.

Undermoose
Posts:6
Joined:Sat Nov 21, 2009 4:07 am
AV Hardware:Windows 7, Linksys WRT610N, Western Digital Worldbook (white light).

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by Undermoose » Sat Nov 28, 2009 6:54 pm

Right now I'm focused on one objective:

1. Find a way to make the Music Database Hyperlinks Follow The DynDNS URL rather than the internal IP address.

Once I get that part figured out I might actually use my music library on the device. Since it's password protected I could have it on the Internet and access it from my gym.

Can you make any suggestions from the INI files I posted to get this to work?

Undermoose
Posts:6
Joined:Sat Nov 21, 2009 4:07 am
AV Hardware:Windows 7, Linksys WRT610N, Western Digital Worldbook (white light).

Re: WD Worldbook Database Links do not follow dyndns.com url

Post by Undermoose » Fri Dec 18, 2009 5:09 pm

/bump

Post Reply