[Ubuntu 14.04] Create a WiFi hotspot that can be used for Android

Source: Internet
Author: User

Ubuntu's network management makes it easy to create WiFi hotspots, but because it uses the Ad-hoc network, the WiFi it creates doesn't make it available to Android. This text is to solve this problem

1.Install Ap-hostpot in Ubuntu

sudo add-apt-repository ppa:nilarimogard/webupd8sudo apt-get updatesudo  Install ap-hotspot

2.Updata for Ubuntu 14.04

The HOSTAPD version in Ubuntu 14.04 are 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 I T ' s not upgraded(HOSTAPD has a lot of bugs on 14.04, so you have to downgrade the HOSTAPD if you want to run it perfectly ... )

64-bit:

CD/tmpwget http://Archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_ 1.0-3ubuntu2.1_amd64.debsudo dpkg-i hostapd*. Debsudo apt-mark hold HOSTAPD

32-bit:

CD/tmpwget http://Archive.ubuntu.com/ubuntu/pool/universe/w/wpa/hostapd_ 1.0-3ubuntu2.1_i386.debsudo dpkg-i hostapd*. Debsudo 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 card C.wifi name D. password

Nic properties can be used with commands

Ifconfig

To inquire, generally wired network cards on Ubuntu for eth0

If the input error can be modified with the following command:

sudo ap-hotspot Configure

Restart command and End command:

#重启 sudo ap-hotspot restart# end sudo ap-hotspot stop

If it fails to start, close the firewall and try:

sudo ufw disable

Goodluck. Turn from (here)

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.