how to autostart noip

There are 8 replies in this Thread which was already clicked 1,756 times. The last Post () by anniman.

  • Sorry, thats as far as i went with it as i have a static ip and only run windows duc once a month to keep account active.
    Fount this on net though,


    From:

    Quote

    w*w.howtoforge.com/how-to-install-no-ip2-on-ubuntu-12.04-lts-in-order-to-host-servers-on-a-dynamic-ip-address


    Hope it helps

    iBffBYU.png

    Edited once, last by codar: more info ().

  • Quote

    hi why does the above port need to be opened,


    I think it has to be opened if you want to view your server from outside LAN through your no-ip dns.


    Quote

    your servers should be available from everywhere at
    http://<your_noip_user_name>.no-ip.biz

  • i had installed updater following another thread in tutorials section, but there is also this one


    http://linuxsat-support.com/showthread.php?t=4843


    the other thread didnt have this detail,
    gave it a go to see if it works,


    quote
    "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

    Edited once, last by ladder 49: info ().

  • 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 got it to work with one difference to the above, when we get to the part



    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


    it should read /etc/init.d/noip2 start

Your resource for Linux TV servers and smart card readers.

Find software downloads, drivers, and support for server setup and card-sharing configurations. Set up a Linux-based TV server. Access downloads and support for server software and USB card readers for advanced TV reception and management