Go Back   SharingDVB All Tutorials sharing > Emulator Tutorials > CardSharing Tutorials

Reply
 
Thread Tools Display Modes
Old 12-20-2014, 01:33 AM   #1
admin
Administrator
 
admin's Avatar
 
Join Date: Dec 2014
Posts: 219
HOW TO NO-IP update client for linux & debian



To get the client:
Code:
wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
Code:
tar xvf noip-duc-linux.tar.gz
Code:
cd noip-2.1.9-1/
Code:
make
Code:
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 : -
HTML Code:
/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
HTML Code:
/etc/init.d/noip2:
type
sudo nano /etc/init.d/noip2 and copy and paste the below, then press ctrl + x to save it.
Code:
/bin/sh
Code:
/etc/init.d/noip2
Code:
Supplied by no-ip.com
Code:
Modified for Debian GNU/Linux by Eivind L. Rygge <eivind@rygge.org>
Code:
. /etc/rc.d/init.d/functions # uncomment/modify for your killproc
DAEMON=/usr/local/bin/noip2
NAME=noip2

PHP Code:

test 
-x $DAEMON || exit 0

case "$1" in
start
)
echo -
"Starting dynamic address update: "
start-stop-daemon --start --pidfile /var/run/noip2.pid 
--make-pidfile --exec $DAEMON
echo "noip2." 
;;
stop)
echo -
"Shutting down dynamic address update:"
start-stop-daemon --stop --pidfile /var/run/noip2.pid 
--oknodo --retry 30 --exec $DAEMON
echo "noip2." 
;;

restart)
echo -
"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 
Make sure it is executable:
Code:
chmod 0755 /etc/init.d/noip2
Also make sure you give the daemon root privelages by:
Code:
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
regards
admin is offline   Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:48 AM.
SharingDVB@
A vBSkinworks Design