USB tethering in Linux using android adb

From Notes_Wiki
Revision as of 04:11, 18 April 2022 by Saurabh (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Home > Internet tips and tricks > USB tethering in Linux using android adb

On modern OS like Fedora 13, Ubuntu 10.04 etc. we do not have to do anything special for USB tethering to work. If we just connect mobile to PC/laptop and enable tethering then Internet will start working. But on older OS like CentOS 5.5 we can follow below mentioned steps to make tethering work on Linux with help of proxoid and adb:

  1. Download and install Proxoid from the Market on Android phone.
  2. Connect your Android device to your computer via USB.
  3. Launch Proxoid, and start the service.
  4. On phone, from home screen: Menu > Settings > Applications > Development > USB debugging (make sure it is checked, if it isn't)
  5. On Linux laptop/PC from a terminal window type:
    sudo gedit /etc/udev/rules.d/90-android.rules
    and write following contents to it 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"'
  6. Install i686 versions of libstdc++ and libncurses using 'yum -y install libncurses-devel.i686 libstdc++-devel.i686'
  7. Download and decompress the latest Android SDK. You can unpack it in any directory of your choice, for example /opt.
  8. Go to tools directory
  9. Run ./android and install 'Android SDK Platform-tools'
  10. Now go to newly create 'platform-tools' directory in parent directory of 'tools' directory. Once in the platform-tools directory, issue the following command in your terminal window as root:
    ./adb forward tcp:8080 tcp:8080
  11. Open Firefox.
  12. From Firefox: Edit > Preferences > Advanced > Network > Settings
  13. Select Manual Proxy Settings and set the HTTP Proxy field to localhost and the Port field to 8080. Click OK.
  14. Start surfing.



Home > Internet tips and tricks > USB tethering in Linux using android adb