Android端æ«+Gentooã§ãã¶ãªã³ã°ããæ¹æ³
Windowsã§ã¯PdaNetã¨ããã¢ããªã使ãã°Android端æ«+Windowsãã·ã³ã§ãã¶ãªã³ã°ãã§ããããã ããPdaNetã¯Windowsç¨ã¢ããªã®ããã§Linuxã§ã¯ãã¡ã
Linuxã§ãã¶ãªã³ã°ããæ¹æ³ãªãããªã¼ã¨èª¿ã¹ã¦ããã¨ãããAziLinkãçºè¦ãadbã®TCP forwardã§OpenVPNãã³ãã«ãå¼µã£ã¦Java NATã使ã£ã¦éä¿¡ãã模æ§ããã¼ãªãã»ã©ã
手順はオフィシャルサイトに載っているã®ã ããGentooæµæé ãç°¡åã«è§£èª¬ã
注æäºé
PCãAndroid端æ«ãåããªããªã£ã¦ããã±ã¼ã¿ã¤ä¼ç¤¾ããå¤é¡ã®é信代ãè«æ±ããã¦ãç§ã¯è²¬ä»»ãè² ãã¾ããããã¹ã¦èªå·±è²¬ä»»ã§ãé¡ããã¾ãã
äºåæºå
Android端æ«ã®è¨å®
Android端æ«ã§éè¯ã¢ããªãã¤ã³ã¹ãã¼ã«ã§ããããã«ããã
è¨å®âã¢ããªã±ã¼ã·ã§ã³âæä¾å ä¸æã®ã¢ããª
Android端æ«ã§USBãããã°ãæå¹ã«ããã
è¨å®âã¢ããªã±ã¼ã·ã§ã³âéçºâãããã°
udevã®è¨å®
Linuxå´ã§ /etc/udev/rules.d/51-android.rules ãä½æãã以ä¸ãè¨è¼ã0bb4ã¯HTCã®idVendorãä»ã®ã¡ã¼ã«ã¼ã®å ´åã¯é©å®å¤æ´ã
# vi /etc/udev/rules.d/51-android.rules SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
adbæ¥ç¶ç¢ºèª
Linuxå´ã§Android SDKããã¦ã³ãã¼ãã解åãtools/adbã§ããã¤ã¹èªèã§ãããã¨ã確èªã
# unzip android-sdk-linux_x86-1.5_r3.zip # cd android-sdk-linux_x86-1.5_r3/tools # ./adb devices List of devices attached XXXXXXXXXXXX device
èªèãããªãå ´åã¯ãAndroid端æ«ã¨LinuxãUSBæ¥ç¶ãæ¿æããã¨ããudevãåèµ·åããã¨ãã
OpenVPNã¤ã³ã¹ãã¼ã«ã¨è¨å®
Linuxå´ã«OpenVPNãã¤ã³ã¹ãã¼ã«ããã
# emerge openvpn
Linuxå´ã§azilink.ovpnããã¦ã³ãã¼ãã/etc/openvpn/azilink.confã«ä¿åã
# curl http://azilink.googlecode.com/files/azilink.ovpn > /etc/openvpn/azilink.conf
Linuxå´ã§èµ·åã¹ã¯ãªãããä½æã
# cd /etc/init.d # ln -s openvpn openvpn.azilink
æ¥ç¶ããã
Android端æ«ã¨LinuxãUSBã±ã¼ãã«ã§æ¥ç¶ããã
Linuxå´ã§adbã使ã£ã¦TCPãã¼ããã©ã¯ã¼ãã
# ./adb forward tcp:41927 tcp:41927
Android端æ«ã§AziLinkãèµ·åããservice activeããã§ãã¯ãããStatusãWaiting for connectionã«ãªã£ãã®ã確èªã
Linuxå´ã§openvpnãéå§ã
# /etc/init.d/openvpn.azilink start
Android端æ«å´ã§StatusãConnected to hostã«ãªã£ãã®ã確èªããªããªããã°è¨å®ãè¦ç´ãã
ãã®ä»
Linuxã§ã®æé ãæ¸ããããOpenVPNã¯Windowsã«ãMac OS Xã«ãããã®ã§å¯è½ããªãã£ã·ã£ã«ã§ãWindowsãMac OS XãLinuxã§ãã¹ããã¦ãããããã
udevããã£ã¨ã¡ããã¨è¨å®ããããUSBæ¥ç¶ã§èªåãã¶ãªã³ã°ã¨ããã§ãããã ããããªããã©ã