![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
| View Poll Results: Was this HOWTO helpful? | |||
| Yes |
|
27 | 71.05% |
| No |
|
11 | 28.95% |
| Voters: 38. You may not vote on this poll | |||
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Dipped in Ubuntu
![]() |
WIRELESS CARD HOWTO: ANY DISTRIBUTION OF LINUX (DESKTOP OR LAPTOP)
Although I run Xubuntu, the following steps should still work with any distribution of Linux. If you run into any trouble with the GUI apps, I will be providing the terminal commands soon as soon as the network admin at my school reminds me how to do it. They will be posted at the end of this HOWTO. Also, don't ever hesitate to PM me about this, because I am always happy to help, although I am a student so bear with me if I don't respond right away. Also keep in mind that this only deals with wireless devices that are not compatible with Linux out of the box. If you are using a device that is Linux-compatible, refer to the manual for the device, or look for online documentation on how to install it. For a WPA Encyryption HOWTO, look here I have tested this in the following (K/X)Ubuntu distros. -5.10 -6.04 -6.10 -7.04 -7.10 -8.04 This should also work with any other Linux distribution. Sections: 1. Pre-requisites 2. Installing "build-essential" 3. Installing NDISwrapper from source 4. Installing your wireless driver 5. Activating your wireless card via terminal 6. Credits 7. Other methods 1. Pre-requisites 1) Working internet connection or method on getting new packages onto your computer (e.g. second computer & thumb-drive). I STRONGLY suggest you try to get a LAN or dial-up connection as it gets tedious without one. 2) The package "build-essential". I will explain how to get this in the tutorial if you do not already have it. 3) Make sure the wireless driver you have is made for your architecture. 32 bit drivers do NOT work on 64 bit systems and vice versa! 2. Installing "build-essential" NOTE: If you have the package "build-essential", or you have the gcc compiler (3.4 or newer), you may skip to Section 3. If you do not use Ubuntu, Kubuntu, or Xubuntu, I recommend you try to install the gcc compiler that is available to your distribution, as this section will only accommodate those who can utilize the "apt-get" function or "dpkg" function of the terminal. 1) Type the following into the terminal (if you have an internet connection). Code:
sudo apt-get install build-essential 2) If you do not have an internet connection, use another computer to download the "build-essential" package from packages.ubuntu.com. Use the search function there to find the package, or click here. 3) Once it is downloaded, transfer the file to the computer you are trying to configure wireless on. Put it in its own directory (folder). 4) Run this in a terminal. Make sure you are in the same directory as the "build-essential" package is. Code:
sudo dpkg -i *.deb If not, the there are probably dependency issues. The only thing I can suggest is to write down the names of the packages it says you need, download them and transfer them into the same directory as you are in now, and run the code again. If there are still issues with dependencies, do the same thing. This is why it is MUCH easier to have a working internet connection while doing this. 3. Installing NDISwrapper NOTE: If you have ever tried to install your card via ndiswrapper before, type these into a terminal, each separately. Code:
sudo rmmod ndiswrapper sudo ndiswrapper -l sudo ndiswrapper -e nameofdriver sudo apt-get remove --purge ndiswrapper* 1) Download the NDISwrapper source code from here. Choose the latest stable version. The reason I am having you install from source is that I (along with others I know) have had issues with the 'ndiswrapper' package provided with Ubuntu. Not to discourage their packages, but I have had greater success with compiling from source. Also keep in mind that when there is a kernel upgrade, you may have to recompile ndiswrapper from source in order to make sure it keeps working. 2) Extract the archive with whatever archive extractor you wish. To do it from the terminal, though, here is the command. Code:
tar -zxvf nameOfArchive.tar.gz Code:
cd pathToFolder 4) Now, type in the following exactly, each separately Code:
sudo make uninstall sudo make uninstall make sudo make install If you get any errors, make sure your gcc compiler is up to date. If you still get errors, or don't want to upgrade, type this into the terminal. Code:
sudo make uninstall sudo make uninstall Code:
sudo apt-get install ndiswrapper* If you do not have an internet connection, you will once again have to transfer the packages from another computer to this one, and use 'sudo dpkg -i *.deb' again, and fix the dependencies yourself. 4. Installing your wireless driver You got this far. The hard part is OVER!!! Be happy This tutorial DOES assume you have the driver for your wireless card. If you bought the card in a store, it will be on the CD provided. If you for whatever reason do not have a CD (e.g. internal wireless) the website of your computer should have it or the site of the maker of the card should have it on their site. If the driver is inside an EXE file, you should be able to extract it with an archive manager, such as file-roller. Also, consider this a "Step 0". Paste this into your terminal. Code:
echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist 1) Via the terminal, change to the directory where the driver is. It will have to have the .inf and .sys file in there. Remember, the command to change directories is 'cd'. If the driver is on a CD, the CD is usually mounted at '/media/cdrom0' or somewhere in the '/mnt' directory. 2) Once in the directory, type this into a terminal. Code:
sudo ndiswrapper -i driver.inf 3) Now type in this Code:
sudo ndiswrapper -l Code:
sudo ndiswrapper -e driver Code:
sudo ndiswrapper -m sudo modprobe ndiswrapper Code:
ndiswrapper 6) If this works, congrats, your wireless is installed. You can either configure it using the network manager that came with your distribution, or you can use a handy program called Wifi-Radar, which effectively manages your wireless. If you choose to install Wifi-Radar, make sure you have Python installed as well. If you do not have a GUI interface, I will be providing the necessary code to bring up your wireless and scan for SSIDs (network names) thru the terminal. If you are doing this on Hardy, and this did not work, follow the steps in this guide for a workaround until whatever bug this is is fixed. This may be fixed by the time Hardy's release comes around, though, so let me know if this is not an issue for you. 5. Activating your wireless card via terminal Here is everything you should need to know for bringing up a wireless (or any internet connection) from the terminal. Keep in mind that your wireless connection may not always be called wlan0. For example, my interface is eth1. the command "iwconfig" should give you the interface name. To scan for a wireless network (essid) Code:
sudo iwlist wlan0 scan Code:
sudo ifconfig wlan0 up Code:
sudo ifconfig wlan0 down Code:
sudo iwconfig wlan0 essid ID key k Now that you know what each command does, here is what most people should have to type into their terminal Code:
sudo iwlist wlan0 scan sudo ifconfig wlan0 down sudo ifconfig wlan0 up sudo iwconfig wlan0 essid ID key k 6. Credits While I largely did learn on my own how to use NDISwrapper, I must thank trubblemaker for showing me how to compile ndiswrapper from source, how to purge it from my system, and how to stop the bcm43xx driver from loading. I also want to thank Jim for showing me the commands to bring up a wireless interface from the terminal, even though I forgot them and had to re-ask 7. Other Methods If this guide does not work for you, but you are able to get your wireless card working some other way, outline what you did or link the walkthrough you followed, along with your wireless hardware or laptop model. I will put that information in this section. Atheros AR5007 wireless device- http://www.ubuntugeek.com/atheros-ar...rdy-heron.html Also, please vote in the poll at the top, I'd like to know how helpful this has been to you. If anything is unclear or not straightforward, please tell me so I can fix it. In the words of GLaDOS, "thank you for helping me help you help us all." Good luck and Godspeed
__________________
HOWTO: Set up wireless internet (Desktop or laptop) Registered Linux User #454618 2112
Last edited by HokeyFry; August 1st, 2008 at 04:11 PM.. Reason: updated 'build-essential' link |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|