his guide will walk you through the installation and setup of the Linux Dynamic Update Client (DUC) on a computer running Linux. If you are using Ubuntu or Debian linux please check our support site for guides on their specific setup.
If you are using Ubuntu Linux, please click here.
Installing the Client:
The below commands should be executed from a terminal window (command prompt) after logging in as the “root” user. You can become the root user from the command line by entering “sudo su -” followed by the root password on your machine.
Note: If you do not have privileges on the machine you are on, you may add the “sudo” command in from of steps (5 and 6)
- cd /usr/local/src
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xvzf noip-duc-linux.tar.gz
- cd no-ip-2.1.9
- make
- make install
To Configure the Client:
As root again (or with sudo) issue the below command:
- /usr/local/bin/noip2 -C (dash capital C, this will create the default config file)
Now the client is installed and configured, you just need to launch it. Simply issue this final command to launch the client in the background:
- /usr/local/bin/noip2
Correr el script siempre que reiniciemos la maquina
nano /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
/usr/local/bin/noip2
exit 0
Tambien con un cronjob cada 5 minutos
crontab -e
*/5 * * * * /usr/local/bin/noip2
No hay comentarios:
Publicar un comentario