How use internet sharing from a cell phone using USB connection?

Hello. Thanks for reading my topic.
Here is Lubuntu 24.04.3.
I see is possible internet sharing from a cell phone using USB connection.
Which settings need use or change to use it ?
Have a nice week.

It is normally a plug in and then enable USB tethering on the phone and it works. The only issues I have seen is the use of a charge only USB cable or the cell provider has blocked internet sharing from the phone

2 Likes

You asked a similar question here

The link above refers to Gnome.
The procedure is identical for Lubuntu - you should be automatically connected (check via the built-in Network Manager)

1 Like

You may also want to mark the connection via your phone as “metered”:
https://unix.stackexchange.com/questions/364927/networkmanager-set-current-connection-of-device-as-metered

That way unattended-upgrades won’t use the connection for background updates, which can get expensive, depending on your mobile data plan.


Since I am not quite sure, if that’s actually the default setting, you may need to explicitly set it:

sudo tee -a /etc/apt/apt.conf.d/50unattended-upgrades-local >/dev/null <<EOF
// Download and install upgrades only on non-metered connection
// (i.e. skip or gracefully stop updates on a metered connection)
Unattended-Upgrade::Skip-Updates-On-Metered-Connections "true";
EOF
sudo systemctl restart unattended-upgrades

(you can copy the whole command sequence by clicking the clipboard icon in the top-right corner of the code block and paste it into a terminal by pressing CtrlShiftV and then Enter.)

That puts a configuration override in place and restarts the unattended-upgrade service.

2 Likes

Thanks for all replies.

I will try.

Have a nice week.