Creat noip2 startup script

Forum rules
Before you post please read this

Creat noip2 startup script

Postby silveringking on Wed Sep 14, 2011 7:56 pm

So noip2 drives me crazy... So, I wanted something, a script to start it up...

Something like I write the name of the server, plus password and nick on the file, I click and I just start it up, I click again and it stops... It can be two scripts, one to start it and other to stop it... Is that possible? Thank you!
silveringking
Level 2
Level 2
 
Posts: 59
Joined: Sun Jul 31, 2011 9:52 pm
Location: Fafe, Portugal

Linux Mint is funded by ads and donations.
 

Re: Creat noip2 startup script

Postby Pilosopong Tasyo on Thu Sep 15, 2011 2:27 am

I am not familiar with noip2, but like most commands, if noip2 allows you to pass those parameters from the CLI, or it references a configuration file for information, then certainly it is possible to automate the task you want done.
Image
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Pilosopong Tasyo
Level 6
Level 6
 
Posts: 1121
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: Creat noip2 startup script

Postby Oscar799 on Thu Sep 15, 2011 3:29 am

Moved here from Software & Applications
Image
"Don't fix it if it ain't broken,don't break it if you can't fix it" Husse
Registered Linux User #511789
User avatar
Oscar799
Level 18
Level 18
 
Posts: 8839
Joined: Tue Aug 11, 2009 9:21 am
Location: United Kingdom

Re: Creat noip2 startup script

Postby Habitual on Thu Sep 15, 2011 5:27 pm

Run in a terminal >
Code: Select all
noip2


and post the output (minus any passwords or other sensitive data)

Basically just need to see the output.

Thanks.

Seen this?
http://www.linuxquestions.org/questions ... up-320901/
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2053
Joined: Sun Nov 21, 2010 8:31 pm
Location: Undecided

Re: Creat noip2 startup script

Postby silveringking on Fri Sep 16, 2011 9:07 am

carlos@carlos:~$ noip2
Can't locate configuration file /usr/local/etc/no-ip2.conf. (Try -c). Ending!

carlos@carlos:~$ sudo noip2
[sudo] password for carlos:
carlos@carlos:~$


No output with sudo...
silveringking
Level 2
Level 2
 
Posts: 59
Joined: Sun Jul 31, 2011 9:52 pm
Location: Fafe, Portugal

Re: Creat noip2 startup script

Postby Pilosopong Tasyo on Fri Sep 16, 2011 9:47 am

More relevant output is needed. Post what

Code: Select all
noip2 --help

says on screen or use

Code: Select all
man noip2

We need to know what parameters/arguments it needs.
Image
o Give a man a fish and he will eat for a day. Teach him how to fish and he will eat for a lifetime!
o If an issue has been fixed, please edit your first post and add the word [SOLVED].
User avatar
Pilosopong Tasyo
Level 6
Level 6
 
Posts: 1121
Joined: Mon Jun 22, 2009 3:26 am
Location: Philippines

Re: Creat noip2 startup script

Postby silveringking on Fri Sep 16, 2011 6:17 pm

Code: Select all
carlos@carlos:~$ noip2 --help
noip2: invalid option -- '-'

USAGE: noip2 [ -C [ -F][ -Y][ -U #min]
   [ -u username][ -p password][ -x progname]]
   [ -c file][ -d][ -D pid][ -i addr][ -S][ -M][ -h]

Version Linux-2.1.9
Options: -C               create configuration data
         -F               force NAT off
         -Y               select all hosts/groups
         -U minutes       set update interval
         -u username      use supplied username
         -p password      use supplied password
         -x executable    use supplied executable
         -c config_file   use alternate data path
         -d               increase debug verbosity
         -D processID     toggle debug flag for PID
         -i IPaddress     use supplied address
         -I interface     use supplied interface
         -S               show configuration data
         -M               permit multiple instances
         -K processID     terminate instance PID
         -z               activate shm dump code
         -h               help (this text)
carlos@carlos:~$


Here is what you asked for...

Noip comes without no manual... Geez somebody should create a deb for this thing because it is SO useful.
silveringking
Level 2
Level 2
 
Posts: 59
Joined: Sun Jul 31, 2011 9:52 pm
Location: Fafe, Portugal

Re: Creat noip2 startup script

Postby Habitual on Fri Sep 16, 2011 6:59 pm

Output of
Code: Select all
sudo noip2 -C


please
What's a landing but a take off in reverse?
My DorkBlog
User avatar
Habitual
Level 8
Level 8
 
Posts: 2053
Joined: Sun Nov 21, 2010 8:31 pm
Location: Undecided

Re: Creat noip2 startup script

Postby silveringking on Sat Sep 17, 2011 9:34 am

Code: Select all
carlos@carlos:~$ sudo noip2 -C
[sudo] password for carlos:

Auto configuration for Linux client of no-ip.com.

Please enter the login/email string for no-ip.com  silveringking@hotmail.com
Please enter the password for user 'silveringking@hotmail.com'  ********

Only one host [zephirus.no-ip.org] is registered to this account.
It will be used.
Please enter an update interval:[30]  30
Do you wish to run something at successful update?[N] (y/N)  n

New configuration file '/usr/local/etc/no-ip2.conf' created.

carlos@carlos:~$


I didn't edit because there is no sensible info, just my email which is public...
silveringking
Level 2
Level 2
 
Posts: 59
Joined: Sun Jul 31, 2011 9:52 pm
Location: Fafe, Portugal

Re: Creat noip2 startup script

Postby silveringking on Sat Sep 24, 2011 5:22 pm

Hello?
silveringking
Level 2
Level 2
 
Posts: 59
Joined: Sun Jul 31, 2011 9:52 pm
Location: Fafe, Portugal

Linux Mint is funded by ads and donations.
 

Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 2 guests