Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Hello! My name is Patrick Clay and I am running Gentoo Linux on my Dell 8600 laptop.
The problem I am having is as follows:
when dhcpcd is running, any application that I attemp to start will wait 20-30 seconds before starting up.
I am pretty sure it is dhcpcd causing the problem because if i execute "killall dhcpcd" all the programs that were waiting to start immediately start up.
How can I fix this? Am I connecting to the Internet the improper way?
The way I connect to the Internet is configuring my wireless card (using ipw2200 for driver, btw) with iwconfig, using ifconfig to get eth1 up, then using 'dhcpcd eth1' to get an ip address.
Thanks for any suggestions in getting this issue resolved.
That's odd, since I do nearly the same thing with my Gentoo laptop (though it is an ndiswrapper driver). What kind of applications do you get these issues with? What if you execute apps from the command line?
If a run gnome-terminal the busy cursor will show for about 20 seconds then disappear.
If I already have a terminal open and i run a command (such as gaim) nothing will happen for about 20 seconds then the program will start up as normal and function properly. The same applies to ethereal, gedit, nautilus, etc.
The way I 'fix' it is to use Ctrl+Alt+F1, log in as root, kill dhcpcd, switch back and everything is back to normal.
What about non-GUI apps? If you already have a terminal open and run, say, nano, how is the startup time there? I have a weird hunch this may be something DNS related, but I would think that would be anytime you are connected, not just with dhcpcd actively running.
the command I use to bring up my wireless interface is:
dhcpcd eth1
since for whatever reason my sytem isn't liking dhcpcd i add the option -p to dhcpcd, bring up my wireless interface, then kill dhcpcd.
the -p option allows dhcpcd to be terminated yet it doesn't bring down the interface with it. So now my wireless start-up script looks like this:
dhcpcd -p eth1
killall dhcpcd
So basically the dhcp daemon gets an ipaddress then gets out of the way. So far it's working great!
Thanks for the insight everyone! (Special thanks to McClain!)
I can see this causing a problem when a dhcp server requires a renew but right now that is less of a hassle to deal with than having to kill and restart dhcpcd everytime i want to start a new application.
The lesser of two evils, folks! :-)
Last edited by patrickclay; 09-09-2005 at 12:58 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.