Installing No-IP client on Raspian

Download client:

wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz

Extract file:

tar -xvf noip-duc-linux.tar.gz

Change diraectory:

cd noip-2.1.9-1/

Compile it:

make
sudo make install

Run it and test it:

sudo /usr/local/bin/noip2 -C

Set it to start at boot. First, edit the file:

sudo nano /etc/init.d/noip2

And change it to:

#-------

#! /bin/sh
# /etc/init.d/noip

### BEGIN INIT INFO
# Provides: noip
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Simple script to start a program at boot
# Description: A simple script from www.stuffaboutcode.com which will start / stop a program a boot / shutdown.
### END INIT INFO

# If you want a command to always run, put it here

# Carry out specific functions when asked to by the system
case "$1" in
 start)
 echo "Starting noip"
 # run application you want to start
 /usr/local/bin/noip2
 ;;
 stop)
 echo "Stopping noip"
 # kill application you want to stop
 killall noip2
 ;;
 *)
 echo "Usage: /etc/init.d/noip {start|stop}"
 exit 1
 ;;
esac

exit 0

#-------

Set permissions on file:

sudo chmod 755 /etc/init.d/noip2

Set it to be executed on boot:

sudo update-rc.d noip2 defaults

Restart your Raspberry Pi and check if its working.

Advertisements

One thought on “Installing No-IP client on Raspian”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s