Ubuntu下成功安装台式机网卡realtek的rtl8188eu芯片驱动并实现AP功能

news/2024/10/27 20:39:36/

1,下载驱动

https://github.com/lwfinger/rtl8188eu

使用注意:

https://github.com/lwfinger/rtl8188eu/issues/3

2.编译安装

 $make  
    $sudo make install 

3.关于hostapd的配置文件

# Basic configurationinterface=wlan0
ssid=11111
channel=10
#bridge=br0# WPA and WPA2 configurationmacaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=123456789
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP# Hardware configurationdriver=rtl871xdrv
ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek
••••••••••

 4.基本操作

sudo ifconfig wlan1 up //打开端口
sudo hostapd -B /etc/hostapd/hostapd.conf
sudo hostapd  -d /etc/hostapd/hostapd.conf
sudo hostapd /etc/hostapd/hostapd.conf

5.手机搜索不到SSID(wifi热点的名字)

在网上找到

手机收不到SSID
系统是archlinux,做软ap。之前是运行一个ad-hoc的脚本,有些android手机不支持ad-hoc模式,就安装了hostapd,
运行 # hostapd  -d /etc/hostapd/hostapd.conf
手机可以连上&上网
重启电脑再运行hostapd,手机就不能获取ip地址了。必须运行ad-hoc脚本,再运行hostapd才行。
是不是哪里没有设置好?
另外,手机连上ap后似乎不能建立安全链接,wifi信号是灰色的不是蓝色,gtalk不能登录,但能看到在线好友?????

于是就编辑了一个ad-hoc的wifi热点,热点名称与hostapd中配置的名称一样,这里为”11111“

显示“11111”已连接上网络,然后就可以收到SSID 的信号(信号由hostapd产生)。

6.手机收到信号后,连接不上,显示身份信息验证失败

后来尝试了很多办法

你可以检查:
1、你的AP或无线路由器和你终端的加密方式是否相同
2、密钥有没有设置对
3、密钥是字符还是ASCII码
4、无线网络经常会有相同SSID的,你联的无线网络是不是要联的。
hostapd基本配置
http://www.cnblogs.com/zhuwenger/archive/2011/03/11/1980294.html

报错:

+rtl871x_get_sta_wpaie, 00:08:22:68:de:cd is sta's address
wlan0: STA 00:08:22:68:de:cd IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
wlan0: STA 00:08:22:68:de:cd IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 00:08:22:68:de:cd
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_sta_remove_ops, 00:08:22:68:de:cd is sta address removed
+rtl871x_get_sta_wpaie, 00:08:22:68:de:cd is sta's address
wlan0: STA 00:08:22:68:de:cd IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
wlan0: STA 00:08:22:68:de:cd IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 00:08:22:68:de:cd
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_sta_remove_ops, 00:08:22:68:de:cd is sta address removed

还是不行,后来想想hostapd产生的SSID应该与ad-hoc产生的wifi热点没关系,只是需要启动一下ad-hoc而已。

看了看手机收到的SSID,选定静态配置(没有用到DHCP),然后及可以并使用了。

其他参考

sudo gedit /etc/hostapd/hostapd.confhttp://my.oschina.net/syscde/blog?disp=2
查看系统资源 gnome-system-monitor驱动 /rtl8188eu
可用的hostapd  home/xdj/RTL8188-hostapd-1.1/src      
home/xdj/RTL8188-hostapd/src

成功:

rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
+rtl871x_send_eapol
rtl871x_set_key_ops
wlan0: AP-STA-CONNECTED 00:08:22:6a:c5:4f
wlan0: STA 00:08:22:6a:c5:4f RADIUS: starting accounting session 53D0F5EA-00000000
wlan0: STA 00:08:22:6a:c5:4f WPA: pairwise key handshake completed (RSN)
+rtl871x_send_eapol
wlan0: STA 00:08:22:6a:c5:4f WPA: group key handshake completed (RSN)
rtl871x_set_key_ops

 

不含有WEP和WPA(IEEE802.11i)验证的hostapd.conf

# Basic configurationinterface=wlan0
ssid=XDJ
channel=6
bridge=br0# WPA and WPA2 configuration#macaddr_acl=0
#auth_algs=1
#wmm_enabled=0 
#ignore_broadcast_ssid=0
#wpa=3
#wpa_passphrase=12345678
#wpa_key_mgmt=WPA-PSK
#wpa_pairwise=TKIP
#rsn_pairwise=TKIP CCMP# Hardware configurationdriver=rtl871xdrvXDJ
ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek

 

xdj@xdj-MS-7519:~$ sudo ifconfig wlan0 up
[sudo] password for xdj: 
xdj@xdj-MS-7519:~$ sudo hostapd /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_packet_init: ioctl[SIOCGIFINDEX]: No such device
no br0 interface , let l2_sock_recv==l2_sock_xmit=0x0x86b2648
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 08:57:00:37:d3:9e and ssid 'XDJ'
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
rtl871x_set_beacon_ops
+rtl871x_get_sta_wpaie, 00:08:22:ea:27:e3 is sta's address
wlan0: STA 00:08:22:ea:27:e3 IEEE 802.11: associated
wlan0: STA 00:08:22:ea:27:e3 RADIUS: starting accounting session 53D9F19B-00000000

 

 IPV4设置方法:1.与其他计算机共享

                           需要IPV4完成这个连接(不选)

无线提示连接上, 产生稳定的SSID,连接不上,hostapd没有反应。

        需要IPV4完成这个连接(选)

手机能连接上网,容易断线。

 

        2.已禁用

无线提示连接不上,产生不了稳定的SSID。

----------------------------------------------------------------------------------------------------------------------------------------------

 

##更多关于hostapd的操作

xdj@xdj-MS-7519:~$ sudo hostapd /etc/hostapd/hostapd.conf -D
hostapd: invalid option -- 'D'
hostapd v0.8.x
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2011, Jouni Malinen <j@w1.fi> and contributorsusage: hostapd [-hdBKtv] [-P <PID file>] <configuration file(s)>options:-h   show this usage-d   show more debug messages (-dd for even more)-B   run daemon in the background-P   PID file-K   include key data in debug messages-t   include timestamps in some debug messages-v   show hostapd version

 ------------------------------------------------------------------------------------------------------------------------------------

 

转载于:https://www.cnblogs.com/XDJjy/p/3866534.html


http://www.ppmy.cn/news/702079.html

相关文章

深入学习tombstone和signal

三驾马车&#xff08;CPU&#xff0c;内存和存储设备&#xff09;中&#xff0c;跑得最慢的就是存储设备了 电脑上&#xff0c;从HDD 到SSD&#xff0c;从SATA SSD到PCIe SSD&#xff0c;硬盘是越来越快&#xff1b; 手机上&#xff0c;从SD卡&#xff0c;到eMMC卡&#xff0…

Android 4.2系统的手机使用LEAP企业Wifi网络 ( by quqi99 )

作者&#xff1a;张华 发表于&#xff1a;2013-12-05 版权声明&#xff1a;可以任意转载&#xff0c;转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明 ( http://blog.csdn.net/quqi99 ) 大家知道&#xff0c;企业里的wifi很多是采用Cisco公司的LEAP加密的&…

将树莓派Raspberry Pi设置为无线路由器(WiFi热点AP,RTL8188CUS芯片)

本文是基于在某东购买的usb无线网卡&#xff08;RTL8188CUS芯片&#xff09;来制作无线热点。本来想制作一个一键脚本。只是先把实现的过程记录下来。 參考文章 Turn Your Raspberry Pi Into a WiFi Hotspot with Edimax Nano USB EW-7811Un (RTL8188CUS chipset) Why won’t d…

andorid/iphone 手机通过 wifi 连接笔记本 无线网卡 共享上网

目的 andorid/iphone 手机通过 wifi 连接笔记本 无线网卡 共享上网&#xff01; 环境 OS ubuntu 10.04 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011 x86_64 GNU/Linux wlan Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (…

Jetson nano部署Yolov5 ——从烧录到运行 1:1复刻全过程

前言 因为一次竞赛接触了jetson nano和yolov5&#xff0c;网上的资料大多重复也有许多的坑&#xff0c;在配置过程中摸爬滚打了好几天&#xff0c;出坑后决定写下这份教程供大家参考 事先声明&#xff0c;这篇文章的许多内容本身并不是原创&#xff0c;而是将配置过程中的文献…

手机音质变差_手机听歌音质差?这些音质大坑你跳了几个

随着手机的普及&#xff0c;MP3随身听的市场已经被挤压成为了绝对的非主流&#xff0c;手机听歌成为了越来越多人的日常。 不过&#xff0c;大多数人手机听歌只是图个方便&#xff0c;一旦讨论起手机的音质&#xff0c;大家似乎都不怎么抱以期待。 的确&#xff0c;除了某些内置…

【AI简报20210730期】黑芝麻A1000 Pro自动驾驶芯片流片成功、地平线征程 5 芯片发布...

超级盛会&#xff01;哈哈&#xff0c;不是奥运会&#xff0c;不过同样激动人心~ 1. RT-Thread首届全球技术峰会开放报名&#xff01; 原文: https://mp.weixin.qq.com/s/VA1EkB9zfkx3vZMRwWE-QA 经过多年的努力&#xff0c;在多方的支持和倡议下&#xff0c;RT-Thread决定发起…

rman将rac环境恢复到单机,删除redo告警ORA-01623 ORA-00312

将rac环境迁移单机后&#xff0c;删除redo的thread 2告警&#xff0c;告警信息如下 SQL> select thread#,status,enabled from v$thread; THREAD# STATUS ENABLED ---------- ------ -------- 1 OPEN PUBLIC 2 CLOSED PUBLIC SQL> select group#,thread#,a…