Create Wifi Hotspot in Ubuntu 14.04

Dear readers, I’ve found a new way to create wireless hotspot in Ubuntu, AP mode with Android devices support, using Unity’s Network Manager.

After this tutorial, I’ve found 3 ways to create wifi hotspot in ap mode:

Using Ap-hotspot, an open-source app from github: see this post.
Using KDE connection editor, see the post.
Using Unity’s Default Network Manager with a little hack. See below
Below I will show you how to use Unity’s default network manager to create a wireless hotspot with Android devices support, tested in 64-bit Ubuntu 1404 with Nexus 4 and Sumsung Galaxy ace3.

  1. Disable WIFI and plug in an internet cable to your laptop so that your Ubuntu is connect to a wired internet and wireless is disabled.

  2. Go to Network Icon on top panel -> Edit Connections …, then click the Add button in the pop-up window.

Edit Network Connections

  1. Choose Wi-Fi from the drop-down menu when you’re asked to choose a connection type:

Choose Connection Type

  1. In next window, do:

Type in a connection name. The name will be used later.
Type in a SSID
Select mode: Infrastructure
Device MAC address: select your wireless card from drop-down menu.
create-wifi-hotspot

  1. Go to Wi-Fi Security tab, select security type WPA & WPA2 Personal and set a password.

  2. Go to IPv4 Settings tab, from Method drop-down box select Shared to other computers.

wifi-ipv4

When done, click the save button.

After above steps, a configuration file created under /etc/NetworkManager/system-connections directory. File name is same to the connection name you typed in step 4.

Now press Ctrl+Alt+T on keyboard to open terminal. When it opens, paste the commands below and hit enter to edit the configuration file:

gksu gedit /etc/NetworkManager/system-connections/wifi-hotspot
Replace wifi-hotspt with the connection name you typed in step 4.

When the file opens, find out the line mode=infrastructure and change it to mode=ap. Finally save the file.

Change to AP mode

When everything’s done, enable WIFI from Network Manager icon on the panel. It should automatically connect to the hotspot you created. If not, select “Connect to Hidden Wi-Fi Network …” and select it from the drop-down box.

wifi-hotspot

Now you can search and connect the access point from your Android mobile and enjoy!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值