No-ip is a dynamic DNS service which is widely used by those people who do not have a static ip.Which is a majority of home users. Now a lot of home users now days use home servers which require them to access their pcs or servers from the internet.Now with a dynamic ip address this is not possible as the ip keeps changing and its not practical to keep remembering a new ip every day or whenever it changes.So an easy alternative is to use no ip , which offers you a domain name ( free or purchased depending on your choice ) . This domain name will always be linked to the current ip address of your machine , i.e. the no ip client would always be updating your domain name with the current ip.So for of those of you who have already have a no ip domain name and a no ip account and who wish to install the no ip client in linux (ubuntu ) then this tutorial is for you.So here's how you do it :

Unfortunately installing the no-ip client is kind of complicated as it involves manual typing of commands rather than a ready made .deb file which is so much more convenient.So follow these steps and you should be good to go :

Step 1 : Go to the Terminal(Applications->Accessories->Terminal) and type in the following commands
Step 2 : Now instead of explaining each command step by step , i think its better i just list out the commands , as they are self explanatory , if you type in these commands it should be good enough.Although in certain steps certain changes need to be made, i will let you know then..So here goes
Step 3 : Type the following commands in order
a)mkdir noip
b)cd noip
` c)wget http://no-ip.com/client/linux/noip-duc-linux.tar.gz
d)tar zvxf noip-duc-linux.tar.gz
e)cd noip-2.1.9-1 Read The NOTE , Yours maybe different
NOTE : Now in the above command you may need to make changes , once you type in command d) the tar.gz file would decompress making a folder . Now you need to know which folder it has created , this depends on the current version of noip you are installing.I am current installing noip-2.1.9-1 . YOurs maybe a different version. So to find out the name of the folder after typing command d) type ls or dir and you should see the name of the folder , in my case it is noip-2.1.9-1 , yours should be something of the form noip-x.x.x-1 or something.
prash@prash-desktop:~/noip$ ls
noip-2.1.9-1 noip-duc-linux.tar.gz


f)sudo su ( and enter root password)
g)make
h)make install
Step 4 : Now most of the command typing is over, and you should get a list of questions , for which you would have to answer based on your account information and network situation.Here are the questions :
a) Multiple network devices have been detected.

Please select the Internet interface from this list.

By typing the number associated with it.
0 eth0
1 eth1

In my case i have two interfaces, and only eth0 connects to the internet so i have to type 0 but it may be different in your case, so choose the correct interface which connects you to the internet , its mostly eth0 which is 0
b)enter no-ip account login email id
c)enter password
d)Do you wish to have them all updated?[N] (y/N) - Press Y
e)Please enter an update interval:[30] - THis is in minutes , your wish, you can type 1 which means 1 min

Step 5 : Now you should see this

New configuration file '/tmp/no-ip2.conf' created.
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf

Step 6 : Now to start the noip client manually you need to type sudo /usr/local/bin/noip2

Step 7 : If you want to have your noip client started automatically go to the next step
Step 8 : For this , you need to create a new Startup Program under System->Preferences->Sessions . Enter command as echo password | sudo -S /usr/local/bin/noip2 where password is your ubuntu login password . You can enter any name , i used noip. THIS TUTORIAL should help you with that.Remember to use the above mentioned command.

You should now have your noip client successfully running in the background!!

2 comments

TheShaDowX said... @ April 23, 2010 at 4:57 PM

hi thanks for this tutorial, i have a problem in step4 (a) i have that:


Please select the Internet interface from this list.

By typing the number associated with it.
0 eth0
1 vmnet1
2 vmnet8
0
Can't connect to dynupdate.no-ip.com (No route to host)
Network must be operational to create configfile. Ending!
mv /tmp/no-ip2.conf /usr/local/etc/no-ip2.conf


so what should i do

Prash Babu said... @ April 23, 2010 at 8:58 PM

well your interface 1 and 2 are vmware interfaces which are virtual.. so you need to select eth0 and make sure you are connected to the internet.

Post a Comment