LinHES Forums http://forum.linhes.org/ |
|
Cannot get my USB wireless to stay configured (RESOLVED) http://forum.linhes.org/viewtopic.php?f=2&t=5065 |
Page 1 of 1 |
Author: | notapenguin [ Sun Jun 26, 2005 9:41 pm ] |
Post subject: | Cannot get my USB wireless to stay configured (RESOLVED) |
I am a newbie so bare with me any help would be apreciated. I ran ndiswrapper and on reboot my wg111 USB wlan donggle is recognized when i run iwconfig. Problem is I have to run iwconfig every time I reboot and set the essid and key and run ifup for a Ip address. If i run the following the card works great, until i reboot then i have to do it again I do the following Code: iwconfig wlan0 essid XXXXXXX iwconfig wlan0 key "long hex wep key here" ifup wlan0 How do I make it assign the essid and key at boot and get an ip adress. I have tried editing #etc/network/interface by adding Code: wireless_mode managed
wireless_essid XXXXXXXX wireless_Key "long hex key here" The problem is that the card is not recognizedand or does not appear to work on utill very late in the boot after it has already tried and falied to run that code Anyone know what Im doing wrong here? |
Author: | Xsecrets [ Sun Jun 26, 2005 9:52 pm ] |
Post subject: | |
you could remove the auto line from /etc/network/interfaces and then add a line to bootmisc.sh with ifup eth0 or whatever your interface name is. |
Author: | notapenguin [ Sun Jun 26, 2005 11:16 pm ] |
Post subject: | |
ETA I tried editing the bootmisc file with iwconfig and ifup but the commands attempt to execute before the drivers. They have not loaded so it logs an error saying the device is not found. Not until late in the boot does it "see" the USB wlan0. I want to either make the commands occur later or fix the problem with the drivers not loading earlier. Thanks again for the help |
Author: | tjc [ Mon Jun 27, 2005 8:46 pm ] |
Post subject: | |
- Open a shell window (alt-X from your desktop) - Become root by using the su command Code: su - and entering the root password you set at install time.- Use an editor (nano is easy) to edit these two files: Code: nano /etc/network/interfaces nano /etc/init.d/bootmisc.sh - In the first file there is a line that looks like this: Code: auto lo eth0 Make it look like this instead: Code: auto lo - At the end of the second file add a line that looks like this : Code: ifup eth0
OBTW - This is an FAQ... http://www.knoppmythwiki.org/faq/index.php?action=artikel&cat=7&id=20&artlang=en |
Author: | notapenguin [ Mon Jun 27, 2005 9:14 pm ] |
Post subject: | |
I Know how to become root and edit files, I have read that and many other FAQ's ![]() I also had tried what you suggested before I posted my question here. My question and the problem is that the USB wlan0 is "loaded" later in the boot sequence then the commands that i put at the end of bootmisc.sh are executed. This is what I said in my first post. It is not a problem with the commands but a problem with when they are executed. How do I get it to run iwconfig and ifup last after the USB network card and the drivers are loaded during the boot. |
Author: | tjc [ Mon Jun 27, 2005 10:15 pm ] |
Post subject: | |
Sorry, I read your original question as how to do what Xsecrets was recommending. As for the other, it's probably easier to flip the problem around and get the modules loaded before, the ifup... This will prbably involve aliasing the appropriate one to eth0 in /etc/modules.conf Actually you may want make that line in /etc/bootmisc.sh Code: ifup wlan0
|
Author: | notapenguin [ Mon Jun 27, 2005 10:37 pm ] |
Post subject: | |
No prob thanks for the help I aprecate it. I have not done any aliasing yet I will try to figure that out. ![]() What would the syntax of the line I add be? I did it as wlan0 and eth0 niether worked ![]() |
Author: | tjc [ Mon Jun 27, 2005 11:01 pm ] |
Post subject: | |
Well the one from my workstation box says: Code: alias eth0 8139too You probably want one that says something like: Code: alias wlan0 YOURWLANDRIVERMODULEHERE
|
Author: | notapenguin [ Tue Jun 28, 2005 2:24 am ] |
Post subject: | |
Well it turns out it was a hardware/ndiswrapper issue, my additions, the code, Worked like a charm once I resolved the hardware problem. Code: #etc/network/interface
wireless_mode managed wireless_essid XXXXXXXX wireless_Key "long hex key here" I had to boot the box with the USB wireless lan removed then reboot with the USB wlan in a different USB port to get ndiswrapper to load the driver properly. However this caused a new problem in that it would crash the kernel towards the end of the boot. I realized that it was trying to load the ndiswrapper wlan driver twice for some reason, once in the middle of the boot for USB 1.1 then again at the end for USB 2.0. My motherboard has USB 1.1 interface and a USB 2.0 interface. I tried to disable the 1.1 interface but that did not work as it caused the USB to not be recognized at all. I had to shut off the USB 2.0 to prevent ndiswrapper form loading twice and crashing the kernel. This works fine but I don't know if it has caused any problems speed wise with the wlan card forcing it to run at USB 1.1 speeds. I will start a knew thread on the ndiswrpaper/USB issue. Thanks for all those who gave advice. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |