Accessing Iphone 7s photos on Ubuntu 16.04

Accessing Iphone 7s photos on Ubuntu 16.04

. 2 min read

I have tons of photos on my iPhone 7s and was looking to download them onto my MacBook Pro. I swapped the harddisk in my Macbook Pro (2011 edition!) with an SSD and was stuck with the perennial low disk space problem on an SSD!

The only solution I could think of was to access photos on my Ubuntu desktop with lots of space.

I plugged in the iPhone into the desktop running Ubuntu 16.04. "Trusted" the desktop and was able to see that the iPhone was identified in the File Explorer.

However, despite many tries the photos were simply not getting imported in to my Ubuntu machine.

I looked around for various solutions but most them did not work. This post and this gist were the only posts that finally worked for me!

The steps I ran are as follows:

bash

sudo apt-get install automake libtool pkg-config libplist-dev libplist++-dev python-dev libssl-dev libusb-1.0-0-dev libfuse-dev

sudo apt-get install ideviceinstaller python-imobiledevice libimobiledevice-utils python-plist usbmuxd

sudo apt-get install libtool autoconf automake

sudo apt-get install libxml2-dev python-dev

mkdir -p ~/usr/src

cd ~/usr/src

for x in libplist libusbmuxd usbmuxd libimobiledevice ifuse; do git clone https://github.com/libimobiledevice/${x}.git;done

# Build libplist

cd ~/usr/src/libplist
./autogen.sh --prefix="$HOME/usr"
make && sudo make install

# Build libusbmuxd

sudo apt-get remove usbmuxd

cd ~/usr/src/libusbmuxd
./autogen.sh --prefix="$HOME/usr"
make && sudo make install

# Build libimobiledevice

sudo apt-get install libssl-dev

cd ~/usr/src/libimobiledevice
./autogen.sh --prefix="$HOME/usr"
make && sudo make install

# Build usbmuxd

sudo apt-get install libssl-dev

cd ~/usr/src/usbmuxd
./autogen.sh --prefix="$HOME/usr"
make && sudo make install

# Build ifuse

sudo apt-get install libfuse-dev


cd ~/usr/src/ifuse
./autogen.sh --prefix="$HOME/usr"
make && sudo make install

Connect iPhone

Run usbmuxd

Plug in the iPhone

Ensure the iPhone is recognized by running dmesg | grep ipheth

Mount iPhone

sudo mkdir /media/iPhone
sudo chmod 777 /media/iPhone

Edit your ifuse configuration

sudo gedit /etc/fuse.conf

Add these two line under the #Allow non-root...

op$
user_allow_other

Pair iPhone

# pair iphone
idevicepair pair
# I had to keep the phone unlocked BEFORE running this command!

#mount iphone
ifuse /media/iPhone

That's it! I was able to mount iPhone as file system and download photos from /media/iPhone/DCIM!!!

Finally, make sure to unmount the iPhone

Unmount iPhone

# unmount
fusermount -u /media/iPhone/

# unpair
idevicepair unpair


Tags

AWS Analytics Antifragile Apache Spark Apple Apps Arbitrage Automation Awesome BBMP Bangalore Black Swan Bonds Boonex Bootstrap Brokerage Charges CFPB CMS CSS Calypso Camelot Capital Markets Charts Chirp Choropleth Chrome Code Igniter Collections Containerization Converters Cycling DalalBeat Data Analytics Data Journalism Data Mining Data Munging Data Privacy Data Science Databases Debt Design Design Stock DesignStock Diet Django Docker Document Processing Dropbox Electron Electronics Entertainment Entrepreneurship Exercise FFMPEG Facebook Finance Fire TV Stick Fitness Forerunner From-The-News Fun Futures Gaana Garmin General Geocoding Getting Started Ghost Google APIs GraphicsMagick HHVM HTTPS Hackathon Hacks Hardware Health House Keeping Housing IBM BlueMix IBrokers IPinfo Ideas Image Conversion Image Processing Infographics Interactive Brokers Internet Investing IoT Legal Lets Encrypt Mac Machine Learning Mailbox app Mapbox Markdown Marketing Meteor Mockups MongoDB Mortgages Movies Music MyPad MySQL Nativefier Nature Netflix Newsletters Nginx Node.js Notes OCR OSX Open Source OpenCPU Options PDF PHP Pebble Peloton Personal Photography Picture Platforms Plex Portable Apps Productivity Property Tax PyroCMS Quantitative Finance R-Project Random Raspberry Pi Research Resources Reticulate Robot S3 SQLite STT Scraping Security Server Shell Shiny Side Project Sikuli Speech Recognition Spider Pro Spinning Spotify Startup Resources Startups Strategy Sublime Text System Monitoring Tax Terminal Tips To Do Tools Torrent Trading Trends Troubleshooting USElection2016 Ubuntu Unix Valuations Video Conversion Visualization Wagtail Wearables Weekend Fun WhatsApp Wordpress anaconda annie bash catalina cv2 daily coding dailycoding data.table debugging devtools downloader e-Signatures ggplot git go google maps hat-tip iOS iPad iPhone iTunes javascript jupyter logging macos numpy opencv optionality plotly python rstats videos youtube