- Getting iPhone Internet Tethering Working in Linux
- Related Posts:
- Linux Mint Forums
- iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- Re: iPhone tether to USB in Linux Mint
- How can I add a Tethered iPhone connection in Linux (Ubuntu and Raspberry Pi OS)?
- Prerequisites
- Tethering
- Related Articles
- Categories
Getting iPhone Internet Tethering Working in Linux
I’ve owned couple of mobile phones now, all in increasing number of features. But the one thing that remained common amongst all of them, was the ability to use a tethered Internet connection in both Windows and Linux. Until I got the iPhone, that is. With the iPhone, I could no longer use the iPhone as a modem in Linux. Not anymore.
I was recently researching about claims that Ubuntu could sync with the iPhone, even the non-jailbroken ones. I was a little skeptical about this. What I found was libimobiledevice, and the iPhone Ethernet driver for Linux. I’ll write on libimobiledevice at a later day.
Let’s have a look at the USB Ethernet driver: The iPhone USB Ethernet driver was written by Diego Giagio, and is a kernel driver which adds support for iPhone tethering through USB cables. Like libimobiledevice, the driver doesn’t require you to jailbreak your iPhone, so bonus marks here.
Let’s start on how we can achieve this. This post is written from a Ubuntu/Debian system perspective, if you’re using some other distribution, the steps should remain same, with the exception of getting the packages via your favorite package manager.
First: Get the source from Diego’s git repository. If you don’t have git installed, open the terminal and type:
sudo apt-get install git-core
Once git is installed, get the source for the drivers
git clone git://github.com/dgiagio/ipheth.git
The output should be something like
[email protected]:~$ git clone git://github.com/dgiagio/ipheth.git
Initialized empty Git repository in /home/shaman/ipheth/.git/
remote: Counting objects: 10, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 10 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (10/10), 8.11 KiB, done.
[email protected]:~$
Now, compile the pairing program.
You should get an output like:
[email protected]:~/ipheth/ipheth-pair$ make
gcc -Wall -O2 ipheth-pair.c -o ipheth-pair -liphone
You should get an output like:
[email protected]:~/ipheth/ipheth-pair$ sudo make install
install -m 0755 ipheth-pair /lib/udev/
install -m 0644 90-iphone-tether.rules /etc/udev/rules.d
/sbin/udevadm control –reload-rules
[email protected]:~/ipheth/ipheth-pair$
Compile the Kernel driver:
You should get an output like:
[email protected]:~$ cd ipheth/ipheth-driver
[email protected]:~/ipheth/ipheth-driver$ make
make -C /lib/modules/2.6.28-15-generic/build M=/home/sathya/ipheth/ipheth-driver modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic’
CC [M] /home/sathya/ipheth/ipheth-driver/ipheth.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/sathya/ipheth/ipheth-driver/ipheth.mod.o
LD [M] /home/sathya/ipheth/ipheth-driver/ipheth.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic’
[email protected]:~/ipheth/ipheth-driver$
The kernel module is ready. Now load the module.
We’re all set to try the new driver out. Now connect the iPhone. The iPhone should get detected, as shown in the picture.
To confirm that the USB Ethernet driver is in use, open the terminal and type
You should get an output like:
[email protected]:~/ipheth/ipheth-driver$ dmesg | grep iPhone
[22871.808469] ipheth 2-2:4.2: Apple iPhone USB Ethernet device attached
Yay! That means the USB Ethernet driver is ready. Lets switch on Tethering on the iPhone.
Lets see what happens. Prior to installing the driver, I would get no notification and nothing would happen. Not now.
To confirm that we have indeed connected using iPhone let’s have a look at Network Manager connections:
And there you go, iPhone tethering on Linux!
Notes:
1: You need to have tethering option enabled with your service provide to use this tip. From what I know, tethering is not officially allowed under AT&T’s plan, so I don’t think this method will work.
2: I tested this on my iPhone 3G running on iPhone OS 3.1.2. Although mine is a jailbroken iPhone, the author mentions that jailbreaking is not required.
Related Posts:
Linux Mint Forums
Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
iPhone tether to USB in Linux Mint
Post by eiger3970 » Fri Feb 21, 2020 8:40 am
Hi, I’m trying to connect/tether my iPhone’s hotspot to Linux Mint’s USB port.
I followed this https://www.howtogeek.com/68999/how-to- . -linux-pc/
Installed ipheth-utils > rebooted > turned on iPhone hotspot > connected USB cable from iPhone to Linux Mint > no internet?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Re: iPhone tether to USB in Linux Mint
Post by HAWR » Fri Feb 21, 2020 6:57 pm
I don’t know whether I understand you right, but for Iphone USB Tethering I only know this without extra app installation:
1. connect your phone to your computer via USB (your phone charger hopefully has a usable, detachable USB cable)
2. go to Settings > Personal Hotspot > Activate in your phone
3. activate USB only
Re: iPhone tether to USB in Linux Mint
Post by eiger3970 » Sun Feb 23, 2020 1:00 am
iPhone to USB to Mac > connects with no internet:
Ethernet
Connected
Configure IPv4: Using DHCP
IP Address: 192.168.1.20
Subnet Mask: 255.255.255.0
Router: 192.168.1.170
DNS Server: 8.8.8.8, 8.8.4.4
iPhone USB
Connected
iPhone USB is currently active and has the IP address 172.20.10.6.
iPhone to USB to Linux Mint > no connection option at all.
I turn on iPhone and Linux Mint wifi and Linux Mint has internet from the iphone.
However, I need internet from the USB, not the wifi.
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Re: iPhone tether to USB in Linux Mint
Post by Minux1 » Sun Feb 23, 2020 5:01 am
It’s no problem USB tethering an iPhone to a Windows computer with iTunes installed as the required USB driver is in iTunes.
I do it all the time.
Don’t think there is an iTunes for Linux? . at least not one that I’ve heard of.
Doubt if Apple would provide a separate Linux driver for USB iPhone tethering.
I use wifi (iPhones “Personal Hotspot”) to connect my iPhone to Linux computers for Internet access purposes.
Re: iPhone tether to USB in Linux Mint
Post by eiger3970 » Mon Dec 07, 2020 5:43 am
USB tether used to work nicely, however the latest ios update seem to have caused problems.
iPhone Wi-Fi HotSpot is intermittent.
USB HotSpot says Wired Connection connected, but no Internet?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Re: iPhone tether to USB in Linux Mint
Post by eiger3970 » Tue Dec 15, 2020 5:34 am
Same issue.
USB tether no longer works on my computer with my phone or with another person’s phone on their computer.
I notice the Wi-Fi tether is intermittent especially around 1800-2100, when I guess lots of people come home.
Perhaps the phones now kick people of tethering when it’s busy?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Re: iPhone tether to USB in Linux Mint
Post by eiger3970 » Tue Jan 19, 2021 2:12 am
Wiped Mint 19. Installed Mint 20.1.
Network icon shows a clear wired connection to the mobile.
However no Internet. I’m still having to use the wireless mobile hotspot to Mint’s Wi-Fi NIC, which is patchy.
Any suggestions please?
Machine specs:
Disk space: 184.8 GB
Graphics: GeForce GT 710/PCIe/SSE2
Kernel Linux 5.15.0-76-generic x86_64
Linux Mint 21.1 Vera 64-bit.
MATE 1.26.0
Memory: 15.5 GiB
Processor: Intel(R) Core(TM) i3-10105F CPU @ 3.7GHz x 8
Re: iPhone tether to USB in Linux Mint
Post by Minux1 » Tue Sep 20, 2022 9:07 am
last ditch option: I’m using Xubunti 22.04 on a Thinkpad X201 laptop and I can USB tether my iPhone SE2 to it with no problem and «recognition» and data traffic flow is instantaneous as soon as I connect the USB bus . no such luck with other distros . when I’m tethered an iPhone shaped icon appears on the Xubuntu desktop and when opened it shows the contents of the iPhones internal memory . lsusb on terminal shows that a wired USB connection (not WIFI) exists between the X201 and the iPhone SE2
- Important Notices
- ↳ Rules & Notices
- ↳ Releases & Announcements
- ↳ Main Edition Support
- ↳ Beginner Questions
- ↳ Installation & Boot
- ↳ Software & Applications
- ↳ Hardware Support
- ↳ Graphics Cards & Monitors
- ↳ Printers & Scanners
- ↳ Storage
- ↳ Sound
- ↳ Networking
- ↳ Virtual Machines
- ↳ Desktop & Window Managers
- ↳ Cinnamon
- ↳ MATE
- ↳ Xfce
- ↳ Other topics
- ↳ Non-technical Questions
- ↳ Tutorials
- Debian Edition Support
- ↳ LMDE Forums
- ↳ Beginner Questions
- ↳ Installation & Boot
- ↳ Software & Applications
- ↳ Hardware Support
- ↳ Networking
- ↳ Tutorials
- ↳ Other Topics & Open Discussion
- ↳ LMDE Archive
- Interests
- ↳ Gaming
- ↳ Scripts & Bash
- ↳ Programming & Development
- Customization
- ↳ Themes, Icons & Wallpaper
- ↳ Compiz, Conky, Docks & Widgets
- ↳ Screenshots
- ↳ Your Artwork
- Chat
- ↳ Introduce Yourself
- ↳ Chat about Linux Mint
- ↳ Chat about Linux
- ↳ Open Chat
- ↳ Suggestions & Feedback
- International
- ↳ Translations
- ↳ Deutsch — German
- ↳ Español — Spanish
- ↳ Français — French
- ↳ Italiano — Italian
- ↳ Nederlands — Dutch
- ↳ Português — Portuguese
- ↳ Русский — Russian
- ↳ Suomi — Finnish
- ↳ Other Languages
- ↳ Čeština-Slovenčina — Czech-Slovak
- ↳ Magyar — Hungarian
- ↳ 日本語 — Japanese
- ↳ Polski — Polish
- ↳ Svenska — Swedish
- ↳ Українська — Ukrainian
Powered by phpBB® Forum Software © phpBB Limited
How can I add a Tethered iPhone connection in Linux (Ubuntu and Raspberry Pi OS)?
Speedify can use USB tethered iPhones to add a cellular internet connection to your Ubuntu and Raspberry Pi OS device. To use this, your iPhone’s cellular plan must support hotspots/tethering.
Note: Since iOS 14, USB tethering isn’t working reliably with Linux. The only workaround we can suggest at the moment is using the iPhones Hotspot function and connecting over Wi-Fi.
Prerequisites
On Linux, you may need to install additional packages to support tethering iPhones. The exact packages can vary between distributions and versions.
For Ubuntu, the ipheth-utils package is needed for tethering iPhones («sudo apt install ipheth-utils»)
For Raspberry Pi OS, the usbmuxd package adds support for tethering iPhones («sudo apt install usbmuxd»)
If you are using another distribution, try the packages mentioned above if they are available. Otherwise, search online for the specific package needed for your distribution.
Tethering
- Plug the iPhone to the computer via USB
- On the iPhone go to Settings > Cellular > Set Up Personal Hotspot, and turn on USB Tethering.
- In Speedify, within a few seconds, you will see a new connection appear representing the tethered phone.
Once it appears, you can adjust the Connection Settings, such as Priority, to control how Speedify uses the adapter.
Did you know — you can combine multiple Internet connections at once on your device instead of just switching between them? You get more reliable Internet connectivity — learn how to do that with Speedify.
Last updated on February 6, 2023