My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
installationLinux  
Updated Mar 8, 2010 by mike.bar...@gmail.com

#This page describes how to use Proxoid with Linux.

Installation on Linux

The guide below describes how to install and use proxoid with Linux. This guide has been tested with Ubuntu 9.04.

Step 0 : Download and install Proxoid on your phone

See this page for instructions.

Step 1 : Configure udev to recognize your phone

First, plug in your Android phone via usb. Then, create a file

/etc/udev/rules.d/09-android.rules 

containing the two lines

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"

Be sure to place yourself in "plugdev" group. Those lines works for all phone I tested : HTCs (G1, Tatoo, Nexus One), Motorola Milestone and Samsung Galaxy (I7500).

lsusb

Mine returns

...
Bus 001 Device 005: ID 0bb4:0c02 High Tech Computer Corp.
...

Then, restart udev by issuing the command

sudo /etc/init.d/udev restart

Step 2 : Download SDK

Download the Android SDK from here. Extract the file

unzip <downloadfile.zip>

Step 3 : Tunneling

Now, we can start tunneling betwwen your computer and your phone. Change directory to the tools subdirectory of the extracted Android SDK directory. Issue the command

./adb forward tcp:8080 tcp:8080

Step 3 : configure your browser

Your browser must use the proxy server running at localhost:8080.

Firefox

In firefox, go to Tools->Options->Advanced->Network->Settings. Here, enter the settings shown in the image below

Finally, untick the work offline check button in the file menu.

(Planned) Epiphany

Step 4 : Run proxoid on your phone

Finally, run Proxoid on your Android phone, click "Start" and start browsing ...

Advanced topics

Using Proxoid system-wide (Gnome only so far, Untested)

Start network preferences by running

gnome-network-preferences

or

gnome-network-properties

Click Manual Proxy Configuration and check Use the same proxy for all protocols. Then fill out

  • HTTP Proxy:
  • localhost Port: 8080
Finally, click the button Apply System-wide.

Configure Evolution (Untested)

To use Evolution with Proxoid, go to Edit->Preferences->Network Preferences. Fill out the fields

  • HTTP Proxy:
  • localhost Port: 8080
  • Secure HTTP Proxy:
  • localhost Port: 8080
  • SOCKS Proxy:
  • localhost Port: 8080

Configure SSH

To use SSH with proxoid, you need to download the latest version of corkscrew, a tool for tunneling SSH through HTTP proxies. Unpack the archive, change to the directory and compile the program

./configure
make
sudo make install

To use SSH through proxoid, add the following line to your ~/.ssh/config file

ProxyCommand /usr/local/bin/corkscrew localhost 8080 %h %p 

If you keep beeing logged out from the server, add the following line to the /etc/ssh/ssh_config file

ServerAliveInterval = 2

Troubleshooting

To check whether the device is recogniced properly by adb, try issuing the command (from the tools dir of the android SDK)

./adb devices

This should give you output of the form

* daemon not running. starting it now *
* daemon started successfully *
List of devices attached 
HTXXNKFXXXXX    device

If your devices is still not found, try to reboot (power off/power on) your computer with the phone plugged in via usb.

Comment by codr...@gmail.com, Jun 8, 2009

HI,

tghanks for this very useful program :)

I just want to notice you that you made a typo in the file name: /etc/udev/rules.da should be /etc/udev/rules.d

Comment by alex.kje...@gmail.com, Jun 20, 2009

Hi, This is an extremely useful app! :-)

Comment by windisch...@gmail.com, Jul 13, 2009

i still get the message: "device not found"

i connect the phone with USB on the laptop (Ubuntu 9.04) ./adb forward tcp:8080 tcp:8080 starts the deamon and then "device not found" What wrong?

Comment by project member kare1234, Jul 16, 2009

First, make sure that the file /etc/udev/rules.d/11-android.rules contains the two lines

SUBSYSTEMS=="usb", SYSFS{idVendor}=="0bb4", SYSFS{idProduct}=="0c02", MODE="0666", OWNER="yourusername" 
SUBSYSTEMS=="usb", SYSFS{idVendor}=="0bb4", SYSFS{idProduct}=="0c01", MODE="0666", OWNER="yourusername" 

