テザる
ドキュメント
http://code.google.com/p/proxoid/wiki/installationLinux
Androlib(1.0.7) > GoogleCode(1.0.5)
だったので、Androlib QR経由でマーケットからいれる。
コマンドをスクリプト化したのがある
adb をforwardで起動後、ローカルプロキシとして設定ファイル書き換え。
thether
#!/bin/sh # # Routes network traffic to Android and switches the GNOME proxy on # http://code.google.com/p/proxoid/wiki/installationLinux ADB=${HOME}/tools/android-sdk-linux_86/tools/adb GCF=/usr/bin/gconftool-2 start() { [ -f "${ADB}" ] || exit 1 # start adb "${ADB}" forward tcp:8080 tcp:8080 echo "Enabled forwarding to Android device." # activate proxy "${GCF}" -t string -s /system/proxy/mode "manual" "${GCF}" -t bool -s /system/http_proxy/use_http_proxy true # http settings "${GCF}" -t string -s /system/http_proxy/host "localhost" "${GCF}" -t int -s /system/http_proxy/port "8080" # https settings "${GCF}" -t string -s /system/proxy/secure_host "localhost" "${GCF}" -t int -s /system/proxy/secure_port "8080" echo "Enabled GNOME proxy." return 0 } stop() { # disable proxy "${GCF}" -t string -s /system/proxy/mode "none" "${GCF}" -t bool -s /system/http_proxy/use_http_proxy false echo "Disabled GNOME proxy." return 0 } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 2 esac
結果
上のスクリプトで、簡単に稼働。
よって、手順的には、
- $ thether start
- アプリ起動後、startにチェックして動作開始
- ブラウザで確認
という感じ。
REMOTE_HOST u676017.xgssu6.imtp.yokohama.mopera.net REMOTE_ADDR 110.163.176.17 データサイズ = 160 k バイト 受信時間 = 4.454 秒 平均速度(バイト/秒) = 35.9 k バイト/秒 平均速度(ビット/秒) = 287 k bps
本当に、死ななければ使える。