Use the internet by USB Tethering.

Everything about X, Gnome, KDE, ... and everything running on it

Use the internet by USB Tethering.

Postby hack3rcon » 2019-12-09 06:31

Hello,
I have a Blackberry Cell phone with Android 7.1.1 and I want to use my cell phone Internet on my PC.
I plugged my cell phone and enabled the USB Tethering:
Code: Select all
$ lsusb
Bus 001 Device 027: ID 0fca:8036 Research In Motion, Ltd.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But, My PC can't detect anything:
Code: Select all
$ sudo ifconfig
enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether ac:9e:17:4e:c1:6c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 5728  bytes 464932 (454.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5728  bytes 464932 (454.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

I created a "Mobile Broadband" connection, but not worked:
https://cdn1.imggmi.com/uploads/2019/12/9/41c07a0431a4505f2d4b91f92a9b2c2b-full.png
The USB Tethering working very well on Windows OS.
Any idea to solve it?

Thank you.
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby pylkko » 2019-12-09 09:35

I have once managed to use USB-tehtered internet from a phone on Debian many years ago. Was on GNOME and IIRC it was pretty much plug in and go. It will, however, depend very much on the device, because there is a lot of heterogeneity in this on the device side. All phones that I know of require you to allow this kind of behavior from settings. Did you do this? Some phones don't do anything if the screen is locked. Was the screen unlocked when you type the above commands?

Also, I am a bit curious to why you want to do this at all? Does the PC not have a wifi antenna? Because most often people do something like this when they want to "share" the network connection form the phone to the computer. This is, however, much easier to do wirelessly with an access point than over USB.
User avatar
pylkko
 
Posts: 1622
Joined: 2014-11-06 19:02

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2019-12-09 10:16

My cell phone is "BlackBerry Aurora".
My PC not have any Wireless card.
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby Head_on_a_Stick » 2019-12-09 16:46

Are you sure that tethering is enabled in the phone? My phone will only let me enable it once the USB cable is actually plugged into the computer.

Once tethering is enabled the device should show up in the output of ip link & dmesg.
User avatar
Head_on_a_Stick
 
Posts: 11116
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Use the internet by USB Tethering.

Postby eor2004 » 2019-12-09 17:34

I have the same issue with my Debian 10 MATE pc, whenever I try to use USB internet tethering it doesn't work, but if I use Bluetooth internet tethering it does work, when I was using Gnome 3 a while ago usb tethering used to work with no issues, don't know why it doesn't work on MATE.

Update: I have discovered that if I remove the ethernet cable from my computer, then I can connect to internet using USB tethering. :?
OS: Debian 10 Buster 64-bit DE: MATE 1.20 CPU: AMD Phenom II X4 925 @ 2.8GHZ RAM: 8GB CORSAIR XMS2 PC2-6400U DDR2 (CM2X2048-6400C5C) GPU: ATI Radeon HD 3200 Mobo: Gigabyte GA-MA78GPM-DS2H HDD: Hitachi 2TB (HUA723020ALA641) 7200RPM
User avatar
eor2004
 
Posts: 216
Joined: 2013-10-01 22:49
Location: Puerto Rico

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2019-12-23 12:13

Head_on_a_Stick wrote:Are you sure that tethering is enabled in the phone? My phone will only let me enable it once the USB cable is actually plugged into the computer.

Once tethering is enabled the device should show up in the output of ip link & dmesg.
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2019-12-28 20:24

Head_on_a_Stick wrote:Are you sure that tethering is enabled in the phone? My phone will only let me enable it once the USB cable is actually plugged into the computer.

Once tethering is enabled the device should show up in the output of ip link & dmesg.

The commands output are:
Code: Select all
$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
    link/ether ac:9e:17:4e:c1:6c brd ff:ff:ff:ff:ff:ff


$ sudo dmesg
[  171.787395] usb 2-11: new high-speed USB device number 4 using xhci_hcd
[  171.936256] usb 2-11: New USB device found, idVendor=0fca, idProduct=8041, bcdDevice= 3.18
[  171.936261] usb 2-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  171.936264] usb 2-11: Product: BlackBerry
[  171.936267] usb 2-11: Manufacturer: BlackBerry
[  171.936269] usb 2-11: SerialNumber: XXXXXXXXXX
[  185.114749] usb 2-11: USB disconnect, device number 4
[  185.459379] usb 2-11: new high-speed USB device number 5 using xhci_hcd
[  185.608314] usb 2-11: New USB device found, idVendor=0fca, idProduct=8035, bcdDevice= 3.18
[  185.608318] usb 2-11: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  185.608320] usb 2-11: Product: BlackBerry
[  185.608322] usb 2-11: Manufacturer: BlackBerry
[  185.608323] usb 2-11: SerialNumber: 1163731066
[  185.809254] cdc_ncm 2-11:1.0: bind() failure
[  185.809278] usbcore: registered new interface driver cdc_ncm
[  185.820170] usbcore: registered new interface driver cdc_wdm
[  185.825046] usbcore: registered new interface driver cdc_mbim

Some files are as below:
Code: Select all
$ sudo ifconfig
enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether ac:9e:17:4e:c1:6c  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 240 (240.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 240 (240.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


$ cat /etc/resolv.conf
nameserver 8.8.8.8
nameserver 4.2.2.4


$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto enp3s0
iface enp3s0 inet dhcp

No cable connected to my NIC, but its icon show that the network is connected.
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2020-01-07 10:01

Any idea?
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby oswaldkelso » 2020-01-07 14:14

I don't use a cable because I work away a fair bit and being stuck in a hotel room with their shitty wifi means I use the usb to charge the phone and phone hotspots a lot.
Usually it's just switch on the hotspot open wicd-gtk select it enter pass word I'd set on the phone and away to go.
I never needed to use usb to connect because even though the Desktop has no wifi it can see the hotspot via my router or switch, if you don't have wifi this maybe and option.?

As I was in the process of testing iwd (thanks hoas) I thought I'd try it on Debian. But first I tried hotspots via connman-gtk
Saw the hotstop accepted the password and connected (or so it said. But I wouldn't actually connect.)

installed wicd-gtk
Saw the hotstop would not accept the password

turned off encryption on the phone tried again and it connected and worked as expected

Went and got the usb cable. Phone would not let me switch on usb-tethering. I suspect I need MTP or some such crap because I'm sure I've used it via usb-tethering before on another machines
It could be your phone company locks it down tethering many do.

Happy hunting
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
User avatar
oswaldkelso
 
Posts: 1208
Joined: 2005-07-26 23:20
Location: UK

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2020-01-08 11:12

It works with Windows OS very good.
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby pythagorasmk » 2020-01-08 15:13

enp3s0 is the name for your wired card, or the name for the usb device?
If it is the name for your wired card, then you are missing some driver for usb tethering.
I have tried usb tethering with my phone and everything is working fine. The only thing I have to do is to configure new network in networks applet (I am using KDE).
I suggest to read this: https://wiki.archlinux.org/index.php/Android_tethering
Try:
# modprobe usbnet # if not already loaded
# ip link set usb0 up && dhcpcd usb0 #replace usb0 with the name of your device
pythagorasmk
 
Posts: 83
Joined: 2015-01-18 03:40

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2020-01-10 14:44

Yes, the "enp3s0" is my wired NIC.
I did that commands, but not have any result.
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby Head_on_a_Stick » 2020-01-10 14:51

hack3rcon wrote:
Code: Select all
[  185.809254] cdc_ncm 2-11:1.0: bind() failure

Looks like the driver isn't working. Is this Debian stable?
User avatar
Head_on_a_Stick
 
Posts: 11116
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2020-01-31 16:31

Head_on_a_Stick wrote:
hack3rcon wrote:
Code: Select all
[  185.809254] cdc_ncm 2-11:1.0: bind() failure

Looks like the driver isn't working. Is this Debian stable?

It is Debian 10.1.
My Motherboard model is "ASUS B85-PLUS": https://www.asus.com/Motherboards/B85PLUS/specifications/.
How can I solve it?
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Re: Use the internet by USB Tethering.

Postby hack3rcon » 2020-02-12 10:56

Any idea?
hack3rcon
 
Posts: 335
Joined: 2015-02-16 09:54

Next

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable