iPod touch 脱獄(jailbreak)


先週書いた日記から1週間足らずで、アップルがSDK提供を発表。

さらにjailbreakも超簡単にできるようになってた。

もう躊躇する理由もないので、本日、脱獄(jailbreak)成功、そしてiPhone用アプリを導入。
写真は、Linux Zaurusから無線LAN経由で、iPod touchSSHしてみましたの図。


ログインすると、zshがデフォルトシェルになってて、ニヤりとしてしまう。
iPod touchは確かに小さなMac OS X。つーか、Darwinそのもの。

# uname -a
Darwin ???? 9.0.0d1 Darwin Kernel Version 9.0.0d1: Thu Sep 20 00:27:53 
PDT 2007; root:xnu-933.0.0.203.obj~24/RELEASE_ARM_S5L8900XRB iPod1,1 Darwin

システム領域はやはり小さい。
人によっては、/private/varに/Applicationsを退避し、
シンボリックリンクにして、要領不足を回避してるらしい。

# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/disk0s1            307200    291148     12980  96% /
devfs                       15        15         0 100% /dev
/dev/disk0s2           7622368   5954612   1667756  79% /private/var

# ls -la
total 17
drwxrwxr-t 18 root admin  680 Oct 20 11:33 .
drwxrwxr-t 18 root admin  680 Oct 20 11:33 ..
drwxrwxr-x 33 root admin 1122 Oct 20 17:46 Applications
drwxr-xr-x  2 root admin   68 Oct 20 10:45 DCIM
drwxrwxr-t 12 root admin  408 Oct 20 11:35 Library
drwxr-xr-x  4 root wheel  136 Oct 20 11:35 System
drwxr-xr-x 36 root wheel 1224 Oct 20 10:56 bin
drwxrwxr-t  2 root admin   68 Sep 19 15:42 cores
dr-xr-xr-x  3 root wheel  583 Oct 20 11:26 dev
lrwxr-xr-x  1 root admin   11 Sep 22 07:11 etc -> private/etc
lrwxr-xr-x  1 root admin   11 Sep 22 07:11 mach -> mach_kernel
drwxr-xr-x  3 root wheel  102 Sep 16 11:55 opt
drwxr-xr-x  4 root wheel  136 Oct 20 10:09 private
drwxr-xr-x 17 root wheel  578 Oct 20 10:56 sbin
drwxr-xr-x  2 root admin  170 Oct 20 10:45 temp
lrwxr-xr-x  1 root admin   15 Sep 22 07:11 tmp -> private/var/tmp
drwxr-xr-x  9 root wheel  306 Oct 20 11:39 usr
lrwxr-xr-x  1 root admin   11 Sep 22 07:11 var -> private/var

下はtopコマンドの様子。
Lights Off』というゲームを遊んだあと、
「ホーム」ボタンでSpringBoardに戻っても、プロセスは生き残ってる。
…単純なゲームなのにえらくメモリ食ってるな。アンインストール決定。
httpdApacheを入れたから。デフォルトではない。

Processes:  24 total, 1 running, 23 sleeping... 74 threads         22:15:03
Load Avg:  0.14, 0.14, 0.16     CPU usage:  8.0% user, 14.2% sys, 77.9% idle
SharedLibs: num =    0, resident =    0B code,    0B data,    0B LinkEdit
MemRegions: num =  1971, resident = 20.1M +    0B private, 19.3M shared
PhysMem:  24.0M wired, 33.8M active, 18.5M inactive, 76.4M used, 16.0M free
VM:  167P +    0B   10724(0) pageins, 0(0) pageouts

  PID COMMAND      %CPU   TIME   #TH #PRTS #MREGS RPRVT  RSHRD  RSIZE  VSIZE
 4101 top          9.7%  0:03.01   1    17    47  1.31M   528K     0B  6.44P
 3924 sh           0.0%  0:01.39   1    13    31   308K  1.25M     0B  4.28P
 3921 dropbear     0.0%  0:02.83   1     9    26   128K   556K     0B  1.50P
 3777 MobileMusi   0.0%  0:05.64   2    77   201  3.51M  9.82M   156T    25P
 3766 LightsOff    0.0%  0:04.74   2   106   202  2.68M  9.76M     0B    25P
 3761 SpringBoar   8.0%  1:56.54  10   199   423  4.86M  13.3M   117T    48P
  174 sh           0.0%  0:01.18   1    13    31   216K  1.27M     0B  3.42P
  173 dropbear     0.0%  0:02.86   1     9    26   128K   556K     0B  1.50P
   56 httpd        0.0%  0:01.00   1     8    27  64.0K  1.06M     0B   848T
   55 httpd        0.0%  0:03.50   1     8    27  60.0K  1.06M     0B  2.45P
   28 notifyd      0.0%  0:03.38   2   165    26   212K   316K     0B  1.63P
   26 mediaserve   0.0%  0:51.52  19   200   194  1.80M  2.32M  1.22P  9.39P
   25 ptpd         0.0%  0:01.96   2    47    69   464K  1.19M     0B  3.61P
   24 update       0.0%  0:11.84   1    13    21   112K   284K     0B  1.08P
   23 syslogd      0.0%  0:40.53   3    35    29   220K   340K     0B  1.70P
   22 lockdownd    0.0%  0:02.51   4    53    80   596K  1.14M  1015T  4.81P
   21 mDNSRespon   0.0%  0:09.99   2    45    49   380K   652K     0B  3.13P
   20 iapd         0.0%  0:03.47   5    93   159  1.03M  2.34M     0B  6.64P
   19 cron         0.0%  0:01.11   1    13    43   276K   432K     0B  1.94P
   18 crashrepor   0.0%  0:01.08   1    41    61   340K   548K     0B  2.13P
   17 configd      0.0%  0:16.28   5   140    80   692K  1.00M  2.78P  5.75P
   14 CommCenter   0.0%  0:01.53   4    68    65   536K   700K     0B  3.38P
   12 dropbear     0.0%  0:01.09   1    14    25  76.0K   556K     0B  1.30P
    1 launchd      0.0%  0:16.93   3    58    29   264K   360K     0B  1.84P

Rubyも動く。
GUIライブラリが欲しいなー。

# /opt/iphone/bin/ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [arm-darwin]