Here, you have to replace yourusename by, well, your user name. Then, restart udev by issuing the command

sudo /etc/init.d/udev restart

To check wether the device is recogniced properly by adb, try issuing the command (from the tools dir of the android SDK)

./adb devices

This should give you output of the form

* daemon not running. starting it now *
* daemon started successfully *
List of devices attached 
HTXXNKFXXXXX	device

If your devices is still not found, try to reboot (power off/power on) your computer with the phone plugged in via usb. Finally, you can try to check the idProduct and idVendor stings by issuing the command

lsusb

Mine returns

...
Bus 001 Device 005: ID 0bb4:0c02 High Tech Computer Corp.
...
Comment by lumarica...@gmail.com, Aug 2, 2009

Hi there

Everything works out of the box for me but for some reasson i cannot browse through some websites like gmail and i'm not able to setup evolution email client to fetch email. Any work around for this issues

Thanks

Comment by project member kare1234, Aug 5, 2009

Hi,

I have added installation instructions for Evolution. Let me know if they work. Regarding gmail, I am not sure why this does not work.

Which operating system are you using? Which browser are you using?

If you are using Firefox, have you clicked the Use this proxy server for all protocols button in the configuration dialog?

Cheers, Kaare

Comment by joan.fru...@gmail.com, Aug 15, 2009

Hi, Sorry for my french

I followed the different step and my problem is that when i do from the tools directory : ./adb forward tcp:8080 tcp:8080 the terminal return : error device not found

I tryed to reboot, but it doesn't succed

When i do lsusb it returns different lines : the interesting one is Bus 004 Device 010: ID 04e8:6640 Samsung Electronics Co., Ltd

I tried to replace the values of idVendor and idProduct in the file 11-android.rules by the values above, but it doesn't works.

If someone knows how to do ? Thanks

Comment by dinyar.r...@gmail.com, Aug 18, 2009

Hi!

I wrote myself a very basic bash script which i can link to from my panel, i thought it might help someone..

to start tethering:

#! /bin/sh
# Routes network traffic to G1 and switches the GNOME proxy on

cd /opt/android-tether/android-sdk/tools && touch iwashere && ./adb forward tcp:8080 tcp:8080

echo "Enabled forwarding."

gconftool-2 -t string -s /system/proxy/mode "manual"
gconftool-2 -t string -s /system/http_proxy/host "localhost"
gconftool-2 -t int -s /system/http_proxy/port "8080"

echo "Enabled proxy."

and to end it:

#! /bin/sh
# Switches the GNOME proxy off

gconftool-2 -t string -s /system/proxy/mode "off"

echo "Disabled proxy."
Comment by pclawler, Aug 19, 2009

I was just going to look into my first shell/bash scripting...Nice addition and starter for me, much appreciated, din :)

Comment by brianmartin@gmail.com, Aug 19, 2009

wonderful work, thank you so much

Comment by nagel.pa...@gmail.com, Aug 27, 2009

Extremely useful, works perfectly, well documented. Thanks!

Comment by BUGabu...@gmail.com, Sep 4, 2009

I had no need to change UDEV rules. I'm running Ubuntu Karmic (9.10 alpha5) 64 bits

FYI it works great.

Comment by kym...@gmail.com, Sep 11, 2009

It would be nice if you added this to top of the page Go to home by pressing "Home" button on your phone. (Your phone's home, not Proxoid's). Press "Menu" buttn and select "Settings". Select "Application" item. Then "Developpenent" item.

Be sure that "USB debugging" checkbox is checked.

I know it's on the other page but I didn't notice it until I got around to trying this out on the 2nd computer I found.

Comment by sauniert...@gmail.com, Sep 29, 2009

First thanks for this great app, evrything works well with karmic alpha6 here.

Then I can't get evolution working neither.

error configuration

Comment by ronspoo...@gmail.com, Oct 20, 2009

Thank you very much

I followed your instructions and it worked :-)

Ron

Comment by alex...@gmail.com, Oct 21, 2009

Hi, cool work. To get it working on debian squeeze I had to chmod 755 android.rules. Then it did the job fine. Alex

Comment by ayis...@gmail.com, Oct 27, 2009

Hi,

