By JayCnrs at 2004-07-04 23:38
First off I am using Fedora Core 2 running the 2.6.5-1.358 kernel. You will need the source code for the kernel and also development packages.
Before getting started you will have to go download Ndiswrapper 0.8 from here:
Then go here and download the realtek 8180 driver for Windows 2000:
And finally dhcpcd from here:
Once you have all these downloaded you will need to untar the ndiswrapper and unzip the Windows 2000 driver, place the 3 files unzipped into the ndiswrapper folder.
Now enter the ndiswrapper folder and run make install this will install ndiswrapper for more info you can read the INSTALL file in the ndiswrapper folder. Once this has been completed you will need to load the windows drivers by running as root ndiswrapper -i /path/to/ndiswrapper-0.8/NET8180.INF then we will check to make sure it loaded the driver by issuing the command ndiswrapper -l and you should see net8180 present. If you see this the driver is loaded and we will install the module modprobe ndiswrapper. Now to see if the module was loaded issue the command dmesg | grep wlan you should see wlan0 come up if so you are ready to continue onto the next part which is configuring the wireless settings.
Before continuing on we will install dhcpcd-1.3, untar the file dhcpcd-1.3 then cd into the directory. Then you will need to run ./configure, make, make install as root. Once this is done run whereis dhcpcd make a note of where the file is mine was located in /usr/local/sbin/dhcpcd.
Once we are this far we are almost home free. Now we will configure the wireless settings, issue the command iwconfig and this should bring up where your wireless connection is set to, there should be a wlan0 in here, now we know our driver uses wlan.
Now you will issue the following commands to bring up your wireless network:
iwconfig wlan0 mode managed
iwconfig wlan0 key restricted (enter your wep key)
iwconfig wlan0 essid (your essid from router)
Now you should see both lights on your network card, then we will have to grab an ip address by running /usr/local/sbin/dhcpcd wlan0 as root
Once we have done this then open up Mozilla and you should be connected to the network or just ping a site. If everything worked alright we now issue the command ndiswrapper -m
After this I wrote a script :
You will have to make the script executable chmod 755 wireless
#Wireless configuration settings
iwconfig wlan0 mode Managed
iwconfig wlan0 key restricted (WEP Key)
iwconfig wlan0 essid (Your wireless router broadcast)
Then I went to /etc/rc.d/rc5.d and ls, chose a number after network start script and pcmcia start script then issued the command ln -s /path/to/wireless S15Wireless. After this I went to /etc/rc.d/rc.local and added to the end /usr/local/sbin/dhcpcd wlan0 the only reason I put that command here was to ensure my wireless card had already activated and ready to grab an ip address.
After this when you boot up your wireless card will automatically load and connect to the network. I also went into start-->system settings-->network and edited my eth0 not to start at boot to remove the dhcp error at boot up, this isn't necessary but I hated seeing the error come up and stop the graphical boot up screen, this won't affect you if your prefer your hard wired network card to start at boot up.
Another reason I wrote the script was so if I was to insert the card after the PC had been booted up I could run the wireless script then the dhcpcd command and bring up my wireless.
HTH everybody trying to get the Linksys card working with linux.