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

Ubuntu14.04 Deepin2014分享WiFi 亲测成功

方法一:network manager

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

第一步:

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

第二步:

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

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

在 模式 栏选择 Ad-hoc;

第三步:

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

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

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

第四步:

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

ok,这个时候其他的笔记本电脑或者windows平板可以发现此无线网络。但是,Android mobile 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 WiFi interface. 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热点的更多相关文章

  1. Ubuntu14.04 设置wifi热点

    Ubuntu14.04 设置wifi热点 $ sudo add-apt-repository ppa:nilarimogard/webupd8 $ sudo apt-get update $ sudo ...

  2. Ubuntu14.04创建WiFi热点

    右键右上角网络图标→Edit Connections →Wi-Fi→Add→Wi-Fi→Create→SSID(wifi名称)→Mode(Ad-hoc)→IPv4 Settings→Methods(S ...

  3. ubuntu 14.04 建立wifi热点

    昨天突然想起来我可以用笔记本搞一个热点这样我的手机就不用上流量了,但是手机死活搜不到建好的信号,目前的解决方案如下: 直接用ubuntu自带的创建wifi网络功能是不好使的,因为android系统不支 ...

  4. ubuntu14.04建立交叉编译环境, 注意事项

    ubuntu14.04建立交叉编译环境, 注意事项 ~$ arm-linux-gcc/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc: 15: e ...

  5. Windows Win7建立wifi热点,手机共享WIFI上网

    Win7建立wifi热点,手机共享wifi上网 by:授客 QQ:1033553122 1.以管理员身份运行命令提示符:快捷键win+R→输入cmd→回车 2.启用并设定虚拟WiFi网卡:运行命令:n ...

  6. 在WIN7系统的笔记本上建立WIFI热点

        成功与否的关键在于你是否依照顺序运行:       前置条件:右键"我的电脑"--"属性"--"设备管理器"--"网络适配 ...

  7. 在WIN7笔记本电脑系统的建立WIFI热点

        成功的关键是,你在运行秩序:       前置条件:右键"我的电脑"--"属性"--"设备管理器"--"网络适配器&quo ...

  8. Fedora 23建立wifi热点(Android手机可用)

    在ubuntu14.04下使用ap-hotspot,速度还不错.但是在15.04下就用不了了,不知为啥.现在使用fedora23,在学校还是挺需要给手机连wifi的,于是google看看ap-hots ...

  9. ubuntu建立wifi热点的方法

    原文在这里: http://www.linuxidc.com/Linux/2014-07/104624.htm 方法一:network manager 这种方法建立的热点,据说android搜不到. ...

随机推荐

  1. selendroid项目实战2--ruby下的TOAST定位

    网上很多 python/java捕获toast的方法,但ruby的简直没见过. selendroid客户端是基于selenium,而不一定需要appium,所以很多selenium的方法可以直接使用, ...

  2. PM2 管理nodejs项目

    pm2 是一个带有负载均衡功能的Node应用的进程管理器. 当你要把你的独立代码利用全部的服务器上的所有CPU,并保证进程永远都活着,0秒的重载, PM2是完美的. 它非常适合IaaS结构,但不要把它 ...

  3. 兼容IE6/IE7/IE8/FireFox的css hack

    兼容IE6/IE7/IE8/FireFox的css hack .color{ background-color: #CC00FF; background-color: #FF00009; *backg ...

  4. Json-lib - java.util.Date 转换问题

    使用 JSON-lib 将 java.util.Date 对象直接转换成 JSON 字符串时,得到的通常不是想要格式: System.out.println(JSONSerializer.toJSON ...

  5. beanfactory与applicationcontext的区别

    ApplicationContext能够自动辨认和应用在其上部署的实现了BeanFactoryPostProcessor的bean 特性                            Bean ...

  6. zxing.dll生成条码

    引入zxing.dll using System; using System.Drawing; using ZXing.QrCode; using ZXing; using ZXing.Common; ...

  7. WPF 中,动态创建Button,并使Button得样式按照自定义的Resource样式显示

    第一步:自定义一个Button的样式 1.新建一个xaml文件,在其中自定义好自己的Resources 这个Resource 的根节点是 <ResourceDictionary xmlns=&q ...

  8. textLayout在快速输入清除时报错解决方法

    var tf:TextFlow; var len:int = tf.numChildren;for (var i:int = 0; i < len; i += 1){ tf.removeChil ...

  9. Wooden Sticks

    Wooden Sticks Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other) Total ...

  10. 只有PD号的调起

    cicsterm-> CECI -> LI-> P -> TestQuery