Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › "Tethering" Linux machines with Android phones without root and in 12 easy steps
New Posts  All Forums:Forum Nav:

"Tethering" Linux machines with Android phones without root and in 12 easy steps

post #1 of 4
Thread Starter 
This guide is mostly based off the official guide located here. There are just a few updates made by myself that need to be done (software isn't being supported by the author anymore).

This isn't really tethering, it's using your phone as a proxy.

Why am I making this guide? Most tethering apps require a rooted phone to use, and some of us don't like to put that much effort into just getting internet.

WARNING: This may not be allowed by your provider or plan. Use at your own RISK.

Step 1. Install proxoid on your android phone. (It's in the market, just search for it)

Step 2. Turn on USB Debugging for your phone. Go to Settings->Applications->Development and check USB debugging (please note, that this does some other funky things so you might want to disable it when you're not using it)

Step 3. Make sure Linux is detecting you phone.
Open a terminal and type
Code:
lsusb
Mine returns
Code:
...
Bus 001 Device 002: ID 04e8:681c Samsung Electronics Co., Ltd 
...
(Samsung moment)
If Linux is detecting it, fantastic.

Step 4. (This step is specifically for Ubuntu, have yet to try it in another distro)
Create this file /etc/udev/rules.d/09-android.rules
The easiest way to do this is
Code:
sudo touch /etc/udev/rules.d/09-android.rules
Step 5. Add these lines to that file (a "sudo gedit /etc/udev/rules.d/09-android.rules" would work nicely in the terminal)
Code:
SUBSYSTEM=="usb", ATTR{idVendor}=="22b8", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
Step 6. Add yourself to the plugdev group
Code:
sudo gpasswd -a YOURUSERNAME plugdev
Note: YOURUSERNAME is your username that you log onto the machine with.
Step 6.5 Restart udev (The way to do this changed in 10.04)
Code:
sudo service udev restart
Step 7. Download the Android SDK from here.

Step 8. Extract the SDK either with something like Archive manager or by
Code:
tar xvzf [nameofyourfile].tgz
Where [nameofyourfile] is the name of your file.

Step 9. Change directory into the into the android-sdk/tools directory. If you downloaded your file to the Downloads file (the default) and extracted it there, you're command will be
Code:
cd ~/Downloads/android-sdk-linux_86/tools/
(for the x86 version)

Step 10. Start the tunnel. With your phone plugged in via USB run
Code:
sudo ./adb forward tcp:8080 tcp:8080
Step 11. Configure Firefox
Go to Edit->Preferences, click on the "Advanced" tab, click on the "Network" tab, click the "Settings" button.

Set setting to look like this


Step 12.Now, go back to your android phone, start proxoid, and check the "Start" check box.

Happy browsing!
Edited by GodofGrunts - 6/6/10 at 10:41pm
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #2 of 4
I had used proxoid before and had a lot of problems with the app, Sometimes it would just stop working if the phone went into standby. Did this get fixed?
Turn into a Jet
(13 items)
 
  
CPUMotherboardGraphicsRAM
I5-750 @ 4.0 ASROCK P55 Extreme 9800 GTX+ 4x2GB Ripjaws 
Hard DriveOSMonitorPower
1x40GB Intel SSD, 1x250GB WD HDD Sabayon 19" Hans G Widescreen and 21" CRT Corsair 650Watt 
CaseMouse Pad
MM CYO U2UFO 13 Case Fans None! 
  hide details  
Reply
Turn into a Jet
(13 items)
 
  
CPUMotherboardGraphicsRAM
I5-750 @ 4.0 ASROCK P55 Extreme 9800 GTX+ 4x2GB Ripjaws 
Hard DriveOSMonitorPower
1x40GB Intel SSD, 1x250GB WD HDD Sabayon 19" Hans G Widescreen and 21" CRT Corsair 650Watt 
CaseMouse Pad
MM CYO U2UFO 13 Case Fans None! 
  hide details  
Reply
post #3 of 4
Thread Starter 
Quote:
Originally Posted by Fons View Post
I had used proxoid before and had a lot of problems with the app, Sometimes it would just stop working if the phone went into standby. Did this get fixed?
You know, I've had problems with this too, but it's less frequent with the 2.1 update on my moment.

Also, I decided to set my phone to not go in to standby while plugged in.
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
Damit
(13 items)
 
  
CPUMotherboardGraphicsRAM
Phenom II x4 965 Black MSI 790FX-GD70 Asus ATI 5850 4x2 GBs RipJaw DDR3 1066 MHz 
Hard DriveOptical DriveOSMonitor
RAID 0 500 GB WD Black Lite-On Blue Ray, Samsung DVD Arch Linux/Ubuntu 10.04 25.5" Samsung 
KeyboardPowerCaseMouse
PS2 by Compaq 750 Watt COOLER MASTER Elite RC-332-KKN1-GP Death Adder 
Mouse Pad
Custom 
  hide details  
Reply
post #4 of 4
I've been meaning to get a 2.1 root image to use wifi tethering for root users package, but since the OTA update went out I've been slacking.......gotta get on it! I took my laptop to the lake last weekend and could have used it then. Oh well.

Nice guide.
PWNzershreck
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 3.8 GHz 475*8 ASUS Rampage Formula X38 DD MCP chipset block Sapphire 4870X2 842/1000 8GB Geil Evo One DDR2-950 
Hard DriveOptical DriveOSMonitor
OCZ Revodrive 80GB & OCZ Vertex 2 60GB ASUS DVD-RW SATA Arch Linux x86_64 w/ KDE 4.5, Windows 7 x64 37" Westinghouse LVM-37W3 1080P LCD HDTV 
KeyboardPowerCaseMouse
Logitech G15 Silverstone DA850 850W Thermaltake Armor Silver Logitech MX Revolution 
Mouse Pad
Func 1030 
  hide details  
Reply
PWNzershreck
(13 items)
 
  
CPUMotherboardGraphicsRAM
Q6600 G0 3.8 GHz 475*8 ASUS Rampage Formula X38 DD MCP chipset block Sapphire 4870X2 842/1000 8GB Geil Evo One DDR2-950 
Hard DriveOptical DriveOSMonitor
OCZ Revodrive 80GB & OCZ Vertex 2 60GB ASUS DVD-RW SATA Arch Linux x86_64 w/ KDE 4.5, Windows 7 x64 37" Westinghouse LVM-37W3 1080P LCD HDTV 
KeyboardPowerCaseMouse
Logitech G15 Silverstone DA850 850W Thermaltake Armor Silver Logitech MX Revolution 
Mouse Pad
Func 1030 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › "Tethering" Linux machines with Android phones without root and in 12 easy steps