I am getting error: error: cannot bind socket

./adb devices lists the device as: HT93ZGZ02274

Comment by dzeni...@gmail.com, Nov 2, 2009

True that all this is very good and very well done, but I do have some beginners questions...: 1. What does "tethering" means? 2. How to keep on using proxoid for the ubuntu updates for example? 3. I have an acces to my office computer through Terminal Service (CITRIX Receiver) that doesn't work with proxoid... but it works with a classical cable connexion... How could I do to use it with proxoid? 4. Evolution still doesn't work, even configured as you said...

Comment by dzeni...@gmail.com, Nov 2, 2009

Added question: Sorry I forgot one... 5. I have to pass by your step 3 each time I want to connect through proxoid. Is it possible to make that step a bit more "automatized"?

Comment by ayis...@gmail.com, Nov 2, 2009

dzenieck: 1 - Tethering means using your phone as a "modem"/access point for your laptop/desktop. So you use the Internet through your phone.

2 - No relevance. What do you mean?

3 - That won't work. Maybe with some complex routing. But basically, unless you're a guru, this will be for brosing the web, not VPN, etc.

4 - What happens with Evolution?

5 - See Comment by dinyar.r...@gmail.com, Aug 18, 2009

That is a great script and you can even put two icons on your desktop that you click to turn on/off.

Comment by dzeni...@gmail.com, Nov 2, 2009

Hi ayusyen,

Thanks for answering. About the 2nd question: Whan I try to get the available updates, I get this (sorry it's in french but I am sure you'll get through...) : W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty/Release.gpg Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty/main/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty/restricted/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty/universe/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/Release.gpg Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/Release.gpg Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/main/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/restricted/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/universe/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-backports/multiverse/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.canonical.com/ubuntu/dists/jaunty/Release.gpg Ne parvient pas à résoudre « archive.canonical.com »

W: Impossible de récupérer http://archive.canonical.com/ubuntu/dists/jaunty/partner/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.canonical.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-security/Release.gpg Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-security/main/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-security/restricted/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-security/universe/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/Release.gpg Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/restricted/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/main/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/multiverse/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Impossible de récupérer http://archive.ubuntu.com/ubuntu/dists/jaunty-proposed/universe/i18n/Translation-fr.bz2 Ne parvient pas à résoudre « archive.ubuntu.com »

W: Le téléchargement de quelques fichiers d'index a échoué, ils ont été ignorés, ou les anciens ont été utilisés à la place.

