Ndiswrapper
Size: 14447
Comment:
|
Size: 14477
Comment: Added names of packages to GUI install instructions, other simplifications.
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
= Install Repository Version = | = Install Necessary Software = |
Line 22: | Line 22: |
=== With Internet access on an Ubuntu computer === If you have Internet access via some other method while logged into Ubuntu, you can install the necessary packages from the Ubuntu repositories. If you don't know how to install applications then you can read [http://help.ubuntu.com/starterguide/C/ch02.html how to here]. {i} ''You may have to enable the multiverse and universe repositories; see AddingRepositoriesHowto'' === With Internet access on another computer === |
=== With internet access on an Ubuntu computer === If you already have internet access via some other method while logged into Ubuntu, getting 1. Ensure the multiverse and universe repositories are enabled; see AddingRepositoriesHowto'' 2. Install the ''ndiswrapper'' and ''ndisgtk'' packages from the Ubuntu repositories. If you don't know how to install applications then you can read [http://help.ubuntu.com/starterguide/C/ch02.html how to here]. === With internet access on another computer === |
Line 84: | Line 86: |
=== ndisgtk instructions === | === Graphical instructions === |
ContentsBRTableOfContents(3) |
1. Introduction
If you do not know the name of the chipset which your wifi card uses, issue the lspci command in a terminal; it should be listed there. In order to see if your chipset is known to work with the ndiswrapper module, find your card in the list [http://ndiswrapper.sourceforge.net/mediawiki/index.php/List here]. The link may even provide you with useful tips on how to get your specific card to work, as well as providing a link to the working Windows drivers.
If you already have internet access via some other method while logged into Ubuntu, getting 1. Ensure the multiverse and universe repositories are enabled; see AddingRepositoriesHowto These instructions apply only to the x86 Install CD version of Ubuntu. If you are running Ubuntu for AMD64, please see HowtoUseNdiswrapperOnAmd64Ubuntu for instructions. These instructions do not apply to Ubuntu for Power PC (PPC) and the Ubuntu Live CDs.
2. Install Necessary Software
2.1. Install the necessary packages
2.1.1. With internet access on an Ubuntu computer
2. Install the ndiswrapper and ndisgtk packages from the Ubuntu repositories. If you don't know how to install applications then you can read [http://help.ubuntu.com/starterguide/C/ch02.html how to here].
2.1.2. With internet access on another computer
- If you do not have a working Internet connection, you can use another computer which is connected to the Internet to download the following packages.
- For 5.04 Hoary Hedgehog
ndisgtk is not in hoary repositories,
not verified but you can try the Breezy app to see if it works. See Breezy section for link.
- For 5.10 Breezy Badger
- For 6.04 Dapper Drake
[http://packages.ubuntu.com/dapper/net/ndisgtk]
At the time of writing, Dapper was not released and so links may change. You can look [http://packages.ubuntu.com/dapper/ here] and search for the packages.
sudo dpkg -i ndiswrapper-utils_1.1-4ubuntu2_i386.deb
sudo dpkg -i ndisgtk_0.5-1ubuntu1_all.deb
If you installed using the Dapper alternate cd, those packages are already part of your repositories. However, ndisgtk is not included on those disks. Put the disk into the drive, start the Synaptic Package Manager from System | Administration and search for Open a Terminal (Applications | Accessories | Terminal), type lspci and press the return/enter key. Look through the output of the lspci command for an entry for your wireless card. Once you have identified your card, note down the contents of the first column, which should look like Now, type lspci -n into the Terminal and press return. Find the PCI ID for your device. Your device will be referred to in the output of the command by the identifier which you just made a note of, e.g. Retrieve the Windows driver corresponding to your chipset. Use the information you have just found and the ndiswrapper [http://ndiswrapper.sourceforge.net/mediawiki/index.php/list list] to find and download the correct files for your card, or one which is very similar. Unpack the Windows driver by using the unzip, cabextract and/or unshield tools (run from the Terminal), and find the INF file (.INF or .inf extension) and the SYS file (.SYS or .sys extension). You may first need to install If there are multiple INF/SYS files, look in the ndiswrapper [http://ndiswrapper.sourceforge.net/mediawiki/index.php/list list] to see if there are any hints about which of them should be used.
If you chose to install ndisgtk, the graphical interface for ndiswrapper, after installation click on System | Administration | Windows wireless drivers and follow the instructions on-screen. For an idea of what to expect, some screenshots of ndisgtk can be found [http://lxer.com/module/newswire/view/46385/ here].
In a Terminal, run the following command: (assuming the driver is in a directory in your home folder called drivers, and is named drivername.inf) ndiswrapper then copies the .inf and sys files into /etc/ndiswrapper/.... Don't forget that the filename you type in is case-sensitive.
Try a different driver such as the drivers for win2k (Windows 2000), or another driver matching the PCI ID on the [http://ndiswrapper.sourceforge.net/mediawiki/index.php/List ndiswrapper list]. Look for additional help. Read HowToGetHelp for more information.
If no errors are given, you should be able to configure the network connection with the Networking tool (System | Administration | Networking). Alternatively, open a Terminal and try the commands ifconfig and iwconfig. Your wireless card should hopefully appear with an interface name of During startup, the system will activate the settings kept in the file /etc/network/interfaces, where the Networking tool saves its settings. Edit the file by hand if you discover settings with iwconfig beyond those on offer with the Networking tool. Also, the Test /etc/network/interfaces by activating and deactivating the wireless network interface from the Terminal, which shows some diagnostic messages:
If everything works, you need to tell your system to load the module when the system starts-up. You can either type the following into the Terminal, which will add the proper line to the /etc/modules file: and add the word ndiswrapper to the end of this file and save it. This error is usually given when ndiswrapper is compiled and installed. You have a bad installation or you didn't remove the module that came with Ubuntu. You need to uninstall ndiswrapper and make sure you remove the ndiswrapper module that came with Ubuntu. Instructions on how to uninstall ndiswrapper can be found [http://ndiswrapper.sourceforge.net/mediawiki/index.php/Uninstall here]
Can't get driver.inf file to install - Sometimes ndiswrapper is used prematurely. There may be a native driver that comes with Ubuntu which is taking the primary driver position and conflicting with ndiswrapper. For more information on this, go to the WirelessTroubleshootingGuide and view the step on device drivers.
You can find the current version of ndiswrapper [http://sourceforge.net/project/showfiles.php?group_id=93482 here]. Using the Terminal, change to the directory where you saved the downloaded file and run the following commands: With the second command, replace [current version] with the actual version of the file you downloaded.
[http://ndiswrapper.sourceforge.net/mediawiki/index.php/Main_Page The ndiswrapper Wiki] HowtoUseNdiswrapperOnAmd64Ubuntu
The commands listed above are a general example of how to install a .deb package from the command line. You need to be in the directory where the files were copied to and you need to replace the file name with the actual name of the package which you are installing. If you are new to the terminal, consider reading BasicCommands.
2.1.3. Without Internet access
2.2. Set up and install drivers
Important: Be careful when using the drivers from the CD included with the wireless card. They may work and you can try them, but you could experience kernel crashes and other serious problems if the driver on your CD has not been tested with ndiswrapper.
0000:00:0c.0. 2.2.1. Graphical instructions
2.2.2. Command line instructions
2.2.2.1. Install the Windows driver
sudo ndiswrapper -i ~/drivers/drivername.inf
2.2.2.2. Checking to make sure the driver was installed correctly
ndiswrapper -l
If the driver is installed correctly, you should see the following output: Installed ndis drivers:
{name of driver} driver present, hardware present
If you don't see this message: 2.2.2.3. Loading the new driver module
wlan0. If it doesn't appear here, then the driver is not working properly. sudo depmod -a
sudo modprobe ndiswrapper
Then, also in a Terminal, check for error messages: tail /var/log/messages
sudo ifdown wlan0
sudo ifup wlan0
For information on getting WPA to work, read the WPAHowto. 2.2.3. Automatically loading at start-up
sudo ndiswrapper -m
or you can add it manually by opening the file with this command: sudo gedit /etc/modules
It is strongly recommended that you make a backup copy of the /etc/modules file before manually editing it.
3. Troubleshooting
Can not modprobe ndiswrapper, fatal error given. sudo killall dhclient
sudo ifconfig eth0 down
3.1. Some common errors
file not found 4. Compiling the latest version of ndiswrapper
This section is based on an ndiswrapper [http://ndiswrapper.sourceforge.net/mediawiki/index.php/InstallDebian wiki page], and was copied from the Ubuntu Forums. The original post can be found [http://ubuntuforums.org/showthread.php?p=601226 here]. Please discuss any problems or errors you experience there. sudo modprobe -r ndiswrapper
sudo apt-get --purge remove ndiswrapper-utils
sudo rm -r /etc/ndiswrapper/
sudo rm -r /etc/modprobe.d/ndiswrapper
sudo rm /lib/modules/`uname -r`/kernel/drivers/net/ndiswrapper/ndiswrapper.ko
4.1. Install kernel headers
sudo apt-get install linux-headers-$(uname -r)
and run the following for the dependencies: sudo apt-get install dh-make fakeroot gcc-3.4 build-essential
4.2. Download and unpack the current version
tar xvfz ndiswrapper-[current version].tar.gz
cd ndiswrapper-[current version]
4.3. Build deb packages and install
fakeroot debian/rules binary-modules
fakeroot debian/rules binary-utils
cd ..
sudo dpkg -i ndiswrapper-modules-[your kernel]_[current version]-1_i386.deb ndiswrapper-utils_[current version]-1_i386.deb
Now go back to the [#install install] section of this document to set up and use your newly installed ndiswrapper package. 5. Useful Links
6. Frequently Asked Questions
WifiDocs/Driver/Ndiswrapper (last edited 2008-08-06 16:19:19 by localhost)