SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
ifconfig wlan0 up
iwconfig wlan0 essid MyNet key open s:MyKey111
And add this to /etc/rc.d/rc.local or what?
I need to get this working soon as I'm moving to another coutry I can't get physical access to 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.
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:
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
WLAN_IWPRIV="AuthMode=OPEN EncrypType=WEP WEP=xxxxxxxxxxxxx TxRate=0"
## Some examples of additional network parameters that you can use.
## Config information for wlan0:
IFNAME="wlan0" # Use a different interface name nstead of
# the default 'eth4'
#HWADDR="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR="" # Request a specific IP address from the DHCP
#WLAN_ESSID=DARKSTAR # Here, you can override _any_ parameter
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
#WLAN_IWPRIV="AuthMode=WPAPSK EncrypType=TKIP WPAPSK=thekey TxRate=0"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (space-separated, see the
May 28 18:33:31 slackbox kernel: ndiswrapper version 1.14 loaded (preempt=no,smp=no)
May 28 18:33:31 slackbox kernel: ndiswrapper: driver wg311v3 (NETGEAR,02/22/2005,22.214.171.124) loaded
May 28 18:33:31 slackbox kernel: PCI: Found IRQ 3 for device 00:0a.0
May 28 18:33:31 slackbox kernel: ndiswrapper: using irq 3
May 28 18:33:31 slackbox kernel: wlan0: vendor: ''
May 28 18:33:31 slackbox kernel: wlan0: ndiswrapper ethernet device 00:0f:b5:8a:4b:b1 using driver wg311v3, 11AB:1FAA:1385:6B00.5.conf
May 28 18:33:31 slackbox kernel: wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
May 28 18:33:31 slackbox logger: /etc/rc.d/rc.inet1: /sbin/ifconfig lo 127.0.0.1
May 28 18:33:31 slackbox logger: /etc/rc.d/rc.inet1: /sbin/route add -net 127.0.0.0 netmask 255.0.0.0 lo
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 mode Managed
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 nick slackbox
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 channel auto
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 key restricted
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 key ************
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 rate 54M auto
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwpriv wlan0 set AuthMode=OPEN
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwpriv wlan0 set EncrypType=WEP
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwpriv wlan0 set WEP=sl4ck3rm4st3r
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwpriv wlan0 set TxRate=0
May 28 18:33:33 slackbox logger: /etc/rc.d/rc.M: /sbin/iwconfig wlan0 essid MyyraVerkko
May 28 18:33:34 slackbox logger: /etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t 60 wlan0
May 28 18:34:32 slackbox logger: /etc/rc.d/rc.hotplug start (entering script)
May 28 18:34:33 slackbox kernel: ne2k-pci.c:v1.02 10/19/2000 D. Becker/P. Gortmaker
May 28 18:34:33 slackbox kernel: http://www.scyld.com/network/ne2k-pci.html
May 28 18:34:33 slackbox kernel: PCI: Found IRQ 9 for device 00:0b.0
May 28 18:34:33 slackbox kernel: PCI: Found IRQ 10 for device 00:06.0
Any idea how to set that inet1.conf so it would succesfully connect with my router?
Note that if you want to pass a WEP key string of ASCII characters instead of the usual series of HEX characters, you have to prefix that string with "s:" (see the WLAN_KEY example). Also, I advise you to change your WEP key, now that the world knows :-)
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.