With the help of some posts on this forum, I managed to get the wireless card working on my Inspiron 5100 (Dell TrueMobil 1400) running Slackware 10. Here's how to do it:
First, ensure wireless support is enabled in kernel configuration, along with TCP/IP. Recompile, if you need to, and get a copy of NDISWrapper. There are plenty of posts on this forum with instructions on compiling/installing it.
After ndiswrapper is installed, the ndiswrapper module needs to be loaded:
modprobe ndiswrapper
Then, various settings of the card need to be configured:
iwconfig wlan0 enc restricted #Turns on encryption
iwconfig wlan0 nick <your computer nick here> #Sets computer nick
iwconfig wlan0 mode managed
iwconfig wlan0 key <s:<text wep key here>> OR <hex wep key here> #Sets the WEP key (note: this key must be 13 characters long for 128-bit encryption)
iwconfig wlan0 essid <network name> #Name of network being connected to
Next, bring up the wireless interface:
ifconfig wlan0 up
Finally, get an IP address from the router:
dhcpcd wlan0
This is cut directly from my rc.local script (to bring up wireless during boot):
modprobe ndiswrapper
iwconfig wlan0 enc restricted
iwconfig wlan0 nick xxxx
iwconfig wlan0 mode managed
iwconfig wlan0 key s:xxxxxxxxxxxxx
iwconfig wlan0 essid xxxxxxxxx
ifconfig wlan0 up
dhcpcd wlan0
If, when you type in "#route -n" to check the routing table, eth0 (or any interface other than your wireless interface) is set as the default interface, you need to change one of your init files so eth0 is not set, at runtime, as the default. There may be an easier way to do this, but this worked for me.
I got this out of the Linux PPP HOWTO by Corwin Light-Williams and Joshua Drake (© 2000 by Commandprompt, Inc and © 1997 by Robert Hart), which can be found here:
http://www.ibiblio.org/pub/Linux/docs/HOWTO/PPP-HOWTO
Even though this howto is for ppp, it applies in this case, for changing the default route.
"You should also be able to see a route to the the remote host (and beyond). To do this, issue the command
route -n
You should se something like:-
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
10.144.153.3 * 255.255.255.255 UH 1500 0 1 ppp0
127.0.0.0 * 255.0.0.0 U 3584 0 11 lo
10.0.0.0 * 255.0.0.0 U 1500 0 35 eth0
default 10.144.153.3 * UG 1500 0 5 ppp0
Of particular importance here, notice we have TWO entries pointing to
our ppp interface.
The first is a HOST route, (indicated by the H flag) and that allows
us to see the host to which we are connected to - but no further.
The second is the default route, (established by giving pppd the
option defaultroute. This is the route that tells our Linux PC to send
any packets NOT destined for the local Ethernet(s) - to which we have
specific network routes - to the PPP server itself. The PPP server
then is responsible for routing our packets out onto the Internet and
routing the return packets back to us.
If you do not see a routing table with two entries, something is
wrong. In particular if your syslog shows a message telling you pppd
is not replacing an existing default route, then you have a default
route pointing at your Ethernet interface - which MUST be replaced by
a specific network route: YOU CAN ONLY HAVE ONE DEFAULT ROUTE!!!
You will need to explore your system initialization files to find out
where this default route is being set up (it will use a route add
default... command). Change this command to something like route add
net...."
The init file they are talking about is rc.inet1, located in /etc/rc.d
The line that needs to be changed is line 105; it looks like this:
/sbin/route add default gw ${GATEWAY} metric 1
Change 'default' to read 'net', like this:
/sbin/route add net gw ${GATEWAY} metric 1
Bring down the eth0 interface (or whatever your default interface is):
#ifconfig eth0 down
Ensure your wireless interface is up:
#ifconfig wlan0 up
And make your wireless interface the default (wlan0 in my case):
#route add default gw <ip address of your router>
Hope this helps the slackers out there. Any questions, feel free to email me.
This definately works for me, because I'm posting from wireless linux.
This guy's post is also of great value, if you find any of this confusing:
http://www.linuxquestions.org/questi...109#post843109