Damn Small Linux (DSL) Forums
Welcome, Guest. Please login or register.
May 28, 2023, 11:15:39 PM

Login with username, password and session length
News
The new DSL forums are now open.
Stats
11609 Posts in 311 Topics by 291 Members
Latest Member: mik3ca
Search:     Advanced search
* Home Help Search Login Register
Get The Official Damn Small Linux Book. Great VPS hosting provided by Tektonic

+  Damn Small Linux (DSL) Forums
|-+  Damn Small Linux
| |-+  Other Help Topics
| | |-+  USB Tethering
« previous next »
Pages: [1] Print
Author Topic: USB Tethering  (Read 10058 times)
Evoke
Newbie
*
Posts: 1


View Profile
« on: July 23, 2015, 03:27:38 PM »

I know this has been asked, but I haven't found a working answer. Is it possible to connect a computer running DSL to the Internet via USB tethering by Android.
Logged
CNK
Sr. Member
****
Posts: 269


View Profile
« Reply #1 on: July 23, 2015, 10:38:34 PM »

I just checked, and DSL does include the "usbnet" module (in /lib/modules/2.4.31/kernel/drivers/usb/) for networking over USB. Because the DSL base system is quite old now, many newer drivers that work with usbnet are probably missing. In theory it should work with some phones [EDIT: actually for just Android phones, they should all do tethering the same].

Open a terminal window, type "ifconfig" and watch what network interfaces are listed along the left of the window. Now connect your phone in tethering mode and, after waiting for everything to work itself out, do "ifconfig" again and note if the new interface has appeared (most likely usb0, but maybe starting with eth). If it has, you can configure it using the netcardconf program in the DSL menu under "DSL>Setup>Net Setup", or do it manually from the command line if you're comfortable with that.

If it doesn't work, which isn't unlikely, look into the protocol that your phone uses for the ethernet over USB and check whether it is included with DSL, or if it's even possible to run  with a version 2.4 Linux kernel. It it works in other Linux distros, you can compare the results of the "lsmod" command in the terminal before and after connecting the phone. The new modules loaded will be the ones DSL would need to load to get usbnet working.

Tons of (slightly outdated) information at this webpage (http://www.linux-usb.org/usbnet/). I haven't read it all myself. On that page, this application will be a "USB device running Linux".
« Last Edit: July 23, 2015, 10:43:33 PM by CNK » Logged
CNK
Sr. Member
****
Posts: 269


View Profile
« Reply #2 on: July 23, 2015, 11:07:34 PM »

Another EDIT (new post because this forum won't let me make it):

Ahh!, just lost my second edit. OK, short version:
Look here: http://www.freebsd.org/doc/handbook/network-usb-tethering.html

Nothing but "cdce" will work in DSL. Use modprobe instead of kldload to manually load modules (should load themselves when phone connected).

Android doesn't use CDC (cdce), should be able to. Force it if you can. It uses RNDIS be default (will never work in DSL).
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Mercury design by Bloc