Installing NO-IP on your Western Digital Mybook World Edition

Get your Mybook a host and domain name via no-ip dyndns service.

Approach you MyBook from all over the world, via world wide web ...
Dyndns is a good solution, your current MyBook IP address is monitored by a daemon who forwards it to a dyndns server, which updates the dns-server.

A lot of these services are for free !
One of these free services is http://www.no-ip.com.
Register at their website and add a host.

Install no-ip client software: http://www.no-ip.com/downloads.php?page=linux

# wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
# tar xzvf noip-duc-linux.tar.gz
# cd noip-2.1.7
# make
# make install

At the end of the installation a wizard is started:

Auto configuration for Linux client of no-ip.com.
Please enter the login/email string for no-ip.com: xxxxxxx
Please enter the password for user 'xxxxxxx' ********
Only one host [inktvis75.no-ip.org] is registered to this account.
It will be used.
Please enter an update interval:[30]
Do you wish to run something at successful update?[N] (y/N) N
New configuration file "/etc/no-ip.conf" created.

Start the daemon:

# /usr/local/bin/noip2

Enable the same port in your router, modem, as you defined in /etc/lighttpd/lighttpd.conf.

/etc/lighttpd/lighttpd.conf

...
server.port = 80
...

Auto system startup/shutdown

You can create a start/stop script

/etc/init.d/noip

#!/bin/sh
# Description: Start / Stop No-IP service

PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
NAME="No-IP"
DESC="DNS Services"

case "$1" in
  start)
    echo "Starting $DESC: $NAME."
    /usr/local/bin/noip2
    /usr/local/bin/noip2 -S
    echo " "
  ;;
  stop)
    echo -n "Stopping $DESC: $NAME"
    killall noip2
    echo "."
  ;;
  restart)
    $0 stop
    $1 start
  ;;
  show)
    /usr/local/bin/noip2 -S
  ;;
  *)
    N=/etc/init.d/$NAME
    echo "Usage: $N {start|stop|restart|show}" >&2
    exit 2
  ;;
esac

exit 0

Run at Startup

And run the following to have it startup and stop on system start/shutdown.
Give noip its access rights. Then make a symbolic link to stop the service when the MBWE is shutting down.

# cd /etc/init.d
# chmod 0700 /etc/init.d/noip
# chown root:root /etc/init.d/noip
# ln -s /etc/init.d/noip S97noip
# ln -s /etc/init.d/noip K04noip

The scripts in the directory /etc/init.d/ starting with S[number] are automatically run during system startup with parameter start.
The number defines the order the scripts are run.
Likewise, scripts starting with K[number] are run when the system is shutting down with parameter stop.


Hit Counter by Digits