Ubuntu14.04 create WIFI hotspots for Android

Source: Internet
Author: User
Ubuntu Network Management provides convenience for creating Wifi hotspots. However, because it uses an ad-hoc network, the Wifi created by Ubuntu cannot be used by the Android system. This article is to solve this problem 1. InstallAP-hostpotineffectusudoadd-apt-repositoryppa: nilarimogard/webupd8sudoapt-getupdatesudoapt-getins

Ubuntu Network Management provides convenience for creating Wifi hotspots. However, because it uses an ad-hoc network, the Wifi created by Ubuntu cannot be used by the Android system. This article aims to solve this problem.

1. Install AP-Hostpot in Ubuntu

Sudo add-apt-repository ppa: nilarimogard/webupd8
Sudo apt-get update
Sudo apt-get install ap-hotspot

2. Updata for ubuntu 14.04

The hostapd version in Ubuntu 14.04 is buggy and doesn't work properly. to get AP-Hotspot to work with hostapd in Ubuntu 14.04, you need to downgrade hostapd and use apt to hold the package so it's not upgraded (there are many bugs on hostapd and later 14.04, so if you want to run it perfectly, You have to downgrade 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

32-bit:

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

3. Usage

To start AP-Hotspot, use the following command:

Sudo ap-hotspot start

Follow the prompts to enter a. Wired Nic B. Wireless Nic c. wifi name d. Password

Nic attributes can be used with commands

Ifconfig

For query, eth0 is usually used for the wired network card Ubuntu

If the input is incorrect, use the following command to modify it:

Sudo ap-hotspot configure

Restart and end commands:

# Restart
Sudo ap-hotspot restart
# End
Sudo ap-hotspot stop

If the firewall cannot be started, close the firewall and try:

Sudo ufw disable

Method http://www.linuxidc.com/Linux/2014-07/104624.htm for setting up WiFi hotspot under Ubuntu

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-05/116994.htm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.