Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Wireless Internet > ndiswrapper + NetworkManager Tutorial

Forgot Password?
 Wireless Internet   Anything related to getting wireless set up in Linux. WLAN, WiFi, etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 08-05-2009   #1 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 29
ndiswrapper + NetworkManager Tutorial

This is intended for Ubuntu, but it might work for other distro's I am not sure. In place of sudo if you dont have it. use su.

update with: sudo update-manager -d
install ndiswrapper. Find the native windows drivers for your wireless card. in my case i had to use netgears wn311t. When they were extracted i would get netmw14x.inf (the driver).
find out what the device number is (forget what its called exatly) but it will be ####:#### (it will have letters) so do a "lspci -nn" minus the quotes.
it will show a list of stuff with network devices and such, Find your wireless adaptor and on the line with it it will have something like:
00:04.0 Ethernet controller [0200]: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet [1039:0900] (rev 91)

Im not booted into linux so im ssh'd into my shell. but your wireless card will show something like that. note down the numbers nad letters inside the [####:####]

"sudo ndiswrapper -i driver.inf" (/etc/ndiswrapper will create a folder named "netmw14x" inside it. make sure you are in the directory with the driver file. and dont forget the .inf part).

"sudo ndiswrapper -a 11ab:2a08 netmw14x" (lspci -nn will show device ids. with different versions of ndiswrapper it might be -d. but do sudo ndiswrapper -a or -d depending on your version. "ndiswrapper -a ####:#### driver" notice the driver on this one doesnt have the .inf part )

"sudo ndiswrapper -l" will now say the device is present and it can be configured normally.

after that you'll want to edit your network manager so you can use it with the wireless adaptor. so do

sudo gedit /etc/NetworkManager/nm-system-settings.conf
under [ifupdown], change managed=true

after youll want to add your alias with ndiswrapper so

"sudo ndiswrapper -m"

next youll want to make the module dependencies (its like a makefile) so do:

"sudo depmod -a"

and then youll want to load the modules so it will work:

"sudo modprobe ndiswrapper"

and then

"sudo ifup wlan0"


an overview of commands

1. sudo apt-get install ndiswrapper-common
2. sudo ndiswrapper -i driver.inf
3. lspci -nn (note down the device id)
4. sudo ndiswrapper -a ####:#### driver
5. sudo ndiswrapper -m
6. sudo gedit /etc/NetworkManager/nm-system-settings.conf (change managed to true)
7. sudo depmod -a
8. sudo modprobe ndiswrapper
9. sudo ifup wlan0

and your wireless should show up in the network manager

[edit] atleast thats all waht worked for me. i tried for months to get wireless to work and it wouldnt. the only thing i didnt do was change the managed to true which made it work. an easier way to install the driver though is using ndisgtk so you dont have to go through all the hassle of running commands. as it says ndisgtk gimp toolkit so its for x instead of a command line.
kr0nik is offline  


Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 03:16 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2