HOW TO NO-IP update client for linux . tested and working on debian

There is 1 reply in this Thread which was already clicked 8,474 times. The last Post () by Banny.

  • To get the client:


    $ wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
    $ tar xvf noip-duc-linux.tar.gz
    $ cd noip-2.1.9-1/
    $ make
    $ make install


    If you get an error after typing this command, use this command then try again sudo apt-get install gcc

    now as root user we configure the client like this : -



    $ /usr/local/bin/noip2 -C


    then you will be asked a series of options for your no-ip.org details for example email registered for account , password , blah blah . Follow this step by step and when asked for update interval select 5 ( for every 5 minutes )



    You can now simply run noip2 as root and, as a daemon, it will update the server. With option -S all currently running daemons will be listed. To kill one of the daemons use the -K option.


    To run the daemon automatically when the machine is booted place the following script into /etc/init.d/noip2:


    type


    sudo nano /etc/init.d/noip2 and copy and paste the below, then press ctrl + x to save it.



    #! /bin/sh
    # /etc/init.d/noip2


    # Supplied by no-ip.com
    # Modified for Debian GNU/Linux by Eivind L. Rygge <eivind@rygge.org>


    # . /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 --pidfile /var/run/noip2.pid \
    --make-pidfile --exec $DAEMON
    echo "noip2."
    ;;
    stop)
    echo -n "Shutting down dynamic address update:"
    start-stop-daemon --stop --pidfile /var/run/noip2.pid \
    --oknodo --retry 30 --exec $DAEMON
    echo "noip2."
    ;;


    restart)
    echo -n "Restarting dynamic address update: "
    start-stop-daemon --stop --pidfile /var/run/noip2.pid \
    --oknodo --retry 30 --exec $DAEMON
    start-stop-daemon --start --pidfile /var/run/noip2.pid \
    --exec $DAEMON
    echo "noip2."
    ;;


    *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    esac
    exit 0


    Make sure it is executable:


    # chmod 0755 /etc/init.d/noip2


    Also make sure you give the daemon root privelages by:


    # chown root:root /usr/local/bin/noip2



    Now if you have done everything correctly as root user just type :


    noip2


    that will start the process



    & to see if its running as root type noip2 -S




    enjoy



    new2

    Dont forget to hit the thanks button!!!!!!!!!!!!!



    :41_002:



    Some articles may discuss topics that are illegal, so this information is provided for educational purposes only, your use of the content, downloads and files, or any part thereof, is made solely at your own risk and responsibility. Viewing Pay TV without a valid subscription is illegal. !! Linuxsat-Support.com cannot be held responsible for the content of any information stored or posted on this forum.

  • Updated above guide, very slightly...


    I am not obligated, or connected to any particular brand, seller or retailer so any opinions given are not biased in anyway.
    Any information given is for hobby and research purposes only, and whilst every effort is made to ensure that all my responses are accurate, - Any action you may take based on my replies is done so at your own risk.
    Viewing Premium Channels or Media, without paying for them is illegal and if you do so, you do so at your own risk!

    BpGgW.jpg



  • master G

    Added the Label Article

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!