Now we will write a simple start up script so the client will start when the computer starts.
sudo nano /etc/init.d/noip
Copy and paste all the following lines (between the long ##### lines) into the file you have just started. (If you are using putty from within windows you can use ctrl-c to copy then in the putty terminal either right cick or use shift-ins to paste
#######################################################
#! /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
#######################################################
Now exit and save. ctrl-x to exit and y to save.
You should be able to test the startup scripts with
sudo /etc/init.d/noip stop
sudo /etc/init.d/noip start
Now we reset the persmissions so only the root user (ie the system itself) will run the programs from within the start up procedure
sudo chmod 700 /usr/local/bin/noip2
sudo chown root:root /usr/local/bin/noip2
sudo chmod 700 /etc/init.d/noip
sudo chown root:root /etc/init.d/noip
sudo chmod 700 /usr/local/etc/no-ip2.conf
sudo chown root:root /usr/local/etc/no-ip2.conf
Now we will add the the noip start script to the ubuntu startup process
sudo nano /etc/rc.local
In the line above "exit 0" add the following line
/etc/init.d/noip start
In order for the client to work you will need to open port 8245 through to the server. The way you do this depends on your modem/router. This is called port forwarding. If you need help with port forwarding go to: www.portforward.com
Finally after all this your servers should be available from everywhere at
http://<your_noip_user_name>.no-ip.biz
Obviously in addition tot he no-ip client port 8245 you will also need to open up ports for the services you are trying to run on your home server. Port 80 for a web server for example
If you had installed the Ubuntu LAMP server as described in the link I gave at the top you can check if its working by going to your site and you should see the ubuntu apache default web page saying something like "Its working"
Please note that since No-IP is a free service they will prune unused ip addresses every thirty days. You will be warned of this at the email address you gave and you can log back into No-IP to keep the address live. As per the No-IP website "Free hostnames must be updated every 30 days in order to keep them active. We do this to keep our network clear of unused hostnames. We send frequent notifications via email to remind you to update your hostname, or you can manually update your hostname by logging in to your No-IP account and clicking the “Hosts/Redirects” tab, click “Modify” next to the hostname you would like to update and click “Update” at the bottom right."