Compile, Install, Configure and make start on boot the noip.com client in Raspbian

First sign up for a no-ip account in http://www.noip.com/ and create a hostname for your Raspberry Pi.

In your Raspberry Pi download the Linux client from http://www.noip.com/download?page=linux, uncompress, compile and install it:

wget http://www.noip.com/client/linux/noip-duc-linux.tar.gz
tar xzvpf noip-duc-linux.tar.gz
cd `find . -name "noip-[0-9]*"`
make
sudo make install

Once the client is installed it’s time to configure it by running this command:

sudo /usr/local/bin/noip2 -C

It will ask for your internet interface, login/email of your account at noip.com, your password, the domain you want to configure (if you only have one the client will take it by default) and the update interval (which you should leave it to 30). Now that the client is configured you can run it this way:

sudo /usr/local/bin/noip2

DNS records don’t work right away because they need some time to propagate, so you’ll have to wait a little bit. You can check if it works using the ping command:

ping your-domain.no-ip.org
PING your-domain.no-ip.org (W.X.Y.Z) 56(84) bytes of data.
64 bytes from Z.W-X-Y.blabla.com (W.X.Y.Z): icmp_req=1 ttl=64 time=0.203 ms

If you want to run the client at boot time (which you’ll probably want…) create an init.d script file in /etc/init.d/noip2 with this content:

#! /bin/sh

### BEGIN INIT INFO
# Provides:          noip2
# Required-Start:    $syslog
# Required-Stop:     $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: noip.com client service
### END INIT INFO

# . /lib/lsb/init-functions
case "$1" in
    start)
        echo "Starting noip2."
        /usr/local/bin/noip2
    ;;
    stop)
        echo "Shutting down noip2."
        killall noip2
        #killproc /usr/local/bin/noip2
    ;;
    *)
        echo "Usage: $0 {start|stop}"
        exit 1
esac

exit 0

Then give it executable permissions and update the rc.d scripts:

sudo chmod +x /etc/init.d/noip2
sudo update-rc.d noip2 defaults

Now you can reboot your Raspberry Pi and it will automatically update it’s ip at noip on boot.

Ref: http://www.noip.com/support/knowledgebase/installing-the-linux-dynamic-update-client/

You might also like

Make Raspbian run from an external USB hard drive or USB memory stick
Raspberry Pi can ONLY boot from the SD Card. If you want to use your Raspberry Pi from an external USB...
TP-Link TL-WN725N version 2 in Raspberry Pi
Version 2 of TP-Link TL-WN725N driver doesn't come by default in Raspbian so it won't work by just plug-ining...
Compile and install driver for TP-Link TL-WN725N version 2 in Raspbian
NOTICE! This module is now deprecated as for kernel >= 3.10.0. If you update with rpi-update the module...
Install Raspbian RAW image into an SD Card in Mac OS X
First download a Raspbian RAW image from here: http://www.raspberrypi.org/downloads Plug-in your SD...
Leave a comment ?

0 Comments.

Leave a Comment