搭建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. 实践中 XunSearch(讯搜)更新索引方案对比

    检测PHP-SDK的运行条件(查看是否支持XunSearch)   $prefix/sdk/php/util/RequiredCheck.php $prefix #替换成你的安装目录 使用 XunSe ...

  2. Prometheus Alert Rules with Some Metrics

    Using Prometheus as a monitor system, it is quite efficent. The most important one is that alert tem ...

  3. Strusts2

    Strusts2的原理很简单,首先,地址栏输入http://xxxx/xxxx/webapp/xx.action首先,请求会通过httpservlet发送给tomcat容器,tomcat发现这个请求是 ...

  4. Android Stdio的问题

    昨天还是可以运行的,今天运行Android Studio,一直提示:Error running app: Instant Run requires 'Tools | android | Enable ...

  5. Postman SMTP 存在跨站脚本(XSS)漏洞,请换用Post SMTP Mailer/Email Log

    Postman SMTP 是一个安装量超过10W的WordPress插件,但是已经2年多没有更新,2017年6月29日,被发现存在跨站脚本(XSS)漏洞(查看详情),并且作者一直没有更新,所以被从Wo ...

  6. PyCharm远程开发和调试

    PyCharm进行远程开发 1.背景 在Windows开发Python或Web应用程序,但是它们最后需要在linux上面来运行 2.解决办法 2.1 使用PyCharm内置支持的Vagrant 2.2 ...

  7. c#项目减少源代码大小

    这次的代码缩减主要通过了这几个方面 1.bin和obj文件的删除(以前真的不知道,只是通过右键属性发现这些文件太大,然后上网搜索才知道,这些文件在源代码备份的时候是建议删掉的) 删掉的好处: 1.减少 ...

  8. day_6深浅拷贝,元组字典集合类型定义和各种操作方法

    首先我们来讲一下深浅拷贝 1:值拷贝,假设一个列表等于L1 再定义一个L2=L1  这样就是值拷贝 L2只是存的L1存列表的地址,所以当L1发生改变,L2也随之改变 2:浅拷贝,L2=L1.copy( ...

  9. Pool:小对象缓存or复用

    对象复用 使用链表作为pool来保存要复用的对象. pool字段 obtain recycle 案例1 android.os.Message private static Message sPool; ...

  10. 每天学点SpringCloud(六):Hystrix使用

    Hystrix是一个实现断路器模式的库.什么是断路器模式呢?就像我们家庭中的电闸一样,如果有那一处出现意外,那么电闸就会立刻跳闸来防止因为这一处意外而引起更大的事故,直到我们确认处理完那一处意外后才可 ...