天上天下唯我独尊!!(FreeBSD) - iPhoneとFreeBSDの連系を考える(番外編)
結局、FreeBSDを使ってiPhoneと同期するにはiPHone側をJBreakしなければダメと言うことがこれまでの調査で分かりました。
僕はJBreakしたくないので、FreeBSDでVirtualBoxを使ってUbuntu-11.10でiPhone4Sを同期することを考えてみました。

まずは、もう1度FreeBSDで挑戦!

なんか動作がおかしんですよ^^;
ifuseを下記のとおり実行したんですが、いつもだったら、以下のようにエラーになるんです。

dreamcraft2# ifuse /media/iphone
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device


ところが、昨日試したらエラーが出ない!!
しかも、dfコマンドで確認するとマウント出来ている。
えー?何ででしょう?

ifuse /media/iphone
dev/fuse0 14967016 12094844 2872172 81% /media/iphone

で、cdして中身を見るとちゃんとフォルダまでは見れます。
ファイルは見れませんでした。

dreamcraft2# cd /media/iphone
dreamcraft2# ll
total 0
drwxr-xr-x 2 root wheel 68 10月 12 14:01 ApplicationArchives
drwxr-xr-x 3 root wheel 136 10月 17 22:11 Books
drwxr-xr-x 4 root wheel 136 3月 30 2011 DCIM
drwxr-xr-x 2 root wheel 170 1月 24 00:36 Downloads
drwxr-xr-x 6 root wheel 340 1月 24 22:26 PhotoData
drwxr-xr-x 3 root wheel 136 10月 17 22:09 Photos
drwxr-xr-x 3 root wheel 952 10月 18 23:57 Podcasts
drwxr-xr-x 2 root wheel 68 10月 16 17:00 PublicStaging
drwxr-xr-x 2 root wheel 68 4月 15 2011 Purchases
drwxr-xr-x 2 root wheel 68 3月 30 2011 Recordings
drwxr-xr-x 2 root wheel 68 10月 17 18:28 Safari drwxr-xr-x 6 root wheel 204 4月 24 2011 iTunes_Control


試しにもう一度。
dreamcraft2# usbmuxd -U root -f &
[1] 6760
dreamcraft2# [20:26:37.614][3] usbmuxd v1.0.7 starting up
[20:26:37.616][3] Connecting to new device on location 0x70002 as ID 1
[20:26:37.616][3] Initialization complete
[20:26:37.617][3] Connected to v1.0 device 1 on location 0x70002 with serial number xxx73xxxx34xxxx47xxxx3e3xxxx47xxxxddxxxx

ugen7.2: at usbus7, cfg=3 md=HOST spd=HIGH (480Mbps) pwr=ON


dreamcraft2# ifuse /media/iphone
Failed to connect to lockdownd service on the device.
Try again. If it still fails try rebooting your device.


やっぱりダメ。
FreeBSD-8.2-Release-p3を使っているんですが、フォーラムとか見るとJB(Jail Break)が必要な事が書かれています。困った。JBはするつもりないので・・・。

ただ、仮想環境のUbuntu-11.10を使ってみると、これが何故か出来てしまいます。
JB無しでできるんですよね。不思議???
どうしたもんでしょうね。

まぁ、仮想で使えるから良しとしますか。







こんな感じでVirtualBoxでUbuntuを起動し、UbuntuでiPhone4Sの同期を考えました。