Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Use the internet by USB Tethering.

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Use the internet by USB Tethering.

#1 Post by hack3rcon »

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 ... b-full.png
The USB Tethering working very well on Windows OS.
Any idea to solve it?

Thank you.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Use the internet by USB Tethering.

#2 Post by pylkko »

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.

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#3 Post by hack3rcon »

My cell phone is "BlackBerry Aurora".
My PC not have any Wireless card.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Use the internet by USB Tethering.

#4 Post by Head_on_a_Stick »

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.
deadbang

User avatar
eor2004
Posts: 251
Joined: 2013-10-01 22:49
Location: Puerto Rico
Has thanked: 4 times
Been thanked: 5 times

Re: Use the internet by USB Tethering.

#5 Post by eor2004 »

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. :?
Debian 12 Gnome on a MSI H61M-P25 (B3) PC & on a Dell Latitude E6410 & HP EliteBook 8540p Laptops.
LMDE 6 on a Panasonic ToughBook CF-C1 Laptop.
Bodhi Linux 7 on a HP Compaq DC5750 Small Form Factor PC.
Windows 11 on a Intel DH55TC PC.

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#6 Post by hack3rcon »

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: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#7 Post by hack3rcon »

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: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#8 Post by hack3rcon »

Any idea?

User avatar
oswaldkelso
df -h | grep > 20TiB
df -h | grep > 20TiB
Posts: 1490
Joined: 2005-07-26 23:20
Location: UK
Has thanked: 1 time
Been thanked: 58 times

Re: Use the internet by USB Tethering.

#9 Post by oswaldkelso »

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
Free Software Matters
Ash init durbatulûk, ash init gimbatul,
Ash init thrakatulûk agh burzum-ishi krimpatul.
My oldest used PC: 1999 imac 333Mhz 256MB PPC abandoned by Debian

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#10 Post by hack3rcon »

It works with Windows OS very good.

pythagorasmk
Posts: 148
Joined: 2015-01-18 03:40
Been thanked: 2 times

Re: Use the internet by USB Tethering.

#11 Post by pythagorasmk »

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

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#12 Post by hack3rcon »

Yes, the "enp3s0" is my wired NIC.
I did that commands, but not have any result.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Use the internet by USB Tethering.

#13 Post by Head_on_a_Stick »

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?
deadbang

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#14 Post by hack3rcon »

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/B85PL ... fications/.
How can I solve it?

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#15 Post by hack3rcon »

Any idea?

User avatar
eor2004
Posts: 251
Joined: 2013-10-01 22:49
Location: Puerto Rico
Has thanked: 4 times
Been thanked: 5 times

Re: Use the internet by USB Tethering.

#16 Post by eor2004 »

hack3rcon wrote:Any idea?
Hi, I don't know if this will help you but you should take a look at this video: https://www.youtube.com/watch?v=WeKcWTQc7mY
Debian 12 Gnome on a MSI H61M-P25 (B3) PC & on a Dell Latitude E6410 & HP EliteBook 8540p Laptops.
LMDE 6 on a Panasonic ToughBook CF-C1 Laptop.
Bodhi Linux 7 on a HP Compaq DC5750 Small Form Factor PC.
Windows 11 on a Intel DH55TC PC.

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#17 Post by hack3rcon »

Why ASUS not provide any driver?

hack3rcon
Posts: 746
Joined: 2015-02-16 09:54
Has thanked: 48 times

Re: Use the internet by USB Tethering.

#18 Post by hack3rcon »

This problem couldn't solve?

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Use the internet by USB Tethering.

#19 Post by cuckooflew »

This problem couldn't solve , what ?
hack3rcon wrote:Why ASUS not provide any driver?
Maybe because there is no car, ?
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

Post Reply