Linux系统设置WiFi热点
方法一:
第一步:安装hostapd
sudo apt-get install hostapd
第二步:安装创建热点脚本(下载地址:http://download.csdn.net/download/hanbo622/9553371)
进入create_ap-master目录直接make
第三步:创建热点
create_ap wlan0 eth0 hanbo -w2 12345678 &
create_ap:创建热点脚本
wlan0:WiFi网卡
eth0:有线网卡
hanbo:热点名称
-w2: 加密方式WPA2
12345678:密码
&:后台运行
方法二:
第一步:安装hostapd
sudo apt-get install hostapd
第二步:安装ap-hotspot
sudo apt-get install ap-hotspot
注意:如果安装失败,执行如下语句再安装
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
第三步:ap-hotspot使用说明
start start wireless hotspot // 打开wifi
stop stop wireless hotspot // 停止wifi
restart restart wireless hotspot // 重启wifi
configure configure hotspot // 配置wifi
debug start with detailed messages // dubug模式打开wifi,会显示一些详细的信息
第四步:AP配置
sudo ap-hotspot configure
Detecting configuration...
Detected eth0 as the network interface connected to the Internet. Press ENTER if this is correct or enter the
desired interface below (e.g.- eth0, ppp0 etc.):
// 回车确认
Detected wlan0 as your WiFi interface. Press ENTER if this is correct or enter the desired interface (e.g.- wlan1):
// 回车确认
Enter the desired Access Point name or press ENTER to use the default one (myhotspot):
// 输入wifi的名字
Enter the desired WPA Passphrase below or press ENTER to use the default one (qwerty0987):
// 输入wifi的密码
第五步:启动WiFi
sudo ap-hotspot start
Starting Wireless Hotspot...
Wireless Hotspot active
注意:如果在调试过程中 ap-hotspot start 出现 “Another process is already running”
ap-hotspot stop 无效问题
可以sudo rm /temp/hotspot.pid 删掉已启动的进程
附:
如果执行 "sudo ap-hotspot start"后出现 "Starting Wireless Hotspot..."不动了,就是hostapd出现了问题
下载源码编译安装:http://download.csdn.net/download/hanbo622/9556564 (版本:hostap-1-hostap_1_1.tar.gz)
a、tar -xvf hostap-1-hostap_1_1.tar.gz
b、cd hostap-1-hostap_1_1/hostapd
c、cp defconfig .config
d、安装编译环境
apt-get install libnl-dev libpopt-dev openssl libssl-dev build-essential
e、make
f、make install (此安装就是把hostapd和hostapd_cli放到了/usr/local/bin中)
g、cp hostapd hostapd_cli /usr/sbin (这是替换掉apt-get install hostapd安装的程序,建议使用)
Linux系统设置WiFi热点相关推荐
- 用Linux做wifi热点/无线路由
用Linux做wifi热点/无线路由 全文阅读 分步阅读 以fedora14为例安装hostapd,将Linux笔记本部署为一台高性能无限路由器,顺便说一句,我的fedora14安装在一台10英寸的上 ...
- linux 创建wifi 热点_Linux_ubuntu14.04怎么建立wifi热点?,创建的热点手机也是可以连接 - phpStudy...
ubuntu14.04怎么建立wifi热点? 创建的热点手机也是可以连接的,这里将分享两个方法 一,kde-nm-connection-editor工具开启热点 在ubuntu软件中心搜索kde nm ...
- linux 创建wifi 热点_Linux创建无线WIFI热点 2.4g/5g
类库依赖 hostapd dnsmasq 创建hostapd.conf配置文件 2.4g wifi 热点hostapd.conf 配置文件 interface=wlan0 driver=nl80211 ...
- Win8系统设置WiFi热点的方法
使用wife的朋友也越来越多,wifi覆盖区域也是越来越多,大家都可以随时打开自己手机或电脑享受wifi带的方便,相信大家都知道在win7的时候我们可以很方便的通过命令提示符建立WiFi热点,不过Wi ...
- linux 创建wifi 热点_linux开启wifi和热点双用
有些情况下我们需要将连接并认证过的wifi共享出来,这样就无需多个认证达到多人使用了 无线网卡是否支持AP模式 无线设备必须兼容 nl80211标准 ,并且支持 AP (Access Point)工作 ...
- linux 共享wifi热点,Kali-linux下使用HostAPd创建wifi热点(AP)
安装hostapd:apt-get install hostapd 2.配置hostapd.conf 这个文件里有大量配置信息,幸好我们一般能用到的就那几个(其中多数去掉注释,配置保持默认):inte ...
- linux 全双工 wifi热点,wifi是全双工还是半双工
大家好,我是智能客服时间君,上述问题将由我为大家进行解答. wifi是全双工,是指在通信的任意时刻,线路上可以同时存在A到B和B到A的双向信号传输. Wi-Fi(Wireless Fidelity)又 ...
- linux 全双工 wifi热点,Linux中的同时套接字读/写(“全双工”)(特别是aio)
我正在移植构建在ACE Proactor框架之上的应用程序.该应用程序适用于VxWorks和Windows,但在使用librt的内核2.6.X.X的Linux(CentOS 5.5,WindRiver ...
- win7设置wifi热点_Windows系统设置WIFI热点
1.运行cmd 首先找到你的cmd ,点右键"以管理员身份运行"(win8开始菜单貌似没有,我在"(win8安装盘)C:WindowsSystem32cmd.exe&qu ...
最新文章
- mysql查看正在执行的sql语句
- torch_geometric笔记:数据集 ENZYMES Minibatches
- Elasticsearch聚合查询案例分享
- 面向Java应用的快速Web服务支持工具 - Netrifex
- java安全编码指南之:锁的双重检测
- 一步一步教你使用AgileEAS.NET基础类库进行应用开发-基础篇-通过SQL实现特殊业务...
- CCF201412-4 最优灌溉(100分)
- CS和BS 到底是什么
- 模拟一个简单的购房商贷月供计算器
- 2018年10月7日虚拟机出现无法连接MKS错误提示和docx, rtf类型文件简介
- 常见的几种隐藏文件的方法
- Web之一只jio碰到门了
- 深入理解DirectX D3D9
- 与老公的情人同居一室很尴尬
- 一文教你学会使用GitHub!(附视频)
- android首页广告倒计时,(安卓APP)简单的首页广告倒计时实现代码
- ♠♦♣TypeScript
- gitlab解决permission deny问题
- 如何取消excel密码_办公软件操作技巧020:如何给excel工作表设置密码
- IDEA 对单个的java class文件打成jar包