騰訊全民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

Install 360 WiFi 2 / Xiaomi WiFi USB Dongle on Linux

  1. Install Linux Kernel Header of your Kernel.
  2. Download Driver (mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2 )from http://www.mediatek.com/en/downloads1/downloads/mt7601u-usb/ OR http://s3.amazonaws.com/mtk.cfs/Downloads/linux/mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2
  3. bzip2 -d DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar.bz2
  4. tar xopf DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.tar
  5. Update GCC and G++
  6. cd DPO_MT7601U_LinuxSTA_3.0.0.4_20130913
  7. vim common/rtusb_dev_id.c
    add
    {USB_DEVICE(0x148f,0x760b)}, /* 360 Wifi */
    {USB_DEVICE(0x2717,0x4106)}, /* Xiaomi Wifi */
    under
    {USB_DEVICE(0x148f,0x7601)}, /* MT 6370 */
  8. sudo apt-get install gcc-4.8 g++-4.8
  9. Download kernel patch https://dl.dropboxusercontent.com/s/qlx4jn1t3y79zrg/rt2870-mt7601Usta-kuid_t-kgid_t.patch
  10. patch -p0 < /tmp/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913/rt2870-mt7601Usta-kuid_t-kgid_t.patch
  11. sudo make
  12. sudo make install
  13. sudo reboot

Command-Line Pack (Backup)

Originated from http://www.neillcorlett.com/cmdpack
Use to convert ecm back to img file from EmulationPrardise

Compile from source:
tar xzvf cmdpack-1.03-src.tar.gz
cd cmdpack-1.03-src/src
./mkgcc ecm

Encode
ecm e cdimagefile ecmfile

Decode
ecm d ecmfile cdimagefile

[Downloads]
Command-Line Pack v1.03 source code
Command-Line Pack v1.03 source code (mirror)
DOS (16-bit, 8086)
DOS (32-bit, i386)
Windows (32-bit, i386)
Windows (32-bit, Alpha AXP)
Windows (32-bit, MIPS)
Windows (64-bit, x86_64)
Mac OS X (32-bit, PPC)
Mac OS X (32-bit, i386)
Mac OS X (64-bit, x86_64)
Human68k