About the 3rd: Too bad :-( Do you think any easy solution (you guessed that I'm not a guru...) will appear anyday?

About the 4th: Anyway I left it. I'm gonna manage my email and calendar directly from the website.

About the 5th: As a beginner, I don't know what to do with this script and how to create the icons you're talking about... Deeply sorry for my ignorance.

Thanks for your time, I really appreciate.

Dzenieck

Comment by holzma...@gmail.com, Nov 3, 2009

Hallo!

I have some extension to the shell script above (which didn't work on my ubuntu karmic) - the following enables also https for gnome. Using this script you don't have to change something in firefox (and other programs) all the time ...

Here to start tethering (change to path to your android sdk):

#! /bin/sh
# Routes network traffic to G1 and switches the GNOME proxy on

/path/to/your/android/sdk/tools/adb forward tcp:8080 tcp:8080

echo "Enabled forwarding."

# activate proxy
gconftool-2 -t string -s /system/proxy/mode "manual"
gconftool-2 -t bool -s /system/http_proxy/use_http_proxy true
# http settings
gconftool-2 -t string -s /system/http_proxy/host "localhost"
gconftool-2 -t int -s /system/http_proxy/port "8080"
# https settings
gconftool-2 -t string -s /system/proxy/secure_host "localhost"
gconftool-2 -t int -s /system/proxy/secure_port "8080"

echo "Enabled proxy."

And to end tethering:

#! /bin/sh
# Switches the GNOME proxy off

gconftool-2 -t string -s /system/proxy/mode "none"
gconftool-2 -t bool -s /system/http_proxy/use_http_proxy false

echo "Disabled proxy."

Have fun ;)

Comment by lyderic....@gmail.com, Nov 10, 2009

To get a Cupcake Samsung Galaxy be recognised by a Karmic 32bit do the following:

1. Use the following udev rule (as Samsung has a different vendor id):

$ cat /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb",ATTRS(idVendor)=="04e8",SYMLINK+="android_adb",MODE="0666"

2. Use the adb binary from the 1.6 SDK as the one provided with the 2.0 SDK doesn't recognise the Galaxy.

Comment by StevenLi...@gmail.com, Nov 16, 2009

Wow thanks, great stuff, I even got it working even tho I dont know the first thing about linux! thanks a million

Comment by matsi...@gmail.com, Nov 20, 2009

I have a problem on step 3:

When I do "./adb forward tcp:8080 tcp:8080" I get the message: bash: ./adb: No such file or directory (I'm in the tools directory), so I tried the command: . ./adb forward tcp:8080 tcp:8080 , and I got: bash: ELF: command not found

I'm using Ubuntu 2.6 with a Samsung Galaxy The phone is recognized, I can see it when I do a lsusb, I get Bus 002 Device 005: ID 04e8:6640 Samsung Electronics Co., Ltd Usb Modem Enumerator

Any ideas?

Comment by dolom...@gmail.com, Dec 8, 2009

great installation instructions! works perfectly with the motorola droid, the android 2.0.1 sdk and linux mint helena!

Comment by r0oc...@gmail.com, Dec 31, 2009

Step 2 to download the SDK for 1.5-r1 is not valid. The "here" link resolves to a page for 1.5-r3, and it has no download links. The "direct" link appears to be redirected to "http://developer.android.com/sdk/index.html" which has "r04" download files, but it is not clear if they are for 1.5, 1.6, or 2.0. Any other links or would that r04 kit work with Eris?

TIA, RO

Comment by marty.ca...@gmail.com, Jan 4, 2010

SWEET! Thank you for this! It works great on Ubuntu 9.10 and my Motorola Droid! The only thing I'd like to see is the ability to use vnc & rdp apps while connected with Proxoid.

Comment by fashions...@gmail.com, Jan 10, 2010

I'm stuck at the end of step 2 - restarting the udev. I keep getting the invalid command error. I'm a first time linux user and I'm running Ubuntu 8.4 There are commands that I am just not familiar with like touch to create the file so I'm researching as I go. I'm sure I've missed something. Thanks

Comment by jbuse...@gmail.com, Jan 20, 2010

Hi There,

unfortunately it not working for me.

Everything is fine until: Step 3

./adb forward tcp:8080 tcp:8080 deamon not running. starting it now deamon started successfully error: cannot bind socket

Trying it via sudo doesn't help either. Is there anyone who knows what to do?

TIA Julian

Comment by lenno...@gmail.com, Feb 6, 2010

@matsim87 I had the same problem " bash: ./adb: No such file or directory ". The problem was I had Ubuntu 9.10 64bit edition. If you have the 64-bit edition you need to follow the step in the terminal.

apt-get install ia32-libs

then

apt-get install sun-java6-bin

I been using Linux for about 12 hours so I am by no means an expert, but I did this and it worked.

I am not sure if you needed to install both, but I did and it worked.

Comment by vpa...@gmail.com, Feb 6, 2010

very nice! It worked for me following carefully the few easy steps, linux users need them. I'd encourage you to do more like this for the linux community... thanks a lot!! v

Comment by billy...@gmail.com, Feb 12, 2010

works well on DOCOMO HTO3A. Also applying the change in Gnome network manager works also.

Comment by MattF...@gmail.com, Feb 12, 2010

Anyone know how to make the proxy work for KDE?

Comment by troyengel, Feb 14, 2010

From the above bash snips, here's a complete SysV style script that you can put in your $HOME/bin/ as pdroid.sh. Use it with "pdroid.sh start" or "pdroid.sh stop" for instance. Built for Fedora 12 but should work in Ubuntu, etc.

Still having problems getting Pidgin/GTalk to work but Firefox works like a champ.

#!/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
Comment by Sistema1...@gmail.com, Feb 18, 2010

Nice script. I have made custom launchers in the task panel for start and stop.

One change for Ubuntu 9.10 for the stop portion:

"${GCF}" -t string -s /system/proxy/mode "none"

should be changed to:

"${GCF}" -t string -s /system/proxy/mode "direct"

Comment by chadm...@gmail.com, Feb 18, 2010

I'm having some issues with my Samsung Behold 2 & Ubuntu netbook remix.

I see the phone when I 'lsusb' but not with adb.

When I try to restart udev, I get a message that I should restart the service instead, which I can do, but still adb does not work.

Also when I reboot with my phone plugged in, it stalls on the bios screen. My phone has debug mode turned on.

Can anyone suggest anything?

Comment by vermayog...@gmail.com, Feb 22, 2010

Recently I have purchased samsung galaxy GT-I5700. I am able to run the net in window vista through pdanet but after all my effort I am unable to connect it to ubuntu 9.10 i have installed sdk, eclips and all you have mentioned but nothing do work. Ubuntu is unable to recognize the phone. Please help me!

Comment by rcoy...@gmail.com, Feb 26, 2010

I made a script for this in Python that will do install/start/stop/restart.

http://github.com/rcoyner/snippets/blob/master/proxoid.py

Requirements


Python 2.6 - 3.2 wget

Install


Automatically downloads Android SDK and extracts adb to $HOME/bin. If the download is interrupted, it will pick up where it left off.

Provided that you have wget, install will automatically download adb and put it in ~/bin. It will clean up after itself when installation is complete.

Start/Stop/Restart


Generic starting and stopping functions. Functionality is the same as the bash scripts from above.

Comment by fabrice....@gmail.com, Mar 13, 2010

I have a Samsung Galaxy Spica and a Debian squeeze PC.

I confirm what lyderic.landry said in its comment : the current sdk doesn't work with the Galaxy Spica / Cupcake firmware ; I had to use the previous -much bigger- 1.6 sdk version at http://developer.android.com/sdk/download.html?v=archives/android-sdk-linux_x86-1.6_r1.tgz

Comment by bloo...@gmail.com, Mar 30, 2010

It's extremely important to make sure that in the Firefox proxy settings, you must select "SOCKS v5" before selecting "Use this proxy setting for all protocols". If "SOCKS v4" is selected, then name resolution won't work, and web pages will either not load or Firefox will wait forever trying to load them.

Comment by WDH...@gmail.com, Apr 1, 2010

Can anyone give any tips on using Chromium? I'm currently using th Flow build from Hexxeh (http://hexxeh.net/)

I've also started a wiki specifically for it (http://chromeos.hexxeh.net/wiki/doku.php?id=tether_to_an_android_device) to try and enlist help

Comment by shuku...@gmail.com, Apr 4, 2010

I just tried it on my Nexus One and it worked fine. Thanks heaps.

Just wondering to get this to work system wide, I added it to gnome-network-properties and clicked on system wide and got some output that looked satisfactory :

cb_make_system_default set_proxy_helper: 'http' 'localhost' p: http://localhost:8080/ set_proxy() returned: 1 reseting proxy ftp reset_proxy() returned: 1 reseting proxy https reset_proxy() returned: 1 set_set_to_system_gconf_helper

but that doesn't seem to apply to a couple of applications that I use very often such as KMail, RapidSVN and apt ( Synaptic or etc ). I use Ubuntu 10.04. Do I have to configure every application separately ? Any suggestions ?

Cheers, Shuku.

Comment by denis.qu...@gmail.com, Apr 13, 2010

Hi folks, Thanks for this job. Probably really helpful... unfortunately I am stuck with "adb devices ???????... no permissions" So I had had the lines within The rules with Owner=moi. I had set permissions to 755 to the udev rule file. I have kubuntu 9.10

Thanks for your holly help ( I am living in the countryside and my phone is the only way to get connected).

Comment by superbiji@gmail.com, Apr 15, 2010

Worked !

Comment by thistle...@gmail.com, Apr 17, 2010

denis

You must
1. connect your phone 2. run from terminal ( sudo service udev restart) 3. cd ~/andr(TAB)/tools 4. sudo ./adb forward tcp:8080 tcp:8080 you should see the service startup you can type ./adb devices to check hope this helps

Comment by troygnic...@gmail.com, Apr 23, 2010

denis,

Here's some more info:

For those who are getting the "insufficient permissions for device" error, try this:

1.on phone: settings->applications->development; enable USB debugging start proxoid

2.on laptop (after installing Android SDK and adding 90-android.rules)

cd android-sdk-linux/tools ./adb kill-server sudo ./adb start-server ./adb devices ./adb forward tcp:8080 tcp:8080

3. Change network settings in your browser to manual proxy configuration with HTTP Proxy=localhost and Port=8080

taken from here:

http://www.linux-magazine.com/Online/Blogs/Productivity-Sauce-Dmitri-s-open-source-blend-of-productive-computing/Tether-an-Android-Phone-Using-Proxoid

which was originally taken from here:

http://androidforums.com/how-tips/17470-droid-tethering-all-operating-systems-tested-linux.html#post136254

Comment by troygnic...@gmail.com, Apr 23, 2010

The step I was missing was the important (and now seemingly obvious) one: START PROXOID. If proxoid is not running, I get the result

adb devices ???????... no permissions

for the query:

./adb devices

Comment by zeger.kn...@gmail.com, Apr 25, 2010

Instead of using corkscrew for SSH just use (apt-get) Putty and setup the proxy settings there.

Comment by junioma, Apr 29, 2010

>>>>jbusenet

Try to use localhost:8080 in your browser. Probably you got another webserver running in the 8080 port. try to use : sudo ./adb forward tcp:8081 tcp:8080

And configure in your firefox the proxy using the 8081 port. Cya

Comment by docf...@gmail.com, May 1, 2010

Please add to the steps - For Fedora 12, in Step 1, create the plugdev group if you don't have it using "groupadd plugdev." Then, as root, edit the file /etc/group and add your username to the tail end of the list. For example, plugdev:x:501:rfink,root . After step 1, you need to reboot the machine else you get "insufficient permissions for device" in step 3.

I confirm that this works for Fedora 12, Motorola Droid running Droid OS version 2.1. Thank you very much! Much better than "Internet Sharer" app.

Comment by semiswe...@gmail.com, May 14, 2010

Hi, would someone PLEASE tell us newbies exactly WHERE to type these lines and make a new file??? I see several other people have asked the question, but I don't see anyone sharing that info. I'm another confused newbie, trying to break the Windows habit. I gotta say, for overall user-friendliness, this is NOT easy..!! You all remember when you just began, don't you?? Come on, someone.. spill the beans.

Comment by sa3yo2...@gmail.com, May 14, 2010

if you using samsung galaxy spica + ubuntu jaunty like myself, just follow instructions above, but change name of the file from 09-android.rules to 51-android.rules, it works for me :)

Comment by sa3yo2...@gmail.com, May 15, 2010

One more thing for spica user, replace adb with this patched one wget http://floe.butterbrot.org/external/adb.gz gunzip adb.gz chmod +x adb

Comment by sa3yo2...@gmail.com, May 15, 2010

@semisweet1 : just type in your terminal,

gksudo gedit /etc/ udev/ rules. d/ 09- android. rules

Comment by damondolby@gmail.com, May 25, 2010

Excellent app and instructions. Got internet working on Ubuntu 10.04 via Samsung Galaxy Portal (i5700) fairly pain free. Got the"insufficient permissions for device" error initially but hadn't started Proxoid on phone. Also had to configure Firefox proxy to use 8081 with "Work Offline" switched off in the File menu (after a little fiddling).

Comment by larkspur...@gmail.com, May 27, 2010

Working fine on Ubuntu 9.10 with HTC Droid Eris. I couldn't get the scripts to work correctly, but the simple configuration steps in Firefox are ok with me. Just happy (really happy!) to have this functionality! Thank you for this!

Comment by adam2new@gmail.com, Jun 14, 2010

Typo found:

Step 1 : Configure udev to recognize your phone
First, plug in your Android phone via usb. Then, create a file
/etc/udev/rules.d/09-android.rules
containing the two lines

The next part contains FOUR lines!

Comment by bill.cat...@gmail.com, Jun 20, 2010

At least with Fedora 13, and probably earlier, the Evolution proxy setup won't work because Evolution needs to be told there is a network. I've not looked at the code yet, but I presume it's interacting with Network manager to detect the existence of a network, and that test will never be true with just the proxy running.

Comment by Rognli...@gmail.com, Jul 6, 2010

I suggest an addition to your instructions that will help those who are getting a "device not found" error; you need to enable USB debugging on your phone.

Comment by jeffball55@gmail.com, Jul 19, 2010

Link to Android Wiki on the topic of connecting your device to Linux: http://developer.android.com/guide/developing/device.html

This page has all the vendor Ids.

Comment by DavidJuh...@gmail.com, Jul 19, 2010

Evolution doesn't work even telling it the proxy. I use Quassel and pidgin. Has anyone got these applications to work? Tethering the phone is better than the internet this Hotel provides I can basically access my gmail account via firefox and stream some music via lastfm....I'd was just wondering if people got it to do more? I run Gentoo Linux on my laptop...

Comment by dbhar...@gmail.com, Aug 12, 2010

Fantastic application! THANK YOU SO MUCH :)

I was thinking I was going to have to write this myself (and I'm not much of a coder) - "how can it be that nobody's worked up a good HTTP or SOCKS proxy accessible via the developer bridge?"

You rock. :) Have a cookie.

Comment by napster...@gmail.com, Sep 25, 2010

Nice app! I couldn't get it to work with Chrome (later project) but it works beautifully with Firefox. Thanks a lot!

Comment by jgonzale...@gmail.com, Oct 5, 2010

Works perfectly with Samsung Galaxy Spica (Android 2.1) in Ubuntu 10.04 64 bits with android-sdk_r07-linux_x86.tgz. Only I needed the steps 0, 2, 4 and "holzmanng" script.

Thank you everyone!

Also HTTPS works ;)

