Guide to getting wireless working with linux.
Please note this is a representation of how to get wireless working with a computer running slackware 9.0
that has a linksys wusb11 version 2.6 wireless conection and a 64 bit encryption on the network. Other wireless
setups will differ slightly as the version and kernel and hardware might not be the same, also you may have a
bigger encryption or you may have no encryption.
The first thing you want to do is make sure you have the propper driver for your wireless. For wusb11 v2.6 I
found the driver at
http://www.houseofcraig.net/berlios.tar.gz .
After this locate where you are installing the driver to, for me it was /lib/modules/2.4.20/drivers/usb
Install the driver in /lib/modules/2.4.20/drivers/usb
After this type these commands:
#Please note some wireless cards are located on eth0 thus it is important to locate where your wireless hardware is.#
iwconfig wlan0 mode managed channel 5 <---- Whatever channel your router is using if it is needed, sometimes you do
not need this.
ifconfig wlan0 192.168.1.114 <---- Whatever is a valid address for your router, D-link's gateway is usually
192.168.0.1 Linksys's gateway is usually 192.168.1.1 .
#If you have an encryption you must add this:#
iwconfig key yourhexkeyhere <---- This adds the encryption key.
#End encryption addition#
iwconfig wlan0 essid youressidhere <---- This sets your essid.
route add default gw 192.168.1.1 <---- This adds your default gateway whether it may be 192.168.1.1 or 192.168.01
or something else.
Now try to ping google.com
ping -c 4 google.com
If you get no packet loss you are home free, if it does not work for some reason repeat the previos steps.
Ok, so you noticed that after you rebooted all your settings went away : (
Make a shell script, here is the shell script I use to restore my settings:
#!/bin/sh
iwconfig wlan0 mode managed channel 5
ifconfig wlan0 192.168.1.114
iwconfig wlan0 key 473088F53F
iwconfig wlan0 essid webgirl
route add default gw 192.168.1.1 wlan0
Then make that executable and a command, place it in /usr/sbin
I made the command named "startnet"
Simply run the command startnet and all your settings are made again and you are on the internet again.
Written by ematrixxx
shadowb0x@hotmail.com