5,596,179 Members 34,013 Now Online
XDA Developers Android and Mobile Development Forum

[GUIDE][TETHERING] Clockworkmod Tether via USB

Tip us?
 
Modding.MyMind
Old
(Last edited by Modding.MyMind; 19th January 2014 at 02:55 AM.)
#1  
Modding.MyMind's Avatar
Senior Member - OP
Thanks Meter 938
Posts: 1,129
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
Default [GUIDE][TETHERING] Clockworkmod Tether via USB

CLOCKWORKMOD TETHER via USB for Linux Users

-- This guide is in reference to Ubuntu 13.10 (May work for other versions)
-- These are NOT instructions for Windows users - So please stop here if you do not use Linux

The main reason I had trouble is that the included adb file with the linux Clockworkmod Tether app would not work. Period. Nothing I tried would execute it, ./adb devices for example would return adb: No such file or directory, even after changing it to executable with chmod or with the properties dialog...

-- I have gotten this to work with the help of several posts on various websites and will be reposting some code that helped.
-- This guide has been written while currently tethering from my device. Let's begin....


1. Download and install the Clockworkmod Tether app on to your phone.

2. Open a terminal in Ubuntu (I use Guake Terminal), and enter:
Code:
sudo apt-get install android-tools-adb
-- This will install the proper adb files on to your system
-- If you have already done this previously in the past, then step 2 is not required.

3. Open a browser E.g. Firefox and search for Clockworkmod Tether. Go the the google play website for the app, scroll down and click to download for the Linux version.

-- Also, you can open up the app on your device and download it from there and then transfer the file over to your computer.

4. You should have a .tgz file now. Extract it to wherever you want. I personally have it kept in a folder called 'development' in my home directory. You should now have a folder named Tether.

5. Open the Tether folder and navigate to the linux sub-dir. Here you should have 2 files: adb and run.sh. Open run.sh with a text editor.

6. Replace the line that looks like:
Code:
../linux/adb start-server
with
Code:
adb start-server
7. Save and exit ./run.sh.

8. Now go back to the Tether dir and go to node-tuntap dir. Open adb.js in a text editor.

9. Replace the line that looks like:
Code:
adbPath = '"' + path.join(process.cwd(), adbPath) + '"';
with
Code:
adbPath = '/usr/bin/adb';
10. Save and exit adb.js

11. Go back to the terminal and enter:
Code:
sudo gedit /etc/udev/rules.d/70-android.rules
then paste in this:
Code:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
12. Save and exit 70-android.rules.

13. You need to compile CLockwork Tether before running run.sh. To do so, make sure you have the proper dependencies installed like g++ then go to Tether/node dir in terminal and enter:
Code:
./configure
then enter
Code:
make
If everything went well, you should be able to run ./run.sh


14. Plug in your phone to the computer via usb, make sure it's not set to mass storage (the disk drive shouldn't be mounted). Start the tether app on your phone.

15. Disconnect from all networks (ethernet, wifi, etc.) on Ubuntu.

16. Back in your Ubuntu terminal change directory to the Tether dir, then enter:
Code:
sudo linux/run.sh
-- Only if necessary, in another terminal enter:
Code:
sudo ifup tun
Congratulations, if all went well, you should be able to load web pages in your browser, as well as do other things online so long as you have good cell reception.

--- Happy Hunting!!
The Following 3 Users Say Thank You to Modding.MyMind For This Useful Post: [ Click to Expand ]
 
russellvone
Old
(Last edited by russellvone; 19th January 2014 at 01:10 AM.)
#2  
russellvone's Avatar
Senior Member
Thanks Meter 762
Posts: 1,566
Join Date: Jan 2013
Location: Longview

 
DONATE TO ME
well, kinda good, but what if? no Wi-Fi or internet connection? then sudo apt-get can not work lol

also, it was much easier when I did it this really seems like the long way around lol

#EDIT

I also got it working with downloading what I needed via phone, then transferring it to the Linux box, without available internet connection to the computer, until I got clockworkmod tether running, of course

---------- Post added at 07:12 PM ---------- Previous post was at 07:06 PM ----------

it is good to see this here though, I repo synced using my 4g lol(so fast)

---------- Post added at 07:17 PM ---------- Previous post was at 07:12 PM ----------

