騰訊全民WiFi / 360 隨身 WiFi 第二代 / 小米隨身 WiFi / 小度 WiFi Linux AP模式(熱點)驅動

  1. Install isc-dhcp-server
    sudo apt-get install isc-dhcp-server
  2. Download Driver https://github.com/eywalink/mt7601u
  3. unzip mt7601u-master.zip
    cd mt7601u-master
  4. ./miwifi_build.sh
  5. sudo vim  /etc/default/isc-dhcp-server
    INTERFACES=”ra0″
  6. sudo vim /etc/dhcp/dhcpd.conf
    subnet 192.168.199.0 netmask 255.255.255.0 {
    range 192.168.199.10 192.168.199.20;
    option routers 192.168.199.1;
    option domain-name-servers 8.8.8.8;
    }
  7. Create a start up script mywifi_start.sh
    ifconfig ra0 up
    ifconfig ra0 192.168.199.1
    dhcpd ra0
    echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #Share Ethernet eth0 Connection
    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE # Share VPN ppp0 connection
  8. Create a stop script mywifi_stop.sh
    ifconfig ra0 down
    /etc/init.d/isc-dhcp-server stop
  9. sudo ./mywifi_start.sh

Note:
SSID:MiWiFi_SuMang
PWD :52xiaomi
Change /etc/Wireless/RT2870AP/RT2870AP.dat for custom settings

Reference:

Advertisements

One thought on “騰訊全民WiFi / 360 隨身 WiFi 第二代 / 小米隨身 WiFi / 小度 WiFi Linux AP模式(熱點)驅動

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s