Linux Mint 17 + Xiaomi WiFi create mobile hotspot

Source: Internet
Author: User

Reprint: http://www.pppei.net/blog/post/690

Pro-Test is possible!

My system is Linux Mint 17.1 64 bit, used WiFi bit mi wifi.

The following is the original text:

This method is tested under LinuxMint 17.1.
It can theoretically support Xiaomi WiFi, 360wifi.

Here's how:

1. Download and install the mt7601u driver
MT7601U Drive
Extract Password: 2r8h
Thanks for the author of the next http://bbs.xiaomi.cn/thread-10160085-1-1.html post.

Unzip the downloaded driver into the extracted mt7601u folder and execute the following command to compile and install:

./install.sh

2. Install configuration DNSMASQ (DNS, DHCP)

sudo apt-get install DNSMASQ

After installation, execute the following command to enable DHCP functionality.

sudo sed " /^dhcp-range/d " /etc/sudoecho"dhcp-range=192.168.86.50,192.168.86.150,12h  " >>/etc/dnsmasq.conf

3. Configuring Udev
New file/etc/udev/rules.d/100-portable-wifi.rules, add the following:

subsystem=="net", action=="add", env{devpath}==" /devices/virtual/net/ra0 ", run+="
/sbin/ifconfig ra0 192.168.86.1; /ETC/INIT.D/DNSMASQ Restart;
Echo 1 >/proc/sys/net/ipv4/ip_forward;

Iptables-t nat-a postrouting-s 192.168.86.0/24-j Masquerade '
"

After successful completion of the above steps, you should be able to see a wireless access point named portable after inserting the wifi,10 seconds, the default password: abcd1234, connect this AP to the Internet.

Modify the AP name, password, and channel by modifying the following line of the/etc/wireless/rt2870ap/rt2870ap.dat file:

ssid=Portable Wpapsk=abcd1234 Channel= One

After modification, reseat the small wifi.

Thanks again Daniel!!!

Linux Mint 17 + Xiaomi WiFi create mobile hotspot

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.