From 34c8df979a55aa0507c226d1bfcfc7efe1f5a8d5 Mon Sep 17 00:00:00 2001 From: Jerry Ling Date: Mon, 24 Aug 2015 19:22:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...u 15.04 to connect to Android or iPhone.md | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 translated/tech/20150824 How to create an AP in Ubuntu 15.04 to connect to Android or iPhone.md diff --git a/translated/tech/20150824 How to create an AP in Ubuntu 15.04 to connect to Android or iPhone.md b/translated/tech/20150824 How to create an AP in Ubuntu 15.04 to connect to Android or iPhone.md new file mode 100644 index 0000000000..02aef62d82 --- /dev/null +++ b/translated/tech/20150824 How to create an AP in Ubuntu 15.04 to connect to Android or iPhone.md @@ -0,0 +1,74 @@ +如何在 Ubuntu 15.04 下创建连接至 Android/iOS 的 AP +================================================================================ +我成功地在 Ubuntu 15.04 下用 Gnome Network Manager 创建了一个无线AP热点. 接下来我要分享一下我的步骤. 请注意: 你必须要有一个可以用来创建AP热点的无线网卡. 如果你不知道如何找到连上了的设备的话, 在终端(Terminal)里输入`iw list`. + +如果你没有安装`iw`的话, 在Ubuntu下你可以使用`udo apt-get install iw`进行安装. + +在你键入`iw list`之后, 寻找可用的借口, 你应该会看到类似下列的条目: + +Supported interface modes: + +* IBSS +* managed +* AP +* AP/VLAN +* monitor +* mesh point + +让我们一步步看 + +1. 断开WIFI连接. 使用有线网络接入你的笔记本. +1. 在顶栏面板里点击网络的图标 -> Edit Connections(编辑连接) -> 在弹出窗口里点击Add(新增)按钮. +1. 在下拉菜单内选择Wi-Fi. +1. 接下来, + +a. 输入一个链接名 比如: Hotspot + +b. 输入一个 SSID 比如: Hotspot + +c. 选择模式(mode): Infrastructure + +d. 设备 MAC 地址: 在下拉菜单里选择你的无线设备 + +![](http://i2.wp.com/www.linuxveda.com/wp-content/uploads/2015/08/ubuntu-ap-gnome1.jpg) + +1. 进入Wi-Fi安全选项卡, 选择 WPA & WPA2 Personal 并且输入密码. +1. 进入IPv4设置选项卡, 在Method(方法)下拉菜单里, 选择Shared to other computers(共享至其他电脑). + +![](http://i1.wp.com/www.linuxveda.com/wp-content/uploads/2015/08/ubuntu-ap-gnome4.jpg) + +1. 进入IPv6选项卡, 在Method(方法)里设置为忽略ignore (只有在你不使用IPv6的情况下这么做) +1. 点击 Save(保存) 按钮以保存配置. +1. 从 menu/dash 里打开Terminal. +1. 修改你刚刚使用 network settings 创建的连接. + +使用 VIM 编辑器: + + sudo vim /etc/NetworkManager/system-connections/Hotspot + +使用Gedit 编辑器: + + gksu gedit /etc/NetworkManager/system-connections/Hotspot + +把名字 Hotspot 用你在第4步里起的连接名替换掉. + +![](http://i2.wp.com/www.linuxveda.com/wp-content/uploads/2015/08/ubuntu-ap-gnome2.jpg?resize=640%2C402) + +1. 把 `mode=infrastructure` 改成 `mode=ap` 并且保存文件 +1. 一旦你保存了这个文件, 你应该能在 Wifi 菜单里看到你刚刚建立的AP了. (如果没有的话请再顶栏里 关闭/打开 Wifi 选项一次) + +![](http://i1.wp.com/www.linuxveda.com/wp-content/uploads/2015/08/ubuntu-ap-gnome3.jpg?resize=290%2C375) + +1. 你现在可以把你的设备连上Wifi了. 已经过 Android 5.0的小米4测试.(下载了1GB的文件以测试速度与稳定性) + +-------------------------------------------------------------------------------- + +via: http://www.linuxveda.com/2015/08/23/how-to-create-an-ap-in-ubuntu-15-04-to-connect-to-androidiphone/ + +作者:[Sayantan Das][a] +译者:[jerryling315](https://github.com/jerryling315) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]:http://www.linuxveda.com/author/sayantan_das/