Configuring in NO-IP in Raspberry Pi

Raspberry_Pi_Logo

Create an account at no-ip.com and set up a new host/redirect. Set up port forwarding and DDNS on your router.

Download No-Ip client

sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
sudo tar -vzxf noip-duc-linux.tar.gz
cd no-ip-2.1.9-1
sudo make
sudo make install

Create new file in /etc/init.d called noip2

sudo vim /etc/init.d/noip2

#! /bin/sh
### BEGIN INIT INFO
# Provides: testnoip
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Short-Description: Test daemon process
# Description:    Runs up the test daemon process
### END INIT INFO

# . /etc/rc.d/init.d/functions	# uncomment/modify for your killproc
case "$1" in
    start)
	echo "Starting noip2."
	/usr/local/bin/noip2
    ;;
    stop)
	echo -n "Shutting down noip2."
	killproc -TERM /usr/local/bin/noip2
    ;;
    *)
	echo "Usage: $0 {start|stop}"
	exit 1
esac
exit 0

Make script executable and run at startup

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

Reboot the rPi

sudo reboot

Happy Hacking 🙂

One thought on “Configuring in NO-IP in Raspberry Pi

  1. I get an error whem I use the chmod command, the error is:

    pi@(none) ~ $ sudo chmod 755 /etc/init.d/AutoStartNoip
    sudo: unable to resolve host (none)

Leave a comment