How to share a mobile connection from any smartphone to Linux
Laptops are always limited to WiFi connections; desktop computers never have integrated mobile internet. What if you need to keep your Linux computer online but don't have wireless or Ethernet?
The answer is to use tethering. With your smartphone, you can share mobile Internet with your computer.
As long as your service provider doesn't limit how you use your data, sharing an Internet connection (also known as netshare) with your Linux computer is a good option. WiFi connection sharing is an option. Here's how to use the USB tethering feature on Linux with Android and iPhone.
How to share an Android phone connection with Linux
If you have an Android device, sharing your connection is simple, thanks in part to both Linux phones and phones.
If you want to share your Android connection with Linux via a USB cable, do the following:
1. Connect the USB cable to the phone and Linux PC.
2. Android will detect the connection, when prompted to allow access, select Allow.
3. In Notifications , find the USB notification and touch it.
4. In Use USB for , select USB tethering.

In most cases, the connection will be established automatically. Check the device's IP address to confirm that it is working, using ifconfig
or ip address
. Look for the option labeled usb0.

For some distributions, you may need to choose a USB connection.
1. On a Linux system, find the network tray applet.
2. Click here to find a network option called auto usb0.
3. Select this option to connect Linux to the phone via a USB cable.
If you don't have a tethering data plan, installing custom Android ROMs can help avoid restrictions.
Readers can also refer to the article: Instructions for accessing the Internet via phones running Android for more details.
Share connection on BlackBerry device?
Depending on the age of the BlackBerry device you own, there are several options for connecting it to a Linux system. If you have a BlackBerry, it will run:
- Android (since 2015)
- BlackBerry 10 (2013 - 2018)
- Blackberry 7.0 operating system (2011 - 2013)
For BlackBerry devices running Android, refer to the section above. For BlackBerry 10 and BlackBerry OS 7.0, see the section below.
To share your phone connection via USB running BlackBerry 10, start by connecting your device to a computer. Later:
1. Open Settings> Network Connections> Internet Tethering .
2. Click Connect.
3. Select USB.
4. Enable Internet Tethering.
For phones running the older BlackBerry operating system:
1. Click Manage Connections> Network and Connections .
2. Find Mobile Hotspot Connections .
3. Set up network information.
Whichever method you use, select the usb0 network in your Linux console, if it doesn't connect automatically.
How to share iPhone connection with Linux
If you own an iPhone with tethering, you can set up a USB connection.
However, unlike Android, the iPhone does not connect automatically. Instead, you'll need libimobiledevice , described as a cross-platform software protocol library to communicate with iOS devices. Go to www.libimobiledevice.org to confirm current compatibility.
If you use Ubuntu, libimobiledevice is already installed. If not, before sharing your iPhone connection with Linux, open a terminal and enter:
sudo apt install libimobiledevice6
To connect to the Internet via iPhone:
1. Open Settings> Personal Hotspot .
2. Activate Allow Others to Join .

All you need to do now is choose the connection in Linux. Unlike Android, iPhone devices appear as new Ethernet devices, instead of USB. So look for eth0 or eth1 , but usually eth1 , because eth0 should be assigned to the Ethernet port.

Share your Linux phone connection with Linux
Several Linux mobile operating systems are available. These include a mobile version of Pure OS on Librem 5, PostmarketOS on PinePhone and UBPorts, a continuation of Ubuntu Touch.
Surprisingly, not all of these devices have reliable options for USB or wireless tethering. For specifics, check the documentation of any Linux mobile project you're using.
You should read it
- 3 Linux mobile operating systems you can install today
- Internet connection sharing - Internet Connection Sharing
- Instructions for accessing the Internet via phone running Android
- 10 things to keep in mind when switching to Linux mobile operating system
- Instructions on how to share data between Windows and Linux via LAN
- Instructions for automatic VPN connection on Linux
- Create a wireless connection between two laptops
- How to Enable Internet Tethering on iPhone
May be interested
- Instructions on how to share data between Windows and Linux via LANyou tried using a flash drive or sd card to transfer files from linux to a windows computer and found it annoying, especially when there are too many files to move and will take a long time to complete. .
- How to share Internet Ethernet connection for mobile devicesafter all, the wired ethernet network is still more popular, and you can convert that wired ethernet connection to a wi-fi connection that all your mobile devices, from smartphones, phones. photos, laptops, until game consoles ... can be used.
- How to Share your phone's Internet connection to your laptopmodern cell phone technology allows users to connect wirelessly to the internet anytime a data connection is available. you can share your phone's internet connection to your laptop via wifi, bluetooth or usb. most new phones and laptops can choose any connection method, each of which has its own advantages.
- March web browser market share: Safari and IE topaccording to the market share of mobile web browsers (browser used on tablet and smartphone) in march from net applications, ios of safari still occupies the first position, not only that this web browser also increase in market share compared to the previous month.
- How is Mobile Linux different from Desktop Linux?next year may be the 'year of the linux operating system for desktop', but mobile operating systems will not sit still waiting.
- Top 10 smartphone secret features you will want to use immediatelylet's tipsmake.com point through the top 10 smartphone secret features you will want to use immediately in the article below!
- How to share data between 2 computers via LAN?normally, when you need to share data between two computers, we often choose the option of using an intermediary tool, usb or portable hard drive. in addition, you can use the internet. however, if you do not have a usb connection and the network connection fails, what should you do? do not worry. we will show you how to share data between 2 computers via lan (network system used to connect computers in a small range) in the article content below.
- How to Share Internet Connection for PCif your carrier allows it, you can turn your iphone into a personal internet hotspot. other devices will then be able to connect to this access point's wi-fi via usb or bluetooth connection.
- How to Share Files Between Linux Computers Using NFSnearly all linux distributions come with the ability to set up a network file system (nfs) that allows the different linux computers on the network to easily share files. nfs is only suitable for networks comprised entirely of linux...
- Turn Windows 8 laptop into Wifi hotspotwindows 7 has an internet connection sharing function via ad-hoc protocol. however, on windows 8 this function has been disabled, or more accurately hidden. microsoft does not 'lock' this feature completely. to enable network connection sharing via wireless waves, follow the steps below.