Quote:
Originally Posted by Modding.MyMind View Post
Code:
sudo ifup tun
also, what's this? For

---------- Post added at 07:21 PM ---------- Previous post was at 07:17 PM ----------

I bought a usb-to-Ethernet coupler so when I plug it in to use clockworkmod tether it's recognised by the Ubuntu Software Center as a wired connection, without it just running it through usb port 3.0 or 2.0 I could never click the install button I had to Google the apt-get for installing additional add-ons and software

---------- Post added at 07:28 PM ---------- Previous post was at 07:21 PM ----------

ps

I'm running on no sleep the past 46 hours and lots of red bull and rockstar! Sorry if I'm coming off...heh, different..
The Following User Says Thank You to russellvone For This Useful Post: [ Click to Expand ]
 
Modding.MyMind
Old
#3  
Modding.MyMind's Avatar
Senior Member - OP
Thanks Meter 938
Posts: 1,129
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
Hahahahaha you need sleep bro

Sent from my C525c using Tapatalk
 
Modding.MyMind
Old
#4  
Modding.MyMind's Avatar
Senior Member - OP
Thanks Meter 938
Posts: 1,129
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
I used my cell phone also. I don't have WiFi so there was no choice but to use my device and then transfer everything over, but that should be relatively explanatory for those with no WiFi lol.

Sent from my C525c using Tapatalk
 
russellvone
Old
#5  
russellvone's Avatar
Senior Member
Thanks Meter 762
Posts: 1,566
Join Date: Jan 2013
Location: Longview

 
DONATE TO ME
I'm working on it, gotta change my usual sleeping habits, my chick got a graveyard shift(second job)

I'm playing Mr mom watching the kiddo and working the watching the kiddo some more, he's git lots of energy
The Following User Says Thank You to russellvone For This Useful Post: [ Click to Expand ]
 
Modding.MyMind
Old
#6  
Modding.MyMind's Avatar
Senior Member - OP
Thanks Meter 938
Posts: 1,129
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
The steps I provided literally took me about ten minutes at most. The longest part was compiling using gcc and g++

Sent from my C525c using Tapatalk
The Following User Says Thank You to Modding.MyMind For This Useful Post: [ Click to Expand ]
 
Modding.MyMind
Old
#7  
Modding.MyMind's Avatar
Senior Member - OP
Thanks Meter 938
Posts: 1,129
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
Quote:
Originally Posted by russellvone View Post
I'm working on it, gotta change my usual sleeping habits, my chick got a graveyard shift(second job)

I'm playing Mr mom watching the kiddo and working the watching the kiddo some more, he's git lots of energy
I know how that is. Prior military lol.

Sent from my C525c using Tapatalk
The Following User Says Thank You to Modding.MyMind For This Useful Post: [ Click to Expand ]
 
russellvone
Old
#8  
russellvone's Avatar
Senior Member
Thanks Meter 762
Posts: 1,566
Join Date: Jan 2013
Location: Longview

 
DONATE TO ME
ditto, what branch?

regular Army here
88 Mike truck driver lol
 
Modding.MyMind
Old
#9  
Modding.MyMind's Avatar
Senior Member - OP
Thanks Meter 938
Posts: 1,129
Join Date: Nov 2013
Location: Richmond, Virginia

 
DONATE TO ME
Quote:
Originally Posted by russellvone View Post
ditto, what branch?

regular Army here
88 Mike truck driver lol
Marines, 3531, Motor Transport Operator.

Sent from my C525c using Tapatalk
The Following User Says Thank You to Modding.MyMind For This Useful Post: [ Click to Expand ]
 
russellvone
Old
#10  
russellvone's Avatar
Senior Member
Thanks Meter 762
Posts: 1,566
Join Date: Jan 2013
Location: Longview

 
DONATE TO ME
sweet, he's out....my turn

you learn in military service that 4 hours is ask you need per 24, hopefully I'll get 8 tonight

---------- Post added at 08:09 PM ---------- Previous post was at 08:05 PM ----------

Quote:
Originally Posted by Modding.MyMind View Post
Marines, 3531, Motor Transport Operator.

Sent from my C525c using Tapatalk
hoo rah friend, I've got an extra usb to Ethernet if you want it.

got a multi pack from Amazon for small price, do you have the same issue I did with the software center in ubuntu?

The Following User Says Thank You to russellvone For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes