LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-24-2018, 07:29 PM   #1
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1
Posts: 68

Rep: Reputation: 1
connecting to iPhone doesn't work


I am trying to connect to an iPhone 6s. I found the instructions here:
https://www.dedoimedo.com/computers/...6s-ios-11.html

I'm using Slackware 14.1 and the iPhone 6s has iOS v11.4.

I installed usbmux and usbmuxd is running. The iPhone is unlocked and I typed the command to pair and mount, but when I open dolphin and try to navigate to the iPhone directory, it appears empty.

Code:
bash-4.2# idevicepair pair
ERROR: Could not pair with the device because a passcode is set. Please enter the passcode on the device and retry.
bash-4.2# idevicepair pair
SUCCESS: Paired with device 
bash-4.2# ifuse /media/iPhone
bash-4.2# ls -la /media
total 72
drwxr-xr-x 17 root root 4096 Aug 24 10:41 .
drwxr-xr-x 24 root root 4096 Aug 24 17:23 ..
lrwxrwxrwx  1 root root    3 Apr 20  2016 hd -> hd0
drwxr-xr-x  2 root root 4096 Sep 25  2006 hd0
drwxr-xr-x  2 root root 4096 Sep 25  2006 hd1
drwxrwxrwx  2 root root 4096 Aug 24 10:41 iPhone

bash-4.2# ls -la /media/iPhone
total 8
drwxrwxrwx  2 root root 4096 Aug 24 10:41 .
drwxr-xr-x 17 root root 4096 Aug 24 10:41 ..
To disconnect the iPhone I start with

Code:
bash-4.2# fusermount -u /media/iPhone/
fusermount: /media/iPhone not mounted
And it looks like the iPhone never gets mounted. Or is mounted incorrectly?

My problem seems to be with ifuse, but I'm not sure what. I've seen reference to an /etc/fuse.conf file that may need to be modified, but I don't seem to have that. Perhaps that's causing the problem. This is the sticking point for me.

Last edited by deretsigernu; 08-24-2018 at 07:39 PM. Reason: added /mnt info
 
Old 08-25-2018, 01:35 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: MID-SOUTH USA
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,527

Rep: Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778Reputation: 1778
did you just update to 11.4?

every time the people get caught up with their software to work with Iphone, iPhone updates there SW and kapoop Linux cannot hook up to iPhone again.

here is an old script I've used long long ago it might still work, I think it used ifuse
Code:
#!/bin/sh
#
# mount-iphone.sh
# This script attempts to mount or unmount the first connected ipod/iphone.
# Usage: ./mount-iphone.sh [mount | umount | echo_serial]
# It should be dash-friendly
#
# Written by Mohamed Ahmed, Dec 2010
#
# Refactored and extended by David Emerson, Feb 2012
#
# You can configure send_msg to use either a console echo, or notify-send.
# notify-send is part of the debian package, libnotify-bin
# The apple pictures in /usr/share/pixmaps are part of the gnome-desktop-data package
#
# uncomment the following if you want to see the mount command used:
# show_mount_cmd=1

# you can uncomment this line to see all the commands sh executes:
# set -x

show_msg ()
{
  # notify-send -t 4000 -u normal "mount-iphone" "$1" -i "/usr/share/pixmaps/apple-$2.png"
  echo "$1" >&2
}

get_device_ids ()
{
  # get the Apple vendor id (idVendor) from lsusb
  idVendor=$(lsusb -v 2>/dev/null | awk '/idVendor.*Apple/{print $2; exit}')
  [ -z "$idVendor" ] && { show_msg "Cannot find any Apple device" "red"; exit 1; }
  # get the device serial number (iSerial)
  iSerial=$(lsusb -v -d $idVendor: 2>/dev/null | awk '/iSerial/{print $3; exit}')
  [ -z "$iSerial" ] && { show_msg "Cannot find serial number of Apple device $idVendor" "red"; exit 1; }
}

is_mounted ()
{
  gvfs-mount -l | grep -i "mount.*$1" >/dev/null
}

mount_iphone ()
{
  [ -z $show_mount_cmd ] || echo gvfs-mount afc://$1/ >&2
  if gvfs-mount afc://$1/; then
    show_msg "mounted iphone with serial $1" "green"
  else
    show_msg "iphone mount failed" "red"
    exit 1
  fi
}

unmount_iphone ()
{
  ## now gvfs unmount the device
  [ -z $show_mount_cmd ] || echo gvfs-mount -u afc://$1/ >&2
  if gvfs-mount -u afc://$1/; then
    show_msg "unmounted iphone with serial $1" "red"
  else
    show_msg "iphone umount failed" "red"
    exit 1
  fi
}

case $1 in
  mount)
    get_device_ids
    is_mounted && { show_msg "$iSerial is already mounted" 'green'; exit; }
    mount_iphone $iSerial
    ;;
  umount|unmount)
    get_device_ids
    is_mounted || { show_msg "$iSerial is not mounted" 'red'; exit; }
    unmount_iphone $iSerial
    ;;
  echo_serial)
    get_device_ids
    echo $iSerial
    ;;
  '')
    get_device_ids
    is_mounted && show_msg "$iSerial is mounted" 'green' || show_msg "$iSerial is not mounted" 'red'
    ;;
  *)
    echo "Usage: $0 [mount | umount | echo_serial]"
    exit 1
    ;;
esac

exit 0
 
Old 08-25-2018, 09:50 PM   #3
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.2 Slackware 14.2, Slackware{32,64}-current
Posts: 886
Blog Entries: 9

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I talked about this here: https://www.linuxquestions.org/quest...re-14-2-37346/ (for iOS 10.x)

Essentially, every time iOS gets updated, you have to check on updates for 'libimobiledevice' and possibly 'libplist' and 'libusbmuxd'. I have not tried the newest git master branches yet. Often Apple screws something re: compatibility. After all, why should they care about Linux?
 
1 members found this post helpful.
Old 08-26-2018, 03:31 AM   #4
solarfields
Member
 
Registered: Feb 2006
Location: Outer Shpongolia
Distribution: Slackware
Posts: 970

Rep: Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538Reputation: 538
hi,

upgrade libimobiledevice. Get these for example from -current:
ftp://ftp.uninett.no/slackware/slack...ice.SlackBuild
ftp://ftp.uninett.no/slackware/slack...ice/slack-desc

get the latest commit:
wget https://github.com/libimobiledevice/...55501b7.tar.gz

modify the libimobiledevice.SlackBuild commenting out these lines and adding an ./autogen.sh line:

Code:
# Make sure ownerships and permissions are sane:
chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;

# Fixes mounting issues with iOS 10:
#zcat $CWD/libimobiledevice.use_tlsv1_instead_of_sslv3.diff.gz | patch -p1 --verbose || exit 1

# Fix for OpenSSL-1.1.x:
#zcat $CWD/02a0e03e24bc96bba2e5ea2438c30baf803fd137.patch.gz | patch -p1 --verbose || exit 1

./autogen.sh

CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
run the SlackBuild and upgrade with the new package that will be in /tmp. Worked for me:
https://slackalaxy.com/2018/05/07/mounting-an-iphone/
 
1 members found this post helpful.
Old 08-26-2018, 10:51 AM   #5
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1
Posts: 68

Original Poster
Rep: Reputation: 1
BW-userx,
Thank you for the script. It says
Code:
Cannot find serial number of Apple device 0x05ac
kingbeowulf and solarfields, thanks for your replies. I just came upon them and will have to read them. I will post again after I go through the steps.
 
Old 09-09-2018, 11:01 PM   #6
deretsigernu
Member
 
Registered: May 2007
Distribution: Slackware 14.1
Posts: 68

Original Poster
Rep: Reputation: 1
The machine that I was trying to set up for the phone is crapping out. I gave up trying to change the settings. The explanations supplied look like they make sense, thus I marked as solved, although I didn't actually implement the changes to be sure.
 
  


Reply

Tags
iphone, slackware


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why won't my iPhone let iconfig command work caam123123 General 5 10-20-2014 04:04 PM
Found an iPhone; will it work on my LAN with Linux machines? buccaneere General 3 12-14-2013 12:07 PM
Does Iphone work in a windows VM D.V Linux - Newbie 2 09-18-2013 11:56 PM
Keyboard doesn't work right click on mouse doesn't work ramblinrick Linux Mint 2 10-15-2010 01:10 AM
Connecting to AP, but DHCP doesn't work NeoChaosX Linux - Networking 2 02-24-2006 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration