1,下载驱动

https://github.com/lwfinger/rtl8188eu

使用注意:

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

2.编译安装

 $make  
    $sudo make install

3.关于hostapd的配置文件

# Basic configuration

interface=wlan0
ssid=11111
channel=10
#bridge=br0 # WPA and WPA2 configuration macaddr_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 configuration driver=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.手机收到信号后,连接不上,显示身份信息验证失败

后来尝试了很多办法

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

报错:

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

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

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

其他参考

sudo gedit /etc/hostapd/hostapd.conf

http://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 configuration

interface=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 configuration driver=rtl871xdrvXDJ
ieee80211n=1
hw_mode=g
device_name=RTL8192CU
manufacturer=Realtek
xdj@xdj-MS-:~$ sudo ifconfig wlan0 up
[sudo] password for xdj:
xdj@xdj-MS-:~$ sudo hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=
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=
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr ::::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, :::ea::e3 is sta's address
wlan0: STA :::ea::e3 IEEE 802.11: associated
wlan0: STA :::ea::e3 RADIUS: starting accounting session 53D9F19B-

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 contributors usage: 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

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

Ubuntu下成功安装台式机网卡realtek的rtl8188eu芯片驱动并实现AP功能的更多相关文章

  1. ubuntu下终于安装好了nvidia的gt540显卡驱动

    ubuntu下终于安装好了nvidia的gt540显卡驱动.估计好多童鞋怕麻烦都放弃安装了哈. 先看看效果. ~$ lspci |grep -i vga :) :00.0 VGA compatible ...

  2. Ubuntu下成功安装QQ2013

    阳光小强最近用Win8系统感觉特别不爽,中午果断换了一个win7系统,又想着能不能搞个双系统(最近在看一些linux东西),于是就开始整起来.结果并不好,linux虽然整好了,但是硬盘全部格式化了,当 ...

  3. Torch7在Ubuntu下的安装与配置

    Torch7的本系列教程的主要目的是介绍Torch的入门使用.今天首先分享一下Torch7的安装.(在Ubuntu14.04安装torch7) 为什么选择Torch Torch的目标是在建立科学算法的 ...

  4. ubuntu下git安装及使用

    ubuntu下git安装及使用   其实,好几个月前,就已经安装好了,可是一直搁置在那儿,所以密码等一些其它细节都忘的差不多了,所以今天就重新部署了一下,并开始积极使用......... 1,git ...

  5. Ubuntu下Zabbix安装及使用问题

    1.configure: error: MySQL library not found MySQL library not found root@kallen:~# apt-get install l ...

  6. Ubuntu下apache2安装配置(内含数字证书配置)

    Ubuntu下apache2安装配置(内含数字证书配置)安装命令:sudo apt-get updatesudo apt-get install apache2 配置1.查看apache2安装目录命令 ...

  7. [转]:Ubuntu 下Apache安装和配置

    [转]:Ubuntu 下Apache安装和配置_服务器应用_Linux公社-Linux系统门户网站  https://www.linuxidc.com/Linux/2013-06/85827.htm ...

  8. Ubuntu下编译安装postgreSQL 10.5

    Ubuntu下编译安装postgreSQL 10.5 ubuntu 16.04 LTS系统postgreSQL 10.5 安装包准备 1.从PostgreSQL官网下载PostgreSQL的安装包 安 ...

  9. 在Ubuntu下编译安装GreatSQL

    在Ubuntu下编译安装GreatSQL 本次介绍如何利用Docker构建Ubuntu环境,并将GreatSQL源码编译成二进制文件. 1.准备工作 先创建本次Docker的workdir为 /dat ...

随机推荐

  1. 【spring源码学习】spring的事件发布监听机制源码解析

    [一]相关源代码类 (1)spring的事件发布监听机制的核心管理类:org.springframework.context.event.SimpleApplicationEventMulticast ...

  2. 2.2 web工程的目录结构

    [转] 一个最简单的Web应用的目录结构如下所示: Web应用的结构定义在Servlet的规范中,目前最新版本为3.1. 下载地址:https://jcp.org/aboutJava/communit ...

  3. Pycharm简单使用教程

    转自https://blog.csdn.net/qq_40130759/article/details/79421242 1.下载pycharm pycharm是一种Python IDE,能够帮助我们 ...

  4. 数据立方体----维度与OLAP

    前面的一篇文章——数据仓库的多维数据模型中已经简单介绍过多维模型的定义和结构,以及事实表(Fact Table)和维表(Dimension Table)的概念.多维数据模型作为一种新的逻辑模型赋予了数 ...

  5. mysql导入导出表结构

    mysql导入导出表结构 导出整个库的表结构如下:mysqldump -uroot -p -d databasename > createtab.sql 如果只想导出表: test1,test2 ...

  6. CAN总线概述

    基本概念 CAN 是Controller Area Network 的缩写(以下称为CAN),是ISO国际标准化的串行通信协议.在汽车产业中,出于对安全性.舒适性.方便性.低公害.低成本的要求,各种各 ...

  7. FPGA前世今生(三)

    上期介绍了关于FPGA的IOB单元,这期我们介绍一下FPGA内部的其他资源,这些都是学好FPGA的基础.不管前世的沧桑,还是后世的风光,我们都要把我现在的时光,打好基础,学好FPGA. 大多数FPGA ...

  8. 分布式缓存系统 Memcached 基本配置与命令

    为了方便测试,给出一个C客户端libmemcached链接:https://launchpad.net/libmemcached/ 以及memcacheclient-2.0 : http://code ...

  9. 分布式缓存系统 Memcached 状态机之网络数据读取与解析

    整个状态机的基本流程如下图所示,后续分析将按该流程来进行. 接上节分解,主线程将接收的连接socket分发给了某工作线程,然后工作线程从任务队列中取出该连接socket的CQ_ITEM,开始处理该连接 ...

  10. mysql索引之六:mysql高效索引之覆盖索引

    概念 如果索引包含所有满足查询需要的数据的索引成为覆盖索引(Covering Index),也就是平时所说的不需要回表操作 判断标准 使用explain,可以通过输出的extra列来判断,对于一个索引 ...