LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   installing NDIS wrapper in Debian (https://www.linuxquestions.org/questions/debian-26/installing-ndis-wrapper-in-debian-348252/)

COKE CAN 07-30-2005 01:31 AM

installing NDIS wrapper in Debian
 
I added to
Code:

/etc/apt/sources.list
but I get a cuoldn't find error when I try to apt-get it

priller 07-30-2005 05:42 AM

No need to add that into sources, ndiswrapper is in the normall debian mirrors.

just do

Code:

apt-get install ndiswrapper-utils
Code:

apt-get install  ndiswrapper-modules-2.6.8-2-686
and

Code:

apt-get install wireless-tools
if you havn't got wireless tools installed.

COKE CAN 07-30-2005 08:42 AM

Thank you so much! Now what do I do ?!? :scratch:

priller 07-30-2005 08:57 AM

if you've installed ndiswrapper and wireless-tools

Code:

ndiswrapper -i /path/to/file.inf
Code:

ndiswrapper -m
Code:

ifconfig wlan0 up
Code:

dhcpcd wlan0

Tons of Fun 07-30-2005 10:49 AM

you might also need to input your channel #, WEP key (if your running WEP), and ESSID of your WAP. You can get this info by typing:

#iwlist wlan0 scan

Then type the information you got from that command:

#iwconfig wlan0 key XXXXXXXXXXXXXXXXXXXXXXX
#iwconfig wlan0 channel XX
#iwconfig wlan0 essid XXXXX

Finally, if you want your wireless interface to configure at boot, you need to modify your /etc/network/intrfaces file. I use pico for ease of use:

#pico /etc/network/interfaces

Add the following to the file:

# The wireless network interface
auto wlan0
iface wlan0 inet dhcp
name wlan0
wireless-essid XXXXX
wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX
wireless-channel XX

When you reboot, your wireless card should automatically configure itself. I hope this helps.

Good Luck!


:study:

COKE CAN 07-31-2005 01:44 AM

Quote:

Originally posted by priller
if you've installed ndiswrapper and wireless-tools

Code:

ndiswrapper -i /path/to/file.inf
Code:

ndiswrapper -m
Code:

ifconfig wlan0 up
Code:

dhcpcd wlan0

Code:

# ndiswrapper -i /path/to/file.inf
Installing file
cp: cannot stat `/path/to/file.inf': No such file or directory

Code:

# ndiswrapper -m
Adding "alias wlan0 ndiswrapper" to /etc/modutils/ndiswrapper

Code:

# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device

Code:

# dhcpcd wlan0
bash: dhcpcd: command not found


COKE CAN 07-31-2005 01:46 AM

Quote:

Originally posted by Tons of Fun
you might also need to input your channel #, WEP key (if your running WEP), and ESSID of your WAP. You can get this info by typing:

#iwlist wlan0 scan

Then type the information you got from that command:

#iwconfig wlan0 key XXXXXXXXXXXXXXXXXXXXXXX
#iwconfig wlan0 channel XX
#iwconfig wlan0 essid XXXXX

Finally, if you want your wireless interface to configure at boot, you need to modify your /etc/network/intrfaces file. I use pico for ease of use:

#pico /etc/network/interfaces

Add the following to the file:

# The wireless network interface
auto wlan0
iface wlan0 inet dhcp
name wlan0
wireless-essid XXXXX
wireless-key XXXXXXXXXXXXXXXXXXXXXXXXXX
wireless-channel XX

When you reboot, your wireless card should automatically configure itself. I hope this helps.

Good Luck!


:study:


Code:

# iwlist wlan0 scan
wlan0    Interface doesn't support scanning.


priller 07-31-2005 09:18 AM

Quote:

Originally posted by COKE CAN
Code:

# ndiswrapper -i /path/to/file.inf
Installing file
cp: cannot stat `/path/to/file.inf': No such file or directory

Code:

# ndiswrapper -m
Adding "alias wlan0 ndiswrapper" to /etc/modutils/ndiswrapper

Code:

# ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device

Code:

# dhcpcd wlan0
bash: dhcpcd: command not found


When I put /path/to/file.inf I meant the path to where your inf file is from the windows xp drivers.

Code:

apt-get install dhcpcd

COKE CAN 07-31-2005 11:11 AM

Where do I find the .inf file?

Tons of Fun 07-31-2005 11:25 AM

You need the CD with the Windows drivers that came with the network card. Put the CD into your CD drive, and navigate to the drivers folder. Copy over all files in the driver folder except for autorun.inf. Place them in a folder (I put mine in my home folder) and then direct ndiswrapper to the files. For an example, I pulled three files from the CD for my card. I put the CD into the drive, navigated to the Drivers folder, then the Win2K folder. I copied the three files into my home folder. Then while following the instructions above from priller, when I got to the part to point ndiswrapper to the driver, I typed:

#ndiswrapper -i /home/hank/wg311t.inf

I did not point to the other two files, those were support files. Try that and let us know what happens.

Good luck!

:study:

COKE CAN 07-31-2005 11:38 PM

Code:

# ndiswrapper -i /home/wrlssdrvrs/netma401.inf
Installing netma401
cp: cannot stat `/home/wrlssdrvrs/netma401.inf': No such file or directory
laptop:/home/cokecan# ndiswrapper -i /home/wrlssdrvrs/NETMA401.INF
netma401 is already installed. Use -e to remove it


:confused:

priller 08-01-2005 07:08 AM

Code:

modprobe ndiswrapper
you should get something similar to this after running dmesg, it will be near the end if ndiswrapper is installed properly

Code:

wlan0: ndiswrapper ethernet device **:**:**:**:**:** using driver rt2500usb, configuration file *****:****.*.conf
wlan0: encryption modes supported: WEP, WPA with TKIP, WPA with AES/CCMP


COKE CAN 08-01-2005 11:14 AM

Code:

# modprobe ndiswrapper
modprobe: Can't locate module ndiswrapper


priller 08-01-2005 11:34 AM

which kernel version are you using

Code:

uname -r

COKE CAN 08-01-2005 12:56 PM

2.4.27-2-686


All times are GMT -5. The time now is 06:13 PM.