Setting up ndiswrapper is trivial for those "in the know", but here's a How-To to help those who are less experienced.
ndiswrapper-utils is a set of programs which allow .inf files to be used to configure your WiFi card. .inf files are the configuration files used by Microsoft Windows to set up WiFi cards so are readily available. These files can be obtained from your cards (Windows) instalation CD or downloaded from the card manufacturers website. If you are not sure which one to use, try them all.
Select the inf-file you need.
1. Launch synaptic or whatever package management tool you prefer
2. Install the package "ndiswrapper-utils"
3. Call "sudo ndiswrapper -i foobar.inf" where foobar.inf is the path to your inf-file (windows wireless-lan driver).
4. Call "sudo modprobe ndiswrapper" to install the needed module.
5. Now you can set up your working Wlan device under Desktop->Administration->Networking
6. Dont forget to type "ndiswrapper -m" if you want to load it at startup automatically
7. Use the Networking tool to configure networking on the new interface, or edit /etc/network/interfaces by hand to your liking.
A sample from André:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.2.3
# netmask 255.255.255.0
# network 192.168.2.0
# broadcast 192.168.2.255
# gateway 192.168.2.1
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers XXX
# The wireless network interface
auto wlan0
iface wlan0 inet dhcp
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers XXX
wireless_keymode XXX
wireless_key XXX
wireless_essid XXX
8. Now you can call ifup wlan0 and your card will hopefully ready to work.
Contributed by André Kuntze
http://www.ubuntulinux.org/support/docu ... diswrapper
怎样设置Ndiswrapper
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
怎样设置Ndiswrapper
上次由 oneleaf 在 2005-04-15 22:22,总共编辑 1 次。
-
- 帖子: 15
- 注册时间: 2005-04-15 17:24
怎样设置Ndiswrapper
设置ndiswrapper对那些已经知道了的人来说是小菜一碟,不过这篇文档是写给那些没什么经验的人的。
ndiswrapper-utils是让你的无线卡得以使用.inf文件来设置的一组程序。.inf文件是微软windows里让你的无线卡得以工作的配置文件。(即驱动。译者注)你能从你的无线卡的安装光盘里找到它,也可以到无线卡的生产厂家的网站去下载。如果你不知道该用哪个,就都试一下。
选好你需要的.inf文件
1,启动新立得或你喜欢的任何包管理器
2,安装"ndiswrapper-utils"
3,键入"sudo ndiswrapper -i foobar.inf"这里foorbar.inf是你的.inf文件(windows无线卡驱动)
4,键入"sudo modprobe ndiswrapper"来安装需要的模块
5,现在你能在 桌面----〉管理工具----〉网络里设置你的无线设备
6,不要忘了键入"ndiswrapper -m"如果你需要它随系统启动的话
7,在新界面里用 网络工具 来设置你的网络,或者手动编辑/etc/network/interfaces
一个来自André的样本:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.2.3
# netmask 255.255.255.0
# network 192.168.2.0
# broadcast 192.168.2.255
# gateway 192.168.2.1
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers XXX
# The wireless network interface
auto wlan0
iface wlan0 inet dhcp
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers XXX
wireless_keymode XXX
wireless_key XXX
wireless_essid XXX
8,现在你能键入ifup wlan0,而你的无线卡应该可以工作了
André Kuntze投稿
ndiswrapper-utils是让你的无线卡得以使用.inf文件来设置的一组程序。.inf文件是微软windows里让你的无线卡得以工作的配置文件。(即驱动。译者注)你能从你的无线卡的安装光盘里找到它,也可以到无线卡的生产厂家的网站去下载。如果你不知道该用哪个,就都试一下。
选好你需要的.inf文件
1,启动新立得或你喜欢的任何包管理器
2,安装"ndiswrapper-utils"
3,键入"sudo ndiswrapper -i foobar.inf"这里foorbar.inf是你的.inf文件(windows无线卡驱动)
4,键入"sudo modprobe ndiswrapper"来安装需要的模块
5,现在你能在 桌面----〉管理工具----〉网络里设置你的无线设备
6,不要忘了键入"ndiswrapper -m"如果你需要它随系统启动的话
7,在新界面里用 网络工具 来设置你的网络,或者手动编辑/etc/network/interfaces
一个来自André的样本:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet static
# address 192.168.2.3
# netmask 255.255.255.0
# network 192.168.2.0
# broadcast 192.168.2.255
# gateway 192.168.2.1
# # dns-* options are implemented by the resolvconf package, if installed
# dns-nameservers XXX
# The wireless network interface
auto wlan0
iface wlan0 inet dhcp
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers XXX
wireless_keymode XXX
wireless_key XXX
wireless_essid XXX
8,现在你能键入ifup wlan0,而你的无线卡应该可以工作了
André Kuntze投稿
- oneleaf
- 论坛管理员
- 帖子: 10454
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
-
- 帖子: 3
- 注册时间: 2005-04-25 6:13
debian amd64, broadcom bcm94306 (4306) wlan config how to
debian amd64, broadcom bcm94306 (4306) wlan config how to with ndiswrapper
To install you need the ndiswrapper from ndiswrapper.sf.net.
Additionally you must have wlan-tools installed (apt-get install wlan-tools).
Further you need the generic broadcom driver which you can find at the ubuntoforums.org site (http://ubuntuforums.org/attachment.php?attachmentid=186). The downloaded zip file contains a netbc564.inf file which will be used later as a 64bit binary driver for the ndiswrapper.
make shure you have the right kernel-header files installed. To find out which header files you need look at uname -a to get to know your exact kernel version. A apt-cache search kernel-header should bring up the name of the kernel-header package you are looking for. Install it via apt-get install.
now unpack you ndiswrapper into a directory of your choice. cd to it. run make distclean && make && make install as root. afterwards run ndiswrapper -l to list you loaded drivers. it should return zero loaded drivers. This will change in a moment.
unzip the broadcom 64bit zip archive with the netbc564.inf file within. cd to the directory and run ndiswrapper -i netbc564.inf run ndiswrapper -l again. Now you should get netbc564 as loaded in the list.
Now its time to load the ndiswrapper module into your kernel. run modprobe ndiswrapper. If you recieve warnings check dmesg. If you recieve a warning that says you need a different gcc version, simply run apt-get install for the version nummer. For example apt-get install gcc-3.4. Afterwards you should target the symlink gcc in /usr/bin to you gcc installation and recompile everything.
If the loading of the ndidwrapper module worked without errors you can start working with the wlan-tools. Work on iwconfig should enable to bring up your wlan0 interface.
Note: If you want ndiswrapper module to be loaded automatically you must edit /etc/modules.conf manually or run ndiswrapper -m.
Now everything should work. I hope this little how to has helped you a little. Compared to a 32bit installation of the broadcom wlan chipset via ndiswrapper I stumbled accross two barriers: First one was to find the one and only 64bit driver for the broadcom 4306 chipset (at the moment) at ubuntuforums.org and to resolve the problems with the gcc compiler (amd64 bit debian comes with gcc-3.3 preinstalled at the moment while ndiswrapper was looking for gcc-3.4).
To install you need the ndiswrapper from ndiswrapper.sf.net.
Additionally you must have wlan-tools installed (apt-get install wlan-tools).
Further you need the generic broadcom driver which you can find at the ubuntoforums.org site (http://ubuntuforums.org/attachment.php?attachmentid=186). The downloaded zip file contains a netbc564.inf file which will be used later as a 64bit binary driver for the ndiswrapper.
make shure you have the right kernel-header files installed. To find out which header files you need look at uname -a to get to know your exact kernel version. A apt-cache search kernel-header should bring up the name of the kernel-header package you are looking for. Install it via apt-get install.
now unpack you ndiswrapper into a directory of your choice. cd to it. run make distclean && make && make install as root. afterwards run ndiswrapper -l to list you loaded drivers. it should return zero loaded drivers. This will change in a moment.
unzip the broadcom 64bit zip archive with the netbc564.inf file within. cd to the directory and run ndiswrapper -i netbc564.inf run ndiswrapper -l again. Now you should get netbc564 as loaded in the list.
Now its time to load the ndiswrapper module into your kernel. run modprobe ndiswrapper. If you recieve warnings check dmesg. If you recieve a warning that says you need a different gcc version, simply run apt-get install for the version nummer. For example apt-get install gcc-3.4. Afterwards you should target the symlink gcc in /usr/bin to you gcc installation and recompile everything.
If the loading of the ndidwrapper module worked without errors you can start working with the wlan-tools. Work on iwconfig should enable to bring up your wlan0 interface.
Note: If you want ndiswrapper module to be loaded automatically you must edit /etc/modules.conf manually or run ndiswrapper -m.
Now everything should work. I hope this little how to has helped you a little. Compared to a 32bit installation of the broadcom wlan chipset via ndiswrapper I stumbled accross two barriers: First one was to find the one and only 64bit driver for the broadcom 4306 chipset (at the moment) at ubuntuforums.org and to resolve the problems with the gcc compiler (amd64 bit debian comes with gcc-3.3 preinstalled at the moment while ndiswrapper was looking for gcc-3.4).
- millenniumdark
- 论坛版主
- 帖子: 4159
- 注册时间: 2005-07-02 14:41
- 系统: Ubuntu 14.04 (Kylin)
- 联系: