summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorGravatar Paul Sladen2008-09-02 11:47:39 +0300
committerGravatar Matt Colyer2008-09-02 08:37:31 -0700
commitb61d63f43f28d2ec94f750753b1d6d4748fd944b (patch)
tree3c47416eddb02704486f3b1a53d0fc2957710985 /README
parent2b05e48cb4a90dfc94ff584124f08e431398bb1a (diff)
downloadlibimobiledevice-b61d63f43f28d2ec94f750753b1d6d4748fd944b.tar.gz
libimobiledevice-b61d63f43f28d2ec94f750753b1d6d4748fd944b.tar.bz2
Added --root option to use afc2, expand README
Diffstat (limited to 'README')
-rw-r--r--README103
1 files changed, 94 insertions, 9 deletions
diff --git a/README b/README
index ee724f8..bce0808 100644
--- a/README
+++ b/README
@@ -1,6 +1,10 @@
1INSTALLATION 1INSTALLATION
2================================================================================ 2================================================================================
3 3
4For:
5 Apple iPhone/iPod Touch 1.0/1.1/1.1.1/1.2/1.3/2.0+
6 + iPod USB cable
7
4You must have: 8You must have:
5 libgnutls-dev 9 libgnutls-dev
6 libusb-dev 10 libusb-dev
@@ -17,25 +21,106 @@ To compile run:
17 ./autogen.sh 21 ./autogen.sh
18 ./configure 22 ./configure
19 make 23 make
20 sudo make install (if you want to install it into your system directories) 24 sudo make install # (if you want to install it into your system directories)
21 libiphone-initconf (as the user you intend to user the library) 25 libiphone-initconf # (as the user you intend to user the library)
26
27On Ubuntu/Debian, you can do:
28 sudo apt-get install build-essential automake autoconf \
29 libgnutls-dev libusb-dev libfuse-dev libglib2.0-dev libxml2-dev
22 30
23USAGE 31USAGE
24================================================================================ 32================================================================================
25 33
26IMPORTANT: Before using the library you must run "libiphone-initconf". It will 34Now comes the fun bit!
27generate keys and a host id for your system. It only needs to be run once but 35
28it MUST be run. 36== Generating keys ==
37
38IMPORTANT: Before using the library you must run "libiphone-initconf"
39as your own user (not root). It will generate keys and a host id for your
40system to be able to communicate with 'lockdownd' on the iPhone.
41
42It will probably take 5-10 minutes, but thankfully only needs to be
43run _once_. It MUST be run otherwise communication will not work:
44
45 libiphone-initconf
46
47The generated keys are saved in '~/.config/libiphone/' in your home directory.
48
49== Tools ==
29 50
30There are currently 2 executables iphoneclient and ifuse, located in src/. 51There are currently two more executables 'ifuse' and 'iphoneclient',
52both located in src/.
31 53
32iphoneclient is a basic commandline interface, it just runs a few various operations. 54
55=== iFuse ===
56
57This is probably what you're after; this mounts a view of your
58iPhone/iPod Touch's filesystem over the USB interface using the native
59Apple protocol (AFC/"com.apple.afc").
33 60
34ifuse is a Fuse filesystem which allows you to mount your iPhone to a directory 61ifuse is a Fuse filesystem which allows you to mount your iPhone to a directory
35like this: 62like this:
36 63
37 ./src/ifuse mountpoint 64 ./src/ifuse <mountpoint> -s
38 65
39To unmount: 66To unmount:
40 umount mountpoint 67 umount <mountpoint>
68
69(nb: '-s' is to force single-threaded mode, as ifuse maybe unstable without it).
70
71Eg:
72 mkdir ~/iphone
73
74 ifuse ~/iphone -s
75 ls -l ~/iphone
76 ...
77 umount ~/iphone
78
79Currently ifuse (via the AFC protocol) only gives access to the
80'/var/root/Media/' chroot on the iPhone (containing music/pictures).
81
82If you have a device that has been jailedbreaked then an additional
83("com.apple.afc2") service will have been installed, without the chroot.
84On jailbroken devices only, you can do:
85
86 ifuse ~/iphone --root -s
87
88And this will mount a full view of the iPhone's filesystem.
89
90
91==== Setting up FUSE ====
92
93Note that on some systems, you may have to load the 'fuse' kernel
94module first and to ensure that you are a member of the 'fuse' group:
95
96 sudo modprobe fuse
97 sudo adduser $USER fuse
98
99You can check your membership of the 'fuse' group with:
100
101 id | grep fuse && echo yes! || echo not yet...
102
103If you have just added yourself, you will need to logout and log back
104in for the group change to become visible.
105
106
107=== iphoneclient ===
108
109'iphoneclient' is a basic commandline interface for testing, it just
110runs a few various test operations such as attempting to view/create a
111test file in the iPhone, but is mainly a developer tool.
112
113
114== Who/what/where? ==
115
116wiki:
117 http://matt.colyer.name/projects/iphone-linux/index.php?title=Main_Page
118
119code:
120 git clone http://git.matt.colyer.name/2008/libiphone/
121
122mailing list:
123 http://lists.mattcolyer.com/listinfo.cgi/iphone-linux-dev-mattcolyer.com
41 124
125updated:
126 2008-09-02