Ralink RT3290无线网卡驱动安装 (linux)

 

Ralink RT3290无线网卡驱动安装
(linux, 笔记备忘)

 

1. 设备信息
查看无线网卡设备信息

1 # lspci 
2 02:00.0 Network controller: Ralink corp. Device 3290

 

2. 驱动下载
https://pan.baidu.com/s/1bplRwxp

 

3. 解压,修改,编译,安装
(1) 编辑解压后的 DPO_RT3290_LinuxSTA_V2600_20120508/os/linux/目录中的 config.mk

HAS_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
#

kill -9 $(ps -ef|grep -E 'dhclient|wpa' | awk '$0 !~ /grep/ {print $2}') 2> /dev/null

ifconfig ra0 up
#iwconfig ra0 essid "CHX_DORM"
#iwconfig ra0 essid "YHEM"
#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."
    exit 0
else
    echo "failed."
    exit 1
fi

 把该启动脚本加入 /etc/rc.local

 

 8. 参考
(1) http://askubuntu.com/questions/253632/how-do-i-get-a-ralink-rt3290-wireless-card-working

 

 

 

 

转载于:https://www.cnblogs.com/goooogs/p/3891070.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值