搭建Linux平台的无线热点,需要无线网卡和驱动都要支持 AP。

试了下Ubuntu平台默认驱动并不支持AP模式,所以需要更换驱动,具体操作步骤如下:

1.找到自己网卡芯片的型号,由于我的环境是搭建在本地的虚拟机上的,wifi是usb网卡。所以查找usb设备:lsusb

root@ubuntu:~/rtl8188eus# lsusb
Bus Device : ID 0bda: Realtek Semiconductor Corp. RTL8188EUS .11n Wireless Network Adapter
Bus Device : ID 1d6b: Linux Foundation 2.0 root hub
Bus Device : ID 0e0f: VMware, Inc. Virtual USB Hub
Bus Device : ID 0e0f: VMware, Inc. Virtual Mouse
Bus Device : ID 1d6b: Linux Foundation 1.1 root hub

2.通过查询信息可以或得 RTL8188EUS是我的无线网卡驱动,然后上GitHub搜索。

最终找到这个驱动:https://github.com/quickreflex/rtl8188eus

执行以下命令:

git clone https://github.com/lwfinger/rtl8188eu
make all
make install

make all 的时候可能报错

root@Ubuntu:~/rtl8188eu# make all
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.--generic/build M=/root/rtl8188eu modules
make[]: Entering directory '/usr/src/linux-headers-4.4.0-131-generic'
arch/x86/Makefile:: stack-protector enabled but compiler support broken
arch/x86/Makefile:: CONFIG_X86_X32 enabled but no binutils support
Makefile:: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG: -fstack-protector-strong not supported by compiler
make[]: gcc: Command not found
CC [M] /root/rtl8188eu/core/rtw_ap.o
/bin/bash: gcc: command not found
scripts/Makefile.build:: recipe for target '/root/rtl8188eu/core/rtw_ap.o' failed
make[]: *** [/root/rtl8188eu/core/rtw_ap.o] Error
Makefile:: recipe for target '_module_/root/rtl8188eu' failed
make[]: *** [_module_/root/rtl8188eu] Error
make[]: Leaving directory '/usr/src/linux-headers-4.4.0-131-generic'
Makefile:: recipe for target 'modules' failed
make: *** [modules] Error

这是因为缺少了 build-essential 软件包,它的作用是 提供编译程序必须软件包的列表信息。再更新下 linux-headers-generic

apt-get install linux-headers-generic
apt-get install build-essential

然后再执行 make all 和 make install

3.查询新的驱动:lshw -c network。   driver=rtl8188eu就是我们新安装上去的驱动

root@Ubuntu:~/rtl8188eus# lshw -c network
*-network
description: Ethernet interface
product: 82545EM Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id:
bus info: pci@::01.0
logical name: ens33
version:
serial: :0c::b9:f1:0e
size: 1Gbit/s
capacity: 1Gbit/s
width: bits
clock: 66MHz
capabilities: pm pcix bus_master cap_list rom ethernet physical logical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.-k8-NAPI duplex=full ip=10.1.4.24 latency= link=yes mingnt= multicast=yes port=twisted pair speed=1Gbit/s
resources: irq: memory:fd5c0000-fd5dffff memory:fdff0000-fdffffff ioport:(size=) memory:fd500000-fd50ffff
*-network DISABLED
description: Wireless interface
physical id:
bus info: usb@:
logical name: wlx488ad2a0e0fe
serial: :8a:d2:a0:e0:fe
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8188eu multicast=yes wireless=unassociated

4.无线网络其他命令:

#开启网卡接口服务
ifconfig wlx488ad2a0e0fe up #查看设备上网络信息
iwconfig #默认使用所有无线网卡搜索
iwlist scanning | more #使用特定网卡搜索
iwlist wlx488ad2a0e0fe scan | more
iwlist wlx488ad2a0e0fe scan

提供另一个GitHub上的驱动:https://github.com/lwfinger/rtlwifi_new

