Wi-Fi ASUS USB-N13 Linux Driver?
Не могу понять, как установить driver Wi-Fi на Debian.
- $tar -xvzf DPB_RT2870_Linux_STA_x.x.x.x.tgz go to «./DPB_RT2870_Linux_STA_x.x.x.x» directory.
- In Makefile set the «MODE = STA» in Makefile and chose the TARGET to Linux by set «TARGET = LINUX» define the linux kernel source include file path LINUX_SRC modify to meet your need.
- In os/linux/config.mk define the GCC and LD of the target machine define the compiler flags CFLAGS modify to meet your need. ** Build for being controlled by NetworkManager or wpa_supplicant wext functions Please set ‘HAS_WPA_SUPPLICANT=y’ and ‘HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y’. => #>cd wpa_supplicant-x.x => #>./wpa_supplicant -Dwext -ira0 -c wpa_supplicant.conf -d ** Build for being controlled by WpaSupplicant with Ralink Driver Please set ‘HAS_WPA_SUPPLICANT=y’ and ‘HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n’. => #>cd wpa_supplicant-0.5.7 => #>./wpa_supplicant -Dralink -ira0 -c wpa_supplicant.conf -d
- $make # compile driver source code # To fix «error: too few arguments to function ЎҐiwe_stream_add_event» => $patch -i os/linux/sta_ioctl.c.patch os/linux/sta_ioctl.c
- $cp RT2870STA.dat /etc/Wireless/RT2870STA/RT2870STA.dat
- load driver, go to «os/linux/» directory. #[kernel 2.4] # $/sbin/insmod rt2870sta.o # $/sbin/ifconfig ra0 inet YOUR_IP up #[kernel 2.6] # $/sbin/insmod rt2870sta.ko # $/sbin/ifconfig ra0 inet YOUR_IP up
- unload driver $/sbin/ifconfig ra0 down $/sbin/rmmod rt2870sta
Я не понимаю почти всё. Разве что, вроде бы, понимаю шаг 1, что нужно разархивировать содержимое. Не понимаю, что значит «set the „MODE = STA“, „TARGET = LINUX“ и так далее.
Если кто-нибудь может объяснить по порядку, что нужно сделать, я буду очень благодарен.
Linux Mint Forums
Welcome to the Linux Mint forums!
Installing driver for ASUS USB-N13
Installing driver for ASUS USB-N13
Post by JGrand2859 » Fri May 03, 2013 6:16 pm
I am totally new to Linux so please bear with me.
My relative recently gave me a computer: Dell Optiplex 755 SFF running Linux Mint 14 64-bit.
I currently have a Linksys wireless router and the computer is hooked up to it with an ethernet cable.
Since that cable is 25′ long, I decided to get a wireless adapter.
I bought ASUS USB-N13 because it said it was Linux compatible.
The problem is the adapter came with an installation CD but the computer doen’t have a CD/DVD drive.
I did some research trying to download a file to install a driver for it but all the instructions were way beyond my ability
to comprehend and execute.
I hardly have any knowledge of Linux. I am so used to Windows XP and it is extremely hard to understand how Linux works.
Does anybody know how to install a driver for this adapter? Which file do I need to download? After downloading the file, what do I need to do?
Can I get a step by step instruction how to do it?
I would appreciate it very much. Thank you.
Re: Installing driver for ASUS USB-N13
Post by trapperjohn » Fri May 03, 2013 6:45 pm
Odd. This adaptor works out of the box for me on Mint.
When you plug it in does the light come on?
If not, then run these two commands:
sudo modprobe rt2800usb
sudo modprobe rt2x00usb
After running these commands, does the light come on?
sudo lshw -c network
In the output, do you see any device with a logical name like wlan0 or wlan1
If you do, run ‘sudo ifconfig wlan0’ or ‘sudo ifconfig wlan1’ (which ever one you saw). Does the light come on now?
If any of this worked, then we will need to make the changes persistant so you don’t have to go through the whole song and dance everytime you boot. Let me know.
Re: Installing driver for ASUS USB-N13
Post by JGrand2859 » Fri May 03, 2013 10:30 pm
trapperjohn-Thank you so much for your prompt reply.
The blue light is on but when I try to connect to wireless network, it fails.
When I click Windows Wireless Drivers, there isn’t anything currently installed.
Does it have to do with the adapter not working?
Re: Installing driver for ASUS USB-N13
Post by trapperjohn » Sat May 04, 2013 10:42 am
The Windows Wireless Drivers menu item should not be used with this adaptor (it’s a dead end road). You will be using the Linux drivers. The N13 will work in Mint with native drivers and does not need the Windows Driver work-around. Also, trying to use the Windows version invariably fails.
The LED turning on when you plug it in is a good sign. It means that a driver is being loaded. It appears to be either the wrong one or there is a driver conflict.
Let’s look and see what drivers are being loaded. This device hardware drivers are called «modules» in Linux. With the device plugged in, list the hardware drivers (lsmod). It will show too many things. You can shorten the listing by running ‘lsmod | grep rt2’ (without the quotes). Here is what I see:
lsmod | grep rt2
rt2800usb 22300 0
rt2800lib 53264 1 rt2800usb
crc_ccitt 12595 1 rt2800lib
rt2x00usb 20061 1 rt2800usb
rt2x00lib 48858 3 rt2800usb,rt2800lib,rt2x00usb
mac80211 436455 3 rt2800lib,rt2x00usb,rt2x00lib
cfg80211 178679 3 rt2x00lib,mac80211,wl
If all is well, you will see rt2800usb, rt2800lib, rt2x00usb, and rt2x00lib in the list. These are the four loaded modules that work for me. Ideally you will see them and not see any conflicting drivers in your list. Post the output from you list.
Let’s also look at a couple other things while we’re at it. List all of your machine’s recognized netwrok devices with ‘lshw -c network’ You will probably see two. One should have «bus info: usb@something.» This is your usb and it will also show a logical name. Is yours wlan0?
Also, run ‘iwlist scan’ Do you see a list that has one or more entries with the words ESSID:»something» ?
Then run ‘cat /etc/modprobe.d/blacklist’ and post the results. This is a list of modules that your OS will not load. We may have to change it.
Also, run lsusb. Do you see «Bus 002 Device 006: ID 0b05:1784 ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter [Ralink RT3072]» in your output?
Sorry it’s been a rat’s nest. I have had problems (solvable) on other Linux distros with this adaptor. Hopefully it will be a fairly simple fix. Yes the device is compatible and I doubt yours is defective.
Re: Installing driver for ASUS USB-N13
Post by JGrand2859 » Sat May 04, 2013 1:11 pm
Thank you again, trapperjohn.
lsmod | grep rt2
Blank. It shows nothing.
lshw -c network
WARNING: you should run this program as super-user.
*-network
description: Ethernet interface
product: 82566DM-2 Gigabit Network Connection
vendor: Intel Corporation
physical id: 19
bus info: pci@0000:00:19.0
logical name: eth0
version: 02
serial: 00:1e:c9:75:34:54
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.0.0-k firmware=1.4-0 latency=0 multicast=yes port=twisted pair
resources: irq:42 memory:fe9e0000-fe9fffff memory:fe9db000-fe9dbfff ioport:ecc0(size=32)
*-network
description: Wireless interface
physical id: 1
bus info: usb@1:1
logical name: wlan0
serial: 08:60:6e:cf:28:91
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192cu driverversion=3.5.0-17-generic firmware=N/A ip=192.168.1.109 multicast=yes wireless=IEEE 802.11bgn
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
berrett@DellPC
$ iwlist scan
eth0 Interface doesn’t support scanning.
lo Interface doesn’t support scanning.
wlan0 Scan completed :
Cell 01 — Address: F8:7B:8C:06:10:BF
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=68/70 Signal level=-42 dBm
Encryption key:on
ESSID:»Amped_Wireless»
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s
Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
Mode:Master
Extra:tsf=00000067053714fb
Extra: Last beacon: 10660ms ago
IE: Unknown: 000E416D7065645F576972656C657373
IE: Unknown: 010882848B960C121824
IE: Unknown: 03010B
IE: Unknown: 2A0100
IE: Unknown: 32043048606C
IE: Unknown: 2D1A2C181EFFFF000000000000000000000000000000000000000000
IE: Unknown: 3D160B000000000000000000000000000000000000000000
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
IE: Unknown: DD1E00904C332C181EFFFF000000000000000000000000000000000000000000
IE: Unknown: DD1A00904C340B000000000000000000000000000000000000000000
IE: Unknown: DD0600E04C0201E0
IE: Unknown: DD9E0050F204104A0001101044000102103B0001031047001063041253101920061228F87B8C0610BF1021001B5265616C74656B2053656D69636F6E647563746F7220436F72702E1023000752544C387878781024000D45562D323030392D30322D30361042000F3132333435363738393031323334371054000800060050F2040001101100135265616C74656B20576972656C657373204150100800020086
cat /etc/modprobe.d/blacklist
cat: /etc/modprobe.d/blacklist: No such file or directory
lsusb
Bus 001 Device 014: ID 0b05:17ab ASUSTek Computer, Inc. USB-N13 802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]
Bus 006 Device 002: ID 046d:c016 Logitech, Inc. Optical Wheel Mouse
Bus 007 Device 002: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
The funny thing is when you just plug it in, the light turns on and now at least wireless network is established.
This network is by the wireless repeater and not the main one by the wireless router.
When I try to switch to the main one, I keep getting this «wireless network authentication required» message
over and over again even after I type the password and click connect. Then I get «connection failed. Activation of
network connection failed» message. I don’t know what is going on but as long as I leave it alone, I get connection
so this is good enough for me. If I have a problem again, I will post.
Thank you so much.