Last active
March 9, 2021 05:42
-
-
Save trungnt13/af34699785c1a5cc692c2363b0b378aa to your computer and use it in GitHub Desktop.
Install windows driver for usb wireless adapter on Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get udpdate | |
sudo apt-get install linux-headers-$(uname -r) | |
sudo apt-get install linux-generic linux-headers-generic build-essential | |
sudo apt-get install unzip | |
# Install ndiswrapper: | |
sudo apt search ndiswrapper | |
sudo apt-get install ndiswrapper-common ndiswrapper-dkms ndiswrapper-utils-1.9 | |
# Or build ndiswrapper 1.57 | |
wget https://sourceforge.net/projects/ndiswrapper/files/stable/ndiswrapper-1.57.tar.gz | |
tar -xvf ndiswrapper-1.57.tar.gz | |
cd ndiswrapper-1.57 | |
make | |
sudo make install | |
sudo depmod -a | |
sudo update-initramfs -u | |
# Download XP driver for linksys AE1200 | |
wget http://downloads.linksys.com/downloads/driver/1224667593495/AE1200xp.zip | |
unzip AE1200xp.zip | |
cd xp | |
rm -rf AE1200xp64.sys AE2500xp64.sys bcmh43xx64.cat bcmwlcoi64.dll bcmwlhigh5.inf | |
# Install drivers: | |
# You should try one-by-one each driver for XP (only XP driver) | |
# For linksys AE1200, modify the XP driver: | |
# Find section that looks like this: | |
# [Linksys_AE2500.files.NT] | |
# AE2500xp.sys,,,6 | |
# Underneath it, add this: | |
# [Linksys_AE1200.files.NTamd64] | |
# AE1200xp64.sys,,,6 | |
# [Linksys_AE2500.files.NTamd64] | |
# AE2500xp64.sys,,,6 | |
sudo ndiswrapper -i bcmwlhigh5.inf # MUST USE ABSOLUTE PATH HERE | |
sudo ndiswrapper -l | |
# Load ndiswrapper module: | |
sudo ndiswrapper -m | |
sudo ndiswrapper -ma | |
sudo ndiswrapper -mi | |
sudo depmod -a | |
sudo modprobe ndiswrapper | |
# When Ubuntu start (add ndiswrapper as a new line): | |
sudo gedit /etc/modules | |
############ | |
# Remove ndiswrapper | |
# If there are errors, then we need to uninstall | |
sudo ndiswrapper -e bcmwlhigh5 | |
sudo modprobe -rf ndiswrapper | |
sudo apt-get remove --purge ndiswrapper* ndisgtk | |
sudo rm /etc/modprobe.d/ndiswrapper.conf | |
sudo rm -r /etc/ndiswrapper/* | |
sudo rm /lib/modules/$(uname -r)/kernel/ubuntu/ndiswrapper/ndiswrapper.ko | |
############# | |
# Debug | |
dmesg | egrep 'ndis|country' | |
iwconfig | |
iwlist chan | |
sudo iwlist scan | |
sudo modprobe -v ndiswrapper | |
# https://ubuntuforums.org/showthread.php?t=1805830&page=8&p=11811107#post11811107 |
Did you mean:
Sudo apt-get update
On line one?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
and I have a problom within line 36:
bcmwlhigh5 : invalid driver!
what I wrong to do?