How do I access iOS camera pictures on Ubuntu?

The libimobiledevice shipped with 17.04 is actually compatible with the latest iOS. When you connect a device, two virtual devices show up. However, the one with the documents works but the one for the camera just shows an empty folder.

There is no obvious way to access the camera pictures on the iOS device.

How do I access them? I don't want to compile libimobiledevice from source.


Solution 1:

Ubuntu 18.04 and later

Tested on Ubuntu 21.10 and iOS 14.7

This version of Ubuntu has the latest libimobiledevice (at the time of release) so it supports iOS 11.4. There is a propblem with the Gnome integration, though. It shows the Documents folder (app folders). In addition to the tip below by @diego, here's a simple way to get to the pictures folder (this works if the iOS Documents show up for you but not the pictures):

  • Open the iDevices Documents folder in Nautilus.
  • Press CTRL+L to get the real address which will look like afc://YOURSERIAL:3/
  • Remove trailing colon and number and press ENTER (i.e. it should just read afc://YOURSERIAL)

You should now see your iDevices system folders, including DCIM. If you need to access these folders from the command line, you can find them in $XDG_RUNTIME_DIR/gvfs (this this answer for a more detailed explanation).

Historical workaround

As a workaround, you can mount your iOS device with ifuse.

sudo apt install ifuse

Now connect your device and make sure it is paired with your computer.

idevicepair validate

If you get a SUCCESS message, you are good, if not run idevicepair pair. Now you can use ifuse to mount your iOS images folder:

mkdir ~/pics && ifuse ~/pics

The images are now available in your $HOME folder under pics. Ready to be synced with Shotwell. To unmount the folder, use fusermount:

fusermount -u ~/pics && rmdir ~/pics

Note: in this example I create a pics folder and remove it afterwards. If you already have a folder named like this, choose a different name.

Solution 2:

If you see the serial number of your iPhone as a result of

dmesg|grep SerialNumber:

then you can use the hotkey Ctrl-L in Files and point it to

afc://YOURSERIALNUMBER/DCIM

where the iPhone photos reside.

I did not have to create or mount any extra folders.

Solution 3:

On Debian, I had to install the gvfs-backends package which contains gvfs-afc, the backend for iPhone/iPod:

apt install gvfs-backends

Then open a socket for your iPhone:

# /usr/sbin/usbmuxd -u -v -f -U your_user_name

Then as said by Diego and mniess, get your iphone serial number:

dmesg|grep SerialNumber:

then open thunar and go to:

afc://41879faab42214e1026672589a3cb5dfa6aab7a3/PhotoData/CPLAssets/

replacing 41879faab42214e1026672589a3cb5dfa6aab7a3 by yours

Solution 4:

These steps from https://bugs.kde.org/show_bug.cgi?id=424727#c7 worked for me to make Ubuntu see the photos on an iPhone:

On the iPhone:

  1. Turn off Wi-Fi.
  2. Turn off Bluetooth.
  3. Turn on Personal Hotspot.
  4. After all of the above, connect the iPhone to the Ubuntu machine with a USB cable.

NOTES:

  • When you are asked how Personal Hotspot should connect, choose "USB Only".
  • When you are asked whether to trust the computer, choose "Trust".