Ubuntu14.04建立WiFi热点

摘要:
但是,Androidmobilephone可能永远发现不了,貌似Android系统不支持Adhoc。so,我们来第二种方法方法二:ap-hotspot具体方法如下:使用ap-hotspot来创建WIFI热点,而不要用Adhoc。终端里输入:$sudoadd-apt-repositoryppa:nilarimogard/webupd8$sudoapt-getupdate$sudoapt-getinstallap-hotspot$sudoap-hotspotconfigure//这一步会检查ubuntu的网络和WIFI接口,确定后会提示你配置热点,输入ssid和密码之类的就行了$sudoap-hotspotstart好了,Android手机顺利识别并连接上了。

整理自Ubuntu 下建立WiFi热点的方法

Ubuntu14.04 Deepin2014分享WiFi 亲测成功

方法一:network manager

用Ubuntu自带的network manager就可以设置了

第一步:

打开系统的网络设置,打开 网络连接。点击最下面的编辑链接,然后点击右边的添加,添加一个无线网络;

Ubuntu 下建立WiFi热点的方法

第二步:

在 Wi-Fi 随意填写 链接名称。

填写一个 SSID,这个是待会电脑发出来的无线标识名。

在 模式 栏选择 Ad-hoc;

Ubuntu 下建立WiFi热点的方法

第三步:

切换到 wifi 安全性 选项卡。在 安全 中选择 WPA及WPA2个人。在 密码 中填写密码。

Ubuntu 下建立WiFi热点的方法

切换到 IPv4 设置,并在 方法 中选择 与其他计算机共享

Ubuntu 下建立WiFi热点的方法

切换到 IPv6 设置,并在 方法 中选择 I忽略。

Ubuntu 下建立WiFi热点的方法

第四步:

最后,点击 保存 保存这个网络吧。连接刚才建立的网络,打开 连接到隐藏的网络。选择之前建立的网络,连接即可。注意这个无线是把现在电脑上的网络共享出去,所以在此之前请连接好你的宽带什么的。

ok,这个时候其他的笔记本电脑或者windows平板可以发现此无线网络。但是,Androidmobile phone可能永远发现不了,貌似Android系统不支持Ad hoc。

so,我们来第二种方法

方法二:ap-hotspot

具体方法如下:使用ap-hotspot来创建WIFI热点,而不要用Ad hoc。终端里输入:

$ sudo add-apt-repository ppa:nilarimogard/webupd8

$ sudo apt-get update

$ sudo apt-get install ap-hotspot

$ sudo ap-hotspot configure //这一步会检查ubuntu的网络和WIFI接口,确定后会提示你配置热点,输入ssid和密码之类的就行了

$ sudo ap-hotspot start

好了,Android手机顺利识别并连接上了。


参数使用说明:
tehero@tehero-pc:/tmp$ sudo ap-hotspot config
Usage:ap-hotspot [argument]

start start wireless hotspot//开始使用
stop stop wireless hotspot//停止使用
restart restart wireless hotspot//重启
configure configure hotspot//配置使用

安装成功后配置过程如下:
tehero@tehero-pc:/tmp$ 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.)://默认按Enter即可

Detected wlan0 as your WiFiinterface. Press ENTER if this is correct or enter the desired interface (e.g.- wlan1)://默认按Enter即可

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 密码

使用篇:
tehero@tehero-pc:/tmp$ sudo ap-hotspot start
Starting Wireless Hotspot...
Wireless Hotspot active
出现如上字样即可

问题集锦篇:
1、无法出现Wireless Hotspot active,并一直保持Starting Wireless Hotspot...
hostapd默认版本有bug
解决方法:
移除hostapd
sudo apt-get remove hostapd
然后:
64 bit
cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_amd64.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
32bit:
cd /tmp
wget http://archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_1.0-3ubuntu2.1_i386.deb
sudo dpkg -i hostapd*.deb
sudo apt-mark hold hostapd
"sudo apt-mark hold hostapd" 将防止版本升级到有问题的版本。
之后需要重新安装ap-hotspot.
2、出现:
Wireless Hotspot active
bash: notify-send: 未找到命令
解决方法:
tehero@tehero-pc:/tmp$ notify-send
程序“notify-send”尚未安装。 您可以使用以下命令安装:
sudo apt-get install libnotify-bin
tehero@tehero-pc:/tmp$ sudo apt-get install libnotify-bin

免责声明:文章转载自《Ubuntu14.04建立WiFi热点》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇个人技术总结——postman的使用(使用数据变量多次运行集合)Windows server 2012安装VM tools异常解决办法下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

解决mac上mysql莫名其妙的启动不了

在OS X环境下MySQL启动时报错: 1 2 016-03-03T00:02:30.483037Z 0 [ERROR] InnoDB: Unable tolock ./ibdata1 error: 35 2016-03-03T00:02:30.483100Z 0 [Note] InnoDB: Checkthat you do notalre...

Docker 常用命令与操作

介绍 此命令集合版本为 1.11.1 及以上 基础类 查看docker信息 # 查看docker版本 docker version # 显示docker系统的信息 docker info # 日志信息 docker logs # 故障检查 service docker status # 启动关闭docker sudo service d...

MAC使用技巧之苹果电脑抓图截屏方法

用苹果电脑自带的截图功能的快捷键:command+shift+3 三个键按下则抓取/截取全屏 command+shift+4 然后用鼠标框选则抓取该区域的截图 command+shift+4 然后按空格则抓取软件窗口。截图会自动保存到桌面。 command + control + A 截取指定的区域 版权声明:本文为博主原创文章,未经博主允许不得转载。...

Install Docker on Ubuntu

目前支持的 Ubuntu 版本: Ubuntu Xenial 16.04 (LTS) Ubuntu Wily 15.10 Ubuntu Trusty 14.04 (LTS) Ubuntu Precise 12.04 (LTS) Prerequisites 内核版本不能低于 3.10 $ uname -r 3.11.0-15-generic 如果之前使...

ESP8266使用详解

[From] http://www.cnblogs.com/yangfengwu/p/5205570.html 用的这款   各引脚功能:来至厂家提供的资料 GPIO0 默认是工作模式(不接线)。如果接了低电平就是下载模式(给模块刷固件!!),所以可以不接线,当然也可以接高电平。 反正一开始连接的时候CH_PD必须为高电平。其余的可以不接。...

腾讯云ubuntu18.04启用root用户

需求场景 腾讯开通的ubuntu主机,默认用户是ubuntu,并且这个ubuntu的权限还是相对比较低的,虽然提升了安全性,可是对于个人站长来说方便才是硬道理,自己也不会用root用户瞎操作。这个时候就需要用权限更大的root用户登录操作了。 步骤一:设置root密码 sudo passwd root回车设置两次密码即可 步骤二:修改ssh登录的配置 很多...