SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Slackware 14.1 64bit with multilib. I installed noip2 from SlackBuilds Repository. During a boot OS rc.local does not start noip2. /etc/rc.d/rc.local is set correctly with:
Code:
if [ -x /etc/rc.d/rc.noip2 ]; then
. /etc/rc.d/rc.noip2 start
fi
Scripts in rc.local before this work properly, but after this script not work at all.
When I run /etc/rc.d/rc.local, after entering in KDE, noip2 working properly like all scripts in rc.local.
it can be it errors something when launched: as the start script just execute it with its config file as an argument, I suppose you can also launch it manually from a root terminal
Code:
/usr/bin/noip2 -c /etc/no-ip2.conf
and see which error it spits.
check also the other command line options
Code:
$ 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)
you can also open two other terminals executing the following commands when you execute it like above and see eventual output in /var/log/messages and /var/log/syslog flowing
I also recall (it's been a while), that I had to run the noip2 setup before I could get the service to start correctly. Essentially, your service could be attempting to start but, because it hasn't been configured with your noip username/password, it's failing.
I also recall (it's been a while), that I had to run the noip2 setup before I could get the service to start correctly. Essentially, your service could be attempting to start but, because it hasn't been configured with your noip username/password, it's failing.
no-ip.conf is created. This is ok. When I execute /etc/rc.d/rc.noip2 start from KDE IP adress is renewed...
it can be it errors something when launched: as the start script just execute it with its config file as an argument, I suppose you can also launch it manually from a root terminal
Code:
/usr/bin/noip2 -c /etc/no-ip2.conf
and see which error it spits.
check also the other command line options
[code]$ noip2 --help
noip2: invalid option -- '-'
.......
you can also open two other terminals executing the following commands when you execute it like above and see eventual output in /var/log/messages and /var/log/syslog flowing
Code:
tail -f /var/log/messages
tail -f /var/log/syslog
Code:
/usr/bin/noip2 -c /etc/no-ip2.conf
Code:
tail -f /var/log/messages
noip2[1362]: v2.1.9 daemon started with NAT enabled
How do you connect to your internet? If it is wireless with wicd/NetworkManager, it could be that you're not connected to the internet when the script originally runs, since (I believe) you usually don't connect until the GUIs come up. From other posts on the forum, it sounds like Network Manager will allow you to run scripts after it connects to the network, so you could have it run noip2 that way.
How do you connect to your internet? If it is wireless with wicd/NetworkManager, it could be that you're not connected to the internet when the script originally runs, since (I believe) you usually don't connect until the GUIs come up. From other posts on the forum, it sounds like Network Manager will allow you to run scripts after it connects to the network, so you could have it run noip2 that way.
My connection is cable/NetworkManager. How can I run script after it connects to the network.
That I don't know. I've never used Network Manager. I'd imagine it'd be in Network Manager's settings, but you might need to enable a passwordless sudo for it to work properly (since I imagine noip2 requires root to start).
That I don't know. I've never used Network Manager. I'd imagine it'd be in Network Manager's settings, but you might need to enable a passwordless sudo for it to work properly (since I imagine noip2 requires root to start).
I think that Network Manager is not problem. When I restarted my system to Default runlevel (id:3:initdefault, DHCP gave me IP address, but noip2 did not update the DNS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.