You are not logged in.

#1 2014-01-19 13:00:16

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 813
Website

[SOLVED] Need ipheth to install

I'm finally so tired of Ubuntu that I decided to make the swtich, but I got hung up on a problem: my only internet connection is my USB tethered iphone.

In order to install arch, I need to have the packages usbmuxd, libimobiledevice, and ifuse installed, but they aren't availabe on the livecd.

How can I get this done?

I looked into the possiblity of making my own archlinux livecd, but without an existing arch installation the only way is larch. Larch is broken since aufs was removed and I don't understand what it means that I have to "build [my] own repository with a custom kernel."

It would probably be easier to have the packages on a USB and then install them during the livecd installation, but I'm unfamiliar with pacman. I don't know if it's possible to install downloaded packages from a usb, or if these packages will require dependencies and what they might be called to find them and put them on the usb as well.

Last edited by quequotion (2014-02-15 03:37:24)

Offline

#2 2014-01-19 13:18:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,546
Website

Re: [SOLVED] Need ipheth to install

You can download the package files and put them on a usb then install them with `pacman -U /path/to/package.pkg.tar.gz'.

You will need to also download the dependencies.

The packages, and their dependencies can be found on the packages tab of this website (eg https://www.archlinux.org/packages/comm … _64/ifuse/ )

Be sure that once you get these installed in the live media to get an active connection that you "reinstall" them to your new system with the pacstrap command - this way pacman will handle all the dependencies.  In otherwords, the installation step

pacstrap base

should become

pacstrap base usbmuxd ifuse libimobiledevice

Last edited by Trilby (2014-01-19 13:21:48)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2014-01-19 19:14:42

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 813
Website

Re: [SOLVED] Need ipheth to install

Thanks for the quit reply!

I wasn't sure if I need the dependencies from "core" as well, but I figure it doesn't hurt to be thorough.

For the record, ifuse and all dependencies:

/archpac/acl-2.2.52-2-x86_64.pkg.tar.xz
/archpac/attr-2.4.47-1-x86_64.pkg.tar.xz
/archpac/bash-4.2.045-5-x86_64.pkg.tar.xz
/archpac/bzip2-1.0.6-5-x86_64.pkg.tar.xz
/archpac/cracklib-2.9.0-2-x86_64.pkg.tar.xz
/archpac/db-5.3.28-1-x86_64.pkg.tar.xz
/archpac/dbus-1.6.18-3-x86_64.pkg.tar.xz
/archpac/expat-2.1.0-3-x86_64.pkg.tar.xz
/archpac/filesystem-2013.05-2-x86_64.pkg.tar.xz
/archpac/findutils-4.4.2-5-x86_64.pkg.tar.xz
/archpac/fuse-2.9.3-2-x86_64.pkg.tar.xz
/archpac/gcc-libs-4.8.2-7-x86_64.pkg.tar.xz
/archpac/gdbm-1.11-1-x86_64.pkg.tar.xz
/archpac/glib2-2.38.2-1-x86_64.pkg.tar.xz
/archpac/glibc-2.18-12-x86_64.pkg.tar.xz
/archpac/gmp-5.1.3-2-x86_64.pkg.tar.xz
/archpac/gnutls-3.2.8-1-x86_64.pkg.tar.xz
/archpac/hwids-20130915.1-1-any.pkg.tar.xz
/archpac/iana-etc-2.30-4-any.pkg.tar.xz
/archpac/ifuse-1.1.2-5-x86_64.pkg.tar.xz
/archpac/kbd-2.0.1-1-x86_64.pkg.tar.xz
/archpac/kmod-16-1-x86_64.pkg.tar.xz
/archpac/less-458-1-x86_64.pkg.tar.xz
/archpac/libcap-2.24-1-x86_64.pkg.tar.xz
/archpac/libdbus-1.6.18-3-x86_64.pkg.tar.xz
/archpac/libffi-3.0.13-4-x86_64.pkg.tar.xz
/archpac/libgcrypt-1.6.0-1-x86_64.pkg.tar.xz
/archpac/libgpg-error-1.12-1-x86_64.pkg.tar.xz
/archpac/libgssglue-0.4-2-x86_64.pkg.tar.xz
/archpac/libimobiledevice-1.1.5-2-x86_64.pkg.tar.xz
/archpac/libplist-1.10-1-x86_64.pkg.tar.xz
/archpac/libtasn1-3.4-1-x86_64.pkg.tar.xz
/archpac/libtirpc-0.2.3-2-x86_64.pkg.tar.xz
/archpac/libusbx-1.0.17-1-x86_64.pkg.tar.xz
/archpac/libxml2-2.9.1-5-x86_64.pkg.tar.xz
/archpac/linux-api-headers-3.12.4-1-x86_64.pkg.tar.xz
/archpac/ncurses-5.9-6-x86_64.pkg.tar.xz
/archpac/nettle-2.7.1-1-x86_64.pkg.tar.xz
/archpac/openssl-1.0.1.f-1-x86_64.pkg.tar.xz
/archpac/p11-kit-0.20.1-1-x86_64.pkg.tar.xz
/archpac/pam-1.1.8-2-x86_64.pkg.tar.xz
/archpac/pambase-20130928-1-any.pkg.tar.xz
/archpac/pcre-8.34-2-x86_64.pkg.tar.xz
/archpac/perl-5.18.2-2-x86_64.pkg.tar.xz
/archpac/python2-2.7.6-1-x86_64.pkg.tar.xz
/archpac/readline-6.2.004-2-x86_64.pkg.tar.xz
/archpac/shadow-4.1.5.1-7-x86_64.pkg.tar.xz
/archpac/sqlite-3.8.2-1-x86_64.pkg.tar.xz
/archpac/systemd-208-10-x86_64.pkg.tar.xz
/archpac/texinfo-5.2-2-x86_64.pkg.tar.xz
/archpac/tzdata-2013i-1-any.pkg.tar.xz
/archpac/usbmuxd-1.0.8-2-x86_64.pkg.tar.xz
/archpac/util-linux-2.24-2-x86_64.pkg.tar.xz
/archpac/xz-5.0.5-2-x86_64.pkg.tar.xz
/archpac/zlib-1.2.8-3-x86_64.pkg.tar.xz

Ok, going in; see you on the other side!

Offline

#4 2014-01-21 23:41:13

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 813
Website

Re: [SOLVED] Need ipheth to install

iPheth worked just long enough to get the base system installed, then suddenly (and permanently?) failed.

I'm no longer able to tether my phone. Neither in the installed system nor in the live environment. It doesn't make sense; the exact steps that worked in the live environment before are no longer working; all necessary dependencies are installed in the new installation.

I can connect to the iphone by USB and mout its filesystem with ifuse. ipheth makes an interface, but it's always in state 'down' or 'UNKNOWN'. Once or twice out of a hundred or so attempts (stayed up all night doing the same thing over and over) it was 'up' but still unusable. I don't get it; this absolutely should not be happening.

I can only imagine something is broken on the iphone's end, which is nigh-unserviceable (reboot being the only readily available tool, which has produced no results after numerous attempts).

Offline

#5 2014-01-21 23:46:19

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 813
Website

Re: [SOLVED] Need ipheth to install

The only difference in the process has been not switching back and forth between Arch's live environment and my former Ubuntu installation.

Could Ubuntu have been doing something to set the iphone in a state where tethering was usable that Arch is not?

Offline

#6 2014-01-21 23:55:06

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 813
Website

Re: [SOLVED] Need ipheth to install

I've tried 'imobiledevicepair pair' but it had no effect. What's the difference between this utility and ipeth-pair?

Offline

#7 2014-01-23 04:42:56

quequotion
Member
From: Oita, Japan
Registered: 2013-07-29
Posts: 813
Website

Re: [SOLVED] Need ipheth to install

Some progress:

Tethering works in Ubuntu 13.10 livecd, which is using network-manager (and numerous dependencies) to automatically configure the connection. I've been looking into exactly what things it's doing automatically.

I was able to get an ip adress:

dhcpcd -n enp0s29u1u1c4i2

After that, DNS resolution is not happening. I can ping ip addresses, but not hostnames.
Ubuntu pulls a DNS configuration from the iPhone, but I have no idea how. I imagine this should be done with resolvconf, but in Ubuntu network-manager overrides resolvconf and I've never clearly understood how this works, which has given me headaches aplenty in the past.

For now, I'm able to get online by adding nameservers to /etc/resolv.conf manually
_______________
 ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄
I'd like to automate the ipheth connection process in the future without having to install too many extras if it can be avoided.

1. (Manually) Connect iphone to USB
2. Mount the iPhone's filesystem: ifuse /path/to/automount/iphone
3. Configure iPheth network: dhcpcd -n * (+ resolvconf?)
4. (Manually) Disconnect iphone from USB
5. Deconfigure iPheth network (if necessary): dhcpcd -k * (+ resolvconf?)
6. Unmount the iPhone's filesystem: fusermount -u /path/to/automount/iphone

Any ideas?

*enp0s29u1u1c4i2 is the ipheth interface (USB); this name is not static and tends to change each time the phone is reconnected.

Offline

#8 2014-01-23 13:46:29

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,546
Website

Re: [SOLVED] Need ipheth to install

Sorry I haven't replied more - all this beyond getting the packages installed is outside my experience.

This last post, however, I might be able to have input on.  First, the changing interface name can most likely be avoided by overriding the 'predictable' interface naming scheme of systemd (see the "I don't like this" heading here).  I have not done this with tethered devices, but it *should* make the iPhone's interface be labeled eth1 or some such, and it *should* be consistent (in theory).

As for automating those steps - as long as you have the commands for each one, you can throw them together in a simple bash script.  Perhaps you could read up on systemd service files if you want this to automatically start on boot and/or be managed as a service.

I had a script which I turned into a tiny C program to do all my wireless connecting without any of the major network management packages - and it works perfectly (for me).

Last edited by Trilby (2014-01-23 13:47:12)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB