搭建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. JAVA中执行JavaScript代码并获取返回值

    JAVA中执行JavaScript代码并获取返回值 场景描述 实现思路 技术要点 代码实现 测试方法 运行结果 改进空间 场景描述 今天在CSDN上偶然看到一个帖子对于一段字符串 “var p=‘xx ...

  2. 单点登陆cas

    1.TGC:Ticket-granting cookie,存放用户身份认证凭证的cookie,在浏览器和CAS Server间通讯时使用,是CAS Server用来明确用户身份的凭证.TGT封装了TG ...

  3. jmeter+ant+jenkins接口自动化环境搭建

    一.准备   1.安装jdk  --->点击查看安装教程 2.安装jmeter  ,官网下载jmeter解压,配置jmeter环境: JMETER_HOME (解压jdk路径) Path (;% ...

  4. 防范 SQL 注入攻击

     防范 SQL 注入攻击 我们执行的 SQL语句中包含变量,执行的时候会直接把变量内容替换进去.而如果攻击者在输入框中输入一些危险的字符(通常包含 SQL 注释符 --,以及其他预先精心设置的内容), ...

  5. Windows7+IIS+PHP7+MySQL5.7环境搭建

    IIS配置 本次搭建使用的系统是Windows7,Windows8,10与此类似. 开启IIS 开始-->控制面板-->程序和功能,点击左边栏的开启或关闭Windows功能,如图: 选择I ...

  6. Java 异常与反射 总结

    1.异常 异常,简单来说,就是一个程序执行过程中发生的不正常情况的事件.它发生在程序的运行期间,干扰了正常的指令流程.如果没有处理异常,那么出现异常之后,程序会停止运行.异常分为运行异常和非运行异常. ...

  7. 生成二维码图片(tp3.2)

    下载二维码库 放在适合的地方 生成二维码 这里存在表里 效果(查看时)

  8. memcache启动报错:memcached: error while loading shared libraries: libevent-XXXXX5: cannot 。。。。

    创建连接 ln -s /usr/lib/libevent-2.1.so.6  /usr/lib/libevent-2.1.so.6 如果还不行就下面解决 执行下面语句查看链接地址 LD_DEBUG=l ...

  9. [转] IPTables for KVM Host

    IPTables for KVM Host January 26, 2012 By Andrew Galdes Use the following IPTables rules “/etc/sysco ...

  10. [Swift-2019力扣杯春季初赛]2. 校园自行车分配

    在由 2D 网格表示的校园里有 n 位工人(worker)和 m 辆自行车(bike),n <= m.所有工人和自行车的位置都用网格上的 2D 坐标表示. 我们需要为每位工人分配一辆自行车.在所 ...