Thursday, September 12, 2013

How to Install No-IP On Ubuntu 13.04

no-ip : http://www.noip.com/
Reference : http://www.howtoforge.com/how-to-install-no-ip2-on-ubuntu-12.04-lts-in-order-to-host-servers-on-a-dynamic-ip-address
Installing No-IP
First create your No-IP account.
http://www.noip.com/newUser.php
Then download the No-IP client.
$ wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
$ tar -xzvf noip-duc-linux.tar.gz
$ cd noip-2.1.9-1
$ make install

You will configure the client for your No-IP web service.
Then create a simple start up script.
$ vim /etc/init.d/noip
   #! /bin/sh
   case "$1" in
    start)
        echo "Starting noip2"
        /usr/local/bin/noip2
    ;;
    stop)
        echo -n "Shutting down noip2"
        for i in `noip2 -S 2>&1 | grep Process | awk '{print $2}' | tr -d ','`
        do
          noip2 -K $i
        done
    ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
   esac
   exit 0
That you can use script to start up No-IP.
$ /etc/init.d/noip start
$ /etc/init.d/noip stop
If you will add the No-IP script to the Ubuntu start up process.
$ vim /etc/rc.local
   /etc/init.d/noip start
Now you can ssh [your_noip_user_name].no-ip.biz from everywhere.

No comments:

Post a Comment