Comment by renato...@gmail.com, Oct 20, 2010

Hi,

I'm having problems when trying to make adb forward port 8080. It says "error:device not found". When I try adb devices the list is empty. I have the following line at 09-android.rules: SUBSYSTEMS=="usb", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="e12e", MODE="0666", OWNER="me" That has the info I collected from my X10 with lsusb. Any ideas on how to make adb recognize my device? thanks

Comment by alexandr...@gmail.com, Nov 24, 2010

Hello peoples. I have the same problem with the sony xperia x10 mini pro. 11-android.rules: SUBSYSTEMS=="usb", SYSFS{idVendor}=="0fce", SYSFS{idProduct}=="3138", MODE="0666", OWNER="me"

and ./adb return: "device not found"

lsusb return:

Bus 001 Device 006: ID 0fce:3138 Sony Ericsson Mobile Communications AB

Comment by ahmetalp...@gmail.com, Dec 10, 2010

I applied all, but after changing proxy, my computer's internet has gone, and my droid couldn't connect tothe internet.

Comment by drowning...@gmail.com, Dec 18, 2010

Hi, When downloading the pointed SDK for Linux, you have to run tools/android update sdk so the needed tool (adb) is installed. And then you'll find it there : ./platform-tools/adb

Using HTC desire and Karmic (Ubuntu 9.10) : SUBSYSTEMS=="usb", SYSFS{idVendor}=="0bb4", SYSFS{idProduct}=="0c87", MODE="0666", OWNER="username" is the only line I put in /etc/udev/rules.d/09-android.rules

