rawplug


014. connecting to iphone on artix

at `2026-10-18T16:43:57+09:00`

*

my iphone's battery swelled.

i've been taking it into bathroom while i take a shower, and my iphone is very old, so i think that's the cause.

so i have to move to a other phone.

before that, i should backup photos from (almost) dead phone.

i've installed libimobiledevice and ifuse, but my iphone didn't showed "Trust this computer" prompt.

after messing around for a while, i found out that i shoud enable usbmuxd service.

*

if you don't get "Trust this computer" prompt, you should start usbmuxd daemon.

/etc/init.d/usbmuxd:

```sh
#!/sbin/openrc-run

description="Socket daemon for the usbmux protocol used by Apple devices"
command="/usr/sbin/usbmuxd"
command_args="-U usbmux -f -z"
supervisor=supervise-daemon

depend() {
	need udev
}

start_pre() {
	if ! getent passwd usbmux >/dev/null; then
		eerror "User 'usbmux' does not exist. Please create it first."
		return 1
	fi
} 
```
```sh
$ su
$ chmod +x /etc/init.d/usbmuxd
$ rc-update add usbmuxd default
$ rc-service usbmuxd start
```

and then,

```sh
$ idevicepair pair
$ idevicepair validate
$ ifuse /mnt/iphone
$ rsync -rvaP /mnt/iphone/DCIM ~/Pictures/iphone/
```