标签:des style blog http color os strong io
Ralink RT3290无线网卡驱动安装
(linux, 笔记备忘)
1. 设备信息
查看无线网卡设备信息
1 # lspci 2 02:00.0 Network controller: Ralink corp. Device 3290
2. 驱动下载
http://pan.baidu.com/s/1sjsHNgp
3. 解压,修改,编译,安装
(1) 编辑解压后的 DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/
目录中的 config.mkHAS_NATIVE_WPA_SUPPLICANT_SUPPORT=n
修改为HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
(2) make
(3) make install
4. 配置模块别名
添加 /etc/modprobe.d/wireless.conf 文件,内容如下:
alias ra0 rt3290sta
5. /etc/sysconfig/wpa_supplicant
# Use the flag "-i" before each of your interfaces, like so: # INTERFACES="-ieth1 -iwlan0" INTERFACES="-ira0" # Use the flag "-D" before each driver, like so: DRIVERS="-Dwext" # DRIVERS="" # Other arguments # -u Enable the D-Bus interface (required for use with NetworkManager) # -f Log to /var/log/wpa_supplicant.log # -P Write pid file to /var/run/wpa_supplicant.pid # required to return proper codes by init scripts (e.g. double "start" action) # -B to daemonize that has to be used together with -P is already in wpa_supplicant.init.d OTHER_ARGS="-u -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid"
6. /etc/wpa_supplicant/wpa_supplicant.conf (WPA-PSK)
ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 ap_scan=1 # WPA-PSK network={ ssid="TPLink1" #bssid=74:EA:3A:19:D9:3A key_mgmt=WPA-PSK pairwise=CCMP group=CCMP psk="123456" priority=2 }
7. 启动脚本
#!/bin/bash # This script is used for config the wireless to # connect CHX_DORM # ifconfig ra0 up iwconfig ra0 essid "CHX_DORM" iwconfig ra0 mode Managed #wpa_supplicant -B -ira0 -c /etc/wpa_supplicant/wpa_supplicant.conf service wpa_supplicant start > /dev/null dhclient ra0 ping www.baidu.com -c 1 > /dev/null if [ $? == 0 ]; then echo "success." else echo "failed." fi
8. 参考
(1) http://askubuntu.com/questions/253632/how-do-i-get-a-ralink-rt3290-wireless-card-working
Ralink RT3290无线网卡驱动安装 (linux),布布扣,bubuko.com
标签:des style blog http color os strong io
原文地址:http://www.cnblogs.com/tjm-1990/p/3891070.html