How to start wireless network at startup?
Okay, I have NETGEAR WG311v3 wireless network card in my server PCI slot and I want to enable wireless network at startup. How is this done?
I used ndiswrapper 1.14 for the drivers. I haven't found better drivers than those found on the card's CD. Newer drivers are available but only in .exe package and I didn't locate the .inf and .sys files for those newer drivers after extracting them. Anyway I have the network working at the moment. Not sure how good connection is as I tried it with windows and with basic drivers the signal was "weak" and with newer drivers it was "excellent" so I'm trying to get the newer drivers to work somehow. But how to enable it at startup? Just make script Code:
#!/bin/bash I need to get this working soon as I'm moving to another coutry I can't get physical access to my server. How to check signal quality on my server? |
Nope, no need to put it in rc.local. Edit your rc.inet1.conf and uncomment the lines relating to the wireless work (and set the appropriate settings). You may not need to uncomment them all, I certainly don't have to. Make sure you do uncomment "USE_DHCP[x]=""", where x is a number (4 in my file) and change it to USE_DHCP[x]="yes". Also add the line "/sbin/modprobe ndiswrapper" (without quotes) to your rc.modules file. This is assuming you're using 10.2, as 10.1 is a little bit different.
|
I've been trying to get this working. I edited the rc.inet1.conf for those wireless options. Not sure that if the password is valid as I typed it in ASCII instead of hex values. Should it be in hex?
And just noticed you said add /usr/sbin/modprobe ndiswrapper... I've been trying to get it to work with /usr/sbin/ndiswrapper -d 00:0a.0 wg311v3 which doesn't work. Well, back to server to fix things. |
Well, modprobe is in /sbin and not /usr/sbin/. The rest of the lines in rc.modules should tell you that!
As for the password, I don't know (as I don't use password on mine). It does look like it should be in hex though, given the example in the file. |
Oaky, I got it to start ndiswrapper but setting up the connection doesn't work yet. Mainly because of that WEP key I use.
Here's what I have now: rc.inet1.conf Code:
## Example config information for wlan0. Uncomment the lines you need and fill Code:
May 28 18:33:31 slackbox kernel: ndiswrapper version 1.14 loaded (preempt=no,smp=no) |
With ndiswrapper you should not need the IPPRIV commands, just set the WEP key through the normal IWCONFIG commands. I think this would be sufficient for you:
Code:
IFNAME[4]="wlan0" Eric |
Well, They have to find my network first :)
I made things little bit more interresting as I changed to WPA-PSK. I got it to work with my Gentoo laptop but I'm having problems again with my slack server. I downloaded the wpa_supplicant source but I can't compile it as it gives me errors that some file / folder doesn't exist. I made the .config file and added all options on it. Any idea how to get it to compile it fully? Rest of it is probably pretty much the same struggle as with my laptop so it should be a quick job then on. But I think I'll hit the bed and continue this issue tomorrow. PS. I did change the WPA key :) |
All times are GMT -5. The time now is 07:07 PM. |