HTH

Comment by levin...@gmail.com, Jan 3, 2011

Hi,

I am a new Ubuntu user, so I apologize for my ignorance of the basics. Do these instructions work for version 10.04 (Lucid Lynx)? If not, can someone point me in the right direction?

I cannot seem to get past the first command, to create the file, as the terminal is returning: touch: cannot touch `/etc/udev/rules.d/09-android.rules': Permission denied

Any help?

Comment by mog...@gmail.com, Jan 9, 2011

Hi, I get "device not found", some idea?

# ./adb devices daemon not running. starting it now on port 5037 daemon started successfully error: device not found

Comment by mog...@gmail.com, Jan 9, 2011

SOLVED... I was using a different (generic) micro B usb cable. You should use 'Micro B USB' provided by Motorola (I have milestone). #terrible

Comment by tomlee...@gmail.com, Jan 12, 2011

Hello all, is there a port of adb to arm-linux, I wonder? Thanks.

Comment by heinrich...@gmail.com, Jan 30, 2011

My Linux Mint 10 (Julia) ignored /etc/udev/rules.d/09-android.rules completely. I moved it to /lib/udev/rules.d/ where much more .rules files existed. Seems to be a better place for these files, at least for newer Ubuntu releases.

Comment by staticex...@gmail.com, Jan 30, 2011

Anyone have it working with transmission bittorrent client?

Comment by mats...@gmail.com, Mar 1, 2011

Not easy for a new Linux user but it works fine with my Acer Liquid.

Thanks!

Comment by marci...@gmail.com, Mar 22, 2011

Ubuntu Lucid Lynx here, with a Samsung Galaxy S with Froyo. Trying to make it work.

If I just tether the phone in the computer, starting the connection in the Settings panel in Froyo, the usb0 link is up, and IP address is assigned to the connection, I can use the phone with no problems as a modem, but without Proxoid. If I activate Proxoid on the phone, and set the browser proxy to the IP address shown in the usb0 connection, and the port that was set in the Proxoid settings panel (I've tried a few, 8080, 8081, 6669...), the browser could not connect to any sites.

Any ideas?

Comment by ccx...@gmail.com, May 15, 2011

Marci... @ gmail..com --

Have you tried forwarding your ports? it took me a while to figure this out, but you go to your android-sdk file folder, tools directory, (in terminal) and type the following ./adb forward tcp:8080 tcp:8080 - you have to do this every single time you start linux ;)

anyway, my problem here is I have no problems browsing (after hours of config work a while back), but I've been trying to do a few more complicated things which don't seem to work.

I've tried torrents via three separate programs... Azureus, Transmission, and Qbittorent. None work. I've forwarded ports in my router to a specific port, and that doesn't do anything. Anyone got torrents to work with this?

A few other programs seem not to cooperate with proxoid and that would be... namely, Nikto and ping (don't ask me why i was trying to use those ;).

Comment by pastorjb...@gmail.com, Jun 18, 2011

Wow, all this makes me glad I'm using EasyTether?. Works great with my DroidX and Mint 11, and I don't have to mess around with changing the proxy in Firefox or with the system every time I'm using WiFi? as opposed to my cell phone. I gave Proxoid a shot, and had it working. However, for me, it's just too much fuss when I have an executable script on my desktop that I can double-click when I plug in my phone to connect with EasyTether?.

Comment by zigo...@gmail.com, Jul 22, 2011

Works great with Atrix 4G and Ubuntu Natty on Intel x64 where adb is readily available.

I also tried it with my Atrix 4G on Ubuntu Maverick on the ARM architecture after building myself the adb tool ... and I am having a problem. Everything works fine for a few seconds and then the proxy refuses connection. After forwarding port 8080 again its good for another few seconds and I have to keep forwarding the port over and over every few seconds. Any ideas?

Comment by hafat...@gmail.com, Jul 30, 2011

How to set up them with IPv6..? thanks

Comment by shailesh...@gmail.com, Sep 3, 2011

Thanks for a detailed post. I could run proxoid successfully after a little effort. I have some questions though: 1. Is this a secured network? I mean can I use the internet connection safely to connect to bank websites, execute transactions without having any risk of interception of the sensitive information that I enter by any intruder? In short is it absolutely secured like a conventional LAN connection by web providers. 2. How can I enable firewall? I am using Linux Ubuntu 10.10 on 64 Bit AMD processor having Firestarter as firewall. Firestarter detects connection of any other USB Internet or eth connection/ wifi connection and automatically starts firewall. In case of proxoid, it simply doesnt understand that internet is active and does not allow me to manually start firewall either. In short, I can't activate firewall while using proxoid and that is very risky. (Being linux, I have no other antivirus on PC) Pl. reply as your replies will solely decide whether I shall continue to use proxoid or switch back to conventional LAN web, even if it means paying extra to my service provider. Thanks

Comment by zignm...@gmail.com, Oct 2, 2011

For security issue that communicating with a bank websites, i think it is nothing to worry about, the bank websites should have enforced HTTPS connection to make sure every single byte is encrypted. It is equal security to (maybe even better than ) execute transactions on your cell phone.


Sign in to add a comment
Powered by Google Project Hosting