Page 1 of 1
WD Worldbook Database Links do not follow dyndns.com url
Posted: Sat Nov 21, 2009 4:12 am
by Undermoose
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

Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Mon Nov 23, 2009 9:47 pm
by mmalitz
which ini-files did you try to edit?
Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Tue Nov 24, 2009 12:36 am
by Undermoose
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?

Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Tue Nov 24, 2009 6:09 pm
by mmalitz
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...
Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Tue Nov 24, 2009 8:49 pm
by Undermoose
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.
Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Wed Nov 25, 2009 3:50 am
by Undermoose
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=à¨à´€
Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Wed Nov 25, 2009 10:54 am
by mmalitz
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.
Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Sat Nov 28, 2009 6:54 pm
by Undermoose
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?
Re: WD Worldbook Database Links do not follow dyndns.com url
Posted: Fri Dec 18, 2009 5:09 pm
by Undermoose
/bump