Ubuntu 安装网卡驱动的更多相关文章

  1. centOS安装网卡驱动

    作为一个小白来说,安装驱动之类的真是无心下手的感觉,在学习了http://www.centoscn.com/image-text/config/2013/0816/1269.html这篇帖子的步骤之后 ...

  2. windows下给用非exe格式的文件安装网卡驱动

    之前我只知道用驱动精灵来给新机器装网卡驱动,或者用下载好的exe格式文件给非新机器装网卡驱动. 今天下载了一个非exe格式的文件,就不知道怎么装了,百度了一下才知道,可以通过:”设备管理器“-> ...

  3. L10 安装网卡驱动

    一.安装网卡驱动 1. 检查各种依赖包是否安装 2. 安装 加载网卡驱动: ip:

  4. 虚拟机装的XP,无法上网,因为没有安装网卡驱动,怎么解决

    本帖可以解决2个问题: 问题1. 虚拟机装的XP,无法上网,因为没有安装网卡驱动,怎么解决 问题2. 怎么往Oracle VM VirtualBox里传输文件??????? 步骤: 一.在虚拟机的左上 ...

  5. CentOS7下,安装网卡驱动,命令行手动连接WIFI指导

    买了一个无线网卡,型号为TL-WN823N,谁知道在CentOS下没有驱动 于是开始了无线上网的漫漫征途 经历了无数个坑啊,解决了一个又一个的问题啊 到最后ping通的时候成就感简直爆棚 文章结构简介 ...

  6. Ubuntu下用NdisWrapper安装网卡驱动

    下面是一个简单全面的使用NdisWrapper的指南.这是从Beginning Ubuntu Linux, Second Edition中提炼出来的. 这份指南是第8章的一部分.该章给出了在Ubunt ...

  7. 怎样在linux下安装网卡驱动

    由于我电脑的各种奇葩问题的存在,导致我装上Ubuntu13.10之后网卡居然无法使用,坚持了挺久使用无线网,终于坚持不住了,百度了各种解决方式,终于成功解决.这里也记录一下我的解决过程,供大家参考.大 ...

  8. ubuntu安装nVidia驱动,遇到终端闪砾问题并解决

    安装nvidia的官方驱动之后,比起nouvean来说感觉速度快了不少. 安装该驱动很简单,但选择哪个驱动是要注意的.因为今天我试了nvidia的多个驱动后都在ubuntu下用起来并不好. 我现在的环 ...

  9. CentOS下安装网卡驱动

    前言最近,一台机器从FreeBSD换为CentOS,一路安装顺利.完事之后发现,网卡没有启用,dmesg | grep eth 命令确定网卡没有驱动导致的.于是开始了一路艰辛的安装过程. 安装过程1. ...

随机推荐

  1. JavaScript -DOM 编程艺术 2nd 完

    今日看完了这本书,做完了最后一个综合性例子.说实话收获良多,终于明白前端-h5 具体做什么 越学习越无知,这个看来真是一个真理. 后期计划: 1.CSS + DIV 布局深入了解,重点实战 2.Jav ...

  2. B树/[oracle]connect BY语句

    读大神的书,出现很多没有见过的函数和便捷操作,特此记录 connect by 之前没有接触过,为了学习这个语句,先了解一下B树数据类型是最好的方法. [本人摘自以下博客] https://www.cn ...

  3. getElementById和$()获取值一点注意事项

    <script type="text/javascript"> window.onload = function () { var obj = document.get ...

  4. mac 电脑下svn

    mac点下使用的提交代码的方式是:eclipse + svn 的插件实现,总之中间遇到了很多的问题,不过还是都解决了. 前提是你已经安装了jdk. 安装的过程不再赘述直接上链接http://www.c ...

  5. JAVA数据结构之链表

    JAVA数据结构之链表 什么是链表呢? 链表作为最基本的数据结构之一,定义如下: 链表是一种物理存储单元上非连续.非顺序的存储结构,数据元素的逻辑顺序是通过链表中的指针链接次序实现的. 简单来说呢,链 ...

  6. poj 1050 最大子矩阵

    a11   a12   a13   a14   a15 a21   a22   a23   a24   a25 a31   a32   a33   a34   a35 a41   a42   a43  ...

  7. [转] An Introduction to Mutual SSL Authentication

    1. Introduction Mutual SSL authentication or certificate based mutual authentication refers to two p ...

  8. DevOps最佳工具集实践

    在列出DevOps 工具链之前,介绍一下什么是DevOps,虽然DevOps这个概念现在还没有标准的定义,但我们可以追溯一下其过去九年的历史发展过程(从2009年-2017年),列出几个相对明确又有所 ...

  9. Windows 10 IoT Core 17115 for Insider 版本更新

    今天,微软发布了Windows 10 IoT Core 17115 for Insider 版本更新,本次更新只修正了一些Bug,没有发布新的特性. 一些已知的问题如下: F5 driver depl ...

  10. Dubbo 源码分析 - 集群容错之 Router

    1. 简介 上一篇文章分析了集群容错的第一部分 -- 服务目录 Directory.服务目录在刷新 Invoker 列表的过程中,会通过 Router 进行服务路由.上一篇文章关于服务路由相关逻辑没有 ...