Tutorials
Posted on Jun 26, 2010 at 19:39
Networking - ndiswrapper wireless card setup
1) Install kernel development package
/lib/modules/`uname -r`/build
> rpm -i kernel-devel-2.6.18-36.e15.i686.rpm
If the symbolic link above points to a file that does not exist, the kernel development package needs to be installed. Then ndiswrapper can be installed.
2) Install ndiswrapper from source
> tar -xzvf ndiswrapper-version.tar.gz
> make uninstall
> make
> make install
3) Configure wireless card
driver files: LSRTNDS.INF, LSRTNDS.SYS
> ndiswrapper -i LSRTNDS.INF
> ndiswrapper -l lsrtnds : driver installed device (10EC:8180) present
> ndiswrapper -m
> modprobe ndiswrapper PCI: Enabling device 0000:02:00.0 (0000 -> 0003)
> ifconfig -a (check for wlan0 device. if present, all is well)
Get the appropriate *.inf and *.sys files for the card and put them in a common directory. Then follow the steps outlined above.
4) Scan for Access Points
> iwlist scan
If your card has been install and configured correctly this should return information about your Access Point such as ESSID, mode and MAC Address.
5) Setup iwconfig script
iwconf.sh
=========
iwconfig wlan0 essid ESSID mode Managed key restricted [1] 1234567890
ifconfig wlan0 STATIC_IP
route add default gw 192.168.1.1
echo "search ISP_DOMAIN" > /etc/resolv.conf
echo "nameserver NS1_IP" >> /etc/resolv.conf
echo "nameserver NS2_IP" >> /etc/resolv.conf
Put this script on your system somewhere. (/usr/local/src/iwconf.sh)
> sudo vi /etc/rc/rc.d/rc.local
/usr/local/src/iwconf.sh
Add the above line to the /etc/rc/rc.d/rc.local file so it automatically configures the card on boot.