Rapsperry Pi 2 + RetroPie + Multiple Wireless PS3 Controllers (Sixaxis)

  1. Download RetroPie Image and Install to MicroSD card
    1. Download RetroPie SD-card Image for Raspberry Pi 1 Version 3.0 BETA 2 (http://blog.petrockblock.com/retropie/retropie-downloads/ )
    2. Extract and install the image via Win32 Disk Imager (http://sourceforge.net/projects/win32diskimager/ )
    3. Write the .img file with Win32 Disk Imager to MicroSD card
  2. Insert a compatible bluetooth dongle to the Raspberry Pi.
  3. Insert the MicroSD card and boot up, follow the instruction to setup input.
  4. Navigate to “RetroPie” section, select “Show IP Address“, inet xxx.xxx.xxx.xxx/24 (For me, 192.168.1.199) is your RetroPie’s IP.
  5. With this IP Address, you can remotely SSH to your RetroPie using user name “pi” and password “raspberry” from your internal network. Or you can Press “Start => Quit => Quit EmulationStation“, then press any key of your keyboard to go to the console mode.
  6. Navigate to “RetroPie” section, select “Raspi-Config“.
    OR SSH to RetroPie
    ssh pi@192.168.1.199
    (fill with your IP)
    sudo raspi-config
    Launch the Raspi-Config setup screen, select “Expand Filesystem
    Screenshot from 2015-05-02 17:40:38
  7. On Raspi-Config, select “Advanced Options“, “Overscan“, and disable overscan. Alternatively, edit “/boot/config.txt“, change the line “disable_overscan=0” to “disable_overscan=1“, remove leading “#” if present. This step can remove the black border of screen.
  8. Reboot the system as instruct.
  9. Navigate to “RetroPie” section, select “RetroPie-Setup“, launch the RetroPie setup screen.
    OR SSH to RetroPie
    ssh pi@192.168.1.199
    (fill with your IP)
    cd RetroPie-Setup/
    sudo ./retropie_setup.shScreenshot from 2015-05-02 10:31:10
  10. Select “Update RetroPie-Setup script“.
  11. Select “Setup / Configuration (to be used post install)“, “Install PS3 controller driver“, wait for it to finish installation.
  12. Connect your PS3 Controller using USB cable, select “Pair PS3 controller” to pair the controller, repeat the steps to pair more PS3 controllers.Screenshot from 2015-05-02 10:36:35
  13. (IMPORTANT!)Edit “/etc/rc.local“,
    sudo nano /etc/rc.local
    Add the following lines before “exit 0“, to retain the discovery mode of bluetooth dongle after the first PS3 controller connected.
    sleep 10
    hciconfig hci0 piscan
  14. Reboot the RetroPie
    sudo reboot
  15. Press the PS button of your PS3 Controllers, they should be rumble and connected.

Referenece: https://github.com/petrockblog/RetroPie-Setup/wiki/Setting-up-a-PS3-controller

Telegram – 反監控!安全的即時通訊應用程式

作者:傑斯X香港

Telegram – 反監控!安全的即時通訊應用程式

相信大家平時首選的即時通訊App無疑是WhatsApp和LINE之爭吧。鑒於最近監控木馬肆虐,iOS或者Android無一倖免(參考:針對佔中人士,iOS 惡意程式 Xsser mRAT 來勢洶洶),大家通信的同時是否擔心自己的通信內容和聯絡人資料外洩呢?特別是WhatsApp被Facebook吞拼以後,大家擔心個人資料被利用的風險會更高吧。最近一款火速竄紅的免費通信軟體Telegram似乎有它受歡迎的原因。

Telegram有著和WhatsApp相似的界面,下面是它的特點:

  • 源碼完全開放
  • 點對點加密
  • 「限時聊天」功能,訊息在指定時間內自動銷毀
  • 支援所有主流平台(Android, iOS, Windows Phone, Mac OSX, Windows, Linux, Web),Windows版不用安裝喔!

telegram_desc
*圖片於官方網站擷取

Continue reading “Telegram – 反監控!安全的即時通訊應用程式”

Install Apache Httpd Server

This document shows how to compile and install Apache Server from scratch with additional modules we used. Details of how to configure the server will not be shown here.
Install OpenSSL

https://www.openssl.org/
Install OpenSSL
# Download the latest OpenSSL
wget http://www.openssl.org/source/openssl-1.0.1g.tar.gz
# Untar it
gtar xzvf openssl-1.0.1g.tar.gz
# Compile with install location /usr/local/ssl
cd openssl-1.0.1g
./configure
make
make install
Install APR and APR-Utilities

http://apr.apache.org/download.cgi
Install apr and apr-util
wget http://apache.01link.hk//apr/apr-1.5.0.tar.gz
gtar xzvf apr-1.5.0.tar.gz
cd apr-1.5.0
./configure
make
make install

wget http://apache.01link.hk//apr/apr-util-1.5.3.tar.gz
cd apr-util-1.5.3
./configure –prefix=/usr/local/apr-util –with-apr=/usr/local/apr
make
make install
Install Apache HTTP Server

http://httpd.apache.org/
Install Apache HTTP Server
./configure –prefix=/usr/local/apache2_2.2.27 \
–with-apr=/usr/local/apr \
–with-apr-util=/usr/local/apr-util \
–with-perl \
–with-ssl=/usr/local/ssl \
–with-mpm=prefork \
–enable-so \
–enable-authn_file=shared \
–enable-authn_dbm=shared \
–enable-authn_anon=shared \
–enable-authn_dbd=shared \
–enable-authz_host=shared \
–enable-authz_groupfile=shared \
–enable-authz_user=shared \
–enable-authz_dbm=shared \
–enable-authz_owner=shared \
–enable-auth_basic=shared \
–enable-auth_digest=shared \
–enable-dbd=shared \
–enable-dumpio=shared \
–enable-ext_filter=shared \
–enable-include=shared \
–enable-filter=shared \
–enable-substitute=shared \
–enable-deflate=shared \
–enable-log_config=shared \
–enable-logio=shared \
–enable-env=shared \
–enable-expires=shared \
–enable-headers=shared \
–enable-setenvif=shared \
–enable-ssl=shared \
–enable-mime=shared \
–enable-dav=shared \
–enable-status=shared \
–enable-autoindex=shared \
–enable-asis=shared \
–enable-info=shared \
–enable-cgi=shared \
–enable-dav_fs=shared \
–enable-vhost_alias=shared \
–enable-negotiation=shared \
–enable-dir=shared \
–enable-actions=shared \
–enable-imagemap=shared \
–enable-speling=shared \
–enable-userdir=shared \
–enable-alias=shared \
–enable-rewrite=shared \
–enable-proxy=shared \
–enable-proxy_ajp=shared \
–enable-proxy_balancer=shared \
–enable-proxy_connect=shared \
–enable-proxy_ftp=shared \
–enable-proxy_http=shared \
–enable-proxy_scgi=shared
make
make install
Install Tomcat Connector

http://tomcat.apache.org/download-connectors.cgi
Install Tomcat Connector
wget http://apache.01link.hk//tomcat/tomcat-connectors/jk/tomcat-connectors-1.2.39-src.tar.gz
gtar xzvf tomcat-connectors-1.2.39-src.tar.gz
cd tomcat-connectors-1.2.39-src/
./configure –with-apxs=/usr/local/apache2_2.2.27/bin/apxs
make
# Copy the compiled module to Apache
cd native/apache-2.0/
cp mod_jd.so /usr/local/apache2_2.2.27/modules/
Start the Apache HTTP Server
Start Apache HTTP Server
cd /usr/local/
# Create a symbolic link for the instance
ln -s apache2_2.2.27 apache2
cd apache2/bin
./httpd -k start