noip.com Dynamic DNS Update Client App Install on Ubuntu Linux

print

noip.com Dynamic DNS Update Client App Install on Ubuntu Linux, start up script

 

Step by step Instructions are also in this video:

http://www.youtube.com/watch?v=nl0cvljQy90

Stuck, Need Help? Call the author at 1 (315) 520-8328 for free help.

 

//You can try running the automated installer using this command:

sudo apt-get install noip2

//Likely that command will say that noip2 depository not found, so we will install manually using these scripts below:

 

Open Terminal. It is often located under accessories < Terminal, or under System < Terminal. Type these commands, one by one, into the terminal, pressing enter each time. Remember capital letters matter!:

cd /usr/local/src/

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

sudo tar xf noip-duc-linux.tar.gz

cd noip-2.1.9-1/

 


Remember to replace the numbers in noip-2.1.9-1 whenever you see it in a command, if you have a different version than 2.1.9-1. It may be 3.4.0 or some other number.
You can find out what numbers you will use by by running these commands:

 

cd /usr/local/src/

dir

 

This will display all the files in the folder we are currently using in the terminal. {The folder we are currently using is  /usr/local/src/} There will be a file called something similar to noip-2.1.9-1 or noip-3.0.5 Remember to replace the numbers if you ever need to in this code.


After the cd noip-2.1.9-1/ we executed above, we will “Compile and install the program” using this command:

 

sudo make install

 

If you receive an error when you issue the “sudo make install” command, saying “make gcc command not found”, then we will have to install a compiler called gcc. We can install the gcc compiler with this command: sudo apt-get install gcc

After the install of gcc, run the following commands again:

cd /usr/local/src/noip-2.1.9-1/

sudo make install

 

Now after the make install command succeeds, it will launch the configuration file: It will ask you a couple of questions:

Enter your username or email address

Enter your password

Leave 30 as the default for update interval

Enter in a host name that exists in your account (do not leave this blank)

Enter your network device name (example: eth0)

Then after the configuration, use this command to start the program when you need it:

sudo /usr/local/bin/noip2

 

If an error comes up saying configuration file not found, make sure you ran the command with sudo as the first word. If you still receive the error, run the configuration again using this command:

sudo /usr/local/bin/noip2 –C

Remember you can launch the app with the following command:

sudo /usr/local/bin/noip2

Remember you must launch the app every time you need it. You will need to manually launch the app via the command.

 

AutoStart the app on boot:

To set the app to launch every time you start your computer, use the following script.

Create a new document called “noip2”, (not noip2.txt, or noip2.doc), no extension necessary. Past the following code into the document, and save it on your desktop.

 

#! /bin/sh

# /etc/init.d/noip2

 

# Supplied by no-ip.com

# Modified for Debian GNU/Linux by Eivind L. Rygge <[email protected]>

# Updated by David Courtney to not use pidfile 130130 for Debian stable.

 

# . /etc/rc.d/init.d/functions  # uncomment/modify for your killproc

 

DAEMON=/usr/local/bin/noip2

NAME=noip2

 

test -x $DAEMON || exit 0

 

case “$1” in

   start)

   echo -n “Starting dynamic address update: “

   start-stop-daemon –start –exec $DAEMON

   echo “noip2.”

   ;;

   stop)

   echo -n “Shutting down dynamic address update:”

   start-stop-daemon –stop –oknodo –retry 30 –exec $DAEMON

   echo “noip2.”

   ;;

 

   restart)

   echo -n “Restarting dynamic address update: “

   start-stop-daemon –stop –oknodo –retry 30 –exec $DAEMON

   start-stop-daemon –start –exec $DAEMON

   echo “noip2.”

   ;;

 

   *)

   echo “Usage: $0 {start|stop|restart}”

   exit 1

esac

exit 0

 

Then run this command, once you save the file onto your desktop:

sudo mv ~/Desktop/noip2 /etc/init.d/

 

Then this command to make it executable:

sudo chmod a+rx /etc/init.d/noip2

 

That’s it you’re done, the app should start every time your computer starts.

 

//Optional

If it does not start automatically, try this command:

sudo update-rc.d noip2 defaults

Restart, and see if it starts automatically.

//Optional

 

To see if the app is running use this command:

sudo /usr/local/bin/noip2 –S

or:

sudo noip2 –S

 

Uninstalling:

To uninstall the app, run this command to find the process ID (so we can kill it if it is running). The command will return some text, some of which will list a process ID, if the app Is running:

sudo /usr/local/bin/noip2 -S

 

If it lists a process id, then It is running and we need to kill it In the command replace 1234 with the process id you received from the previous command (sudo /usr/local/bin/noip2 -S

):

sudo /usr/local/bin/noip2 -K 1234

 

Then Delete noip2 from your usr/local/bin:

sudo rm /usr/local/bin/noip2

Delete noip2 from your usr/local/bin:

sudo rm /usr/local/bin/noip2

 

Delete the configuration files and anything related to No-IP that’s left in /usr/local/etc with these commands:

sudo rm /usr/local/etc/no-ip2.conf

sudo rm /usr/local/etc/NO-IPalmco0

 

The following steps are required if you set no-ip to run at startup…

 

Delete the noip2 script in /etc/init.d:

sudo rm /etc/init.d/noip2

cd to /etc and you can see the rc0.d, rc1.d, … directories. There will be a bunch of stuff related to noip in each of those directories, so check what they are and remove them accordingly. Example:

cd /etc/rc0.d

ls

sudo rm K20noip2

Repeat for all the rcX.d directories to make sure everything related to it gets removed.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.