Follow me on Twitter Twitter_16
Subscribe to my RSS feed Rss_16
Posted over 6 years ago

How to get noip client working in Ubuntu 11.04

noip is a tool to set up a DNS entry that routes to your dynamic IP provided by your ISP. It works by providing you a client that runs on your machine that updates the service on with you IP on a regular interval.

I spent awhile figuring out how to set this up to start automatically on my server and I thought I’d share. The README that comes with the client is helpful, but a bit out of date.

This script is provided for the in the readme but I had to make a small change (see my comment)

	#! /bin/sh
	# . /etc/rc.d/init.d/functions	# uncomment/modify for your killproc
	case "$1" in
		echo "Starting noip2."
		echo -n "Shutting down noip2."
		killproc -n /usr/local/bin/noip2 # I edited this line
		echo "Usage: $0 {start|stop}"
		exit 1
	exit 0

1) Copy the above script to /etc/init.d/noip

2) Run the following commands:

chmod 755 /etc/init.d/noip #Give the script execute permissions for root.
update-rc.d noip defaults #Runs the script on boot/shutdown.
#Install killproc
sudo apt-get install python-setuptools
easy_install killproc

3) Test the script

# /etc/init.d/noip start
Starting noip2.
# ps aux | grep noip
nobody    2703  0.0  0.0   2228   812 ?        Ss   21:03   0:00 /usr/local/bin/noip2
root      2705  0.0  0.0   4156   860 pts/0    S+   21:04   0:00 grep --color=auto noip
# /etc/init.d/noip stop
Shutting down noip2.[2703] /usr/local/bin/noip2
Sent signal SIGTERM to 1 processes
# ps aux | grep noip
root      2711  0.0  0.0   4156   860 pts/0    S+   21:04   0:00 grep --color=auto noip

…and there you go!

comments powered by Disqus