Notes.
MTR
For "stumpy":
iPhone:~ root# ./mtr --report www.google.com
HOST: iPhone Loss% Snt Last Avg Best Wrst StDev
1. 192.168.1.2 0.0% 10 2.0 9.6 1.9 72.4 22.1
[SNIP]
14. 12.88.155.14 66.7% 9 24.4 63.0 20.7 143.8 70.0
15. 216.239.48.110 87.5% 8 23.7 23.7 23.7 23.7 0.0
16. 66.249.95.149 25.0% 8 38.0 37.0 35.1 39.8 1.7
17. ??? 100.0 8 0.0 0.0 0.0 0.0 0.0
18. 209.85.253.161 14.3% 7 46.7 44.4 36.9 50.6 5.3
19. 74.125.47.104 85.7% 7 36.8 36.8 36.8 36.8 0.0
SVN
We are missing: _SSL_CTX_set_client_cert_cb in the ssl.dylib so this fails:
# ./svn co https://apolloim.googlecode.com/svn/trunk/ apolloim
svn: PROPFIND request failed on '/svn/trunk'
svn: PROPFIND of '/svn/trunk': SSL negotiation failed: SSL disabled
due to library version mismatch (https://apolloim.googlecode.com)
non ssl checkouts work though:
# ./svn co http://apolloim.googlecode.com/svn/trunk/ apolloim
A apolloim/apolloim-0.1
A apolloim/apolloim-0.1/main.m
A apolloim/apolloim-0.1/ApolloNotificationController.h
A apolloim/apolloim-0.1/SendBox.h
A apolloim/apolloim-0.1/ConversationView.h
A apolloim/apolloim-0.1/ApolloNotificationController.m
A apolloim/apolloim-0.1/nerve.txt
A apolloim/apolloim-0.1/SendBox.m
^Csvn: Caught signal
And the server code seems to work:
# ./svnadmin create testsvn
# ls -tlra testsvn
total 8
drwxr-xr-x 2 root wheel 136 Sep 9 15:46 locks
drwxr-xr-x 2 root wheel 374 Sep 9 15:46 hooks
-r--r--r-- 1 root wheel 2 Sep 9 15:46 format
drwxr-sr-x 5 root wheel 340 Sep 9 15:46 db
drwxr-xr-x 2 root wheel 68 Sep 9 15:46 dav
drwxr-xr-x 2 root wheel 170 Sep 9 15:46 conf
-rw-r--r-- 1 root wheel 229 Sep 9 15:46 README.txt
drwxr-xr-x 4 root wheel 374 Sep 9 15:46 ..
drwxr-xr-x 7 root wheel 306 Sep 9 15:46 .
# ./svnserve -d -r ./
# ./svn co svn://192.168.1.130/testsvn foo
Checked out revision 0.
# ls -ltra foo
total 0
drwxr-xr-x 5 root wheel 408 Sep 9 15:48 ..
drwxr-xr-x 3 root wheel 102 Sep 9 15:48 .
drwxr-xr-x 6 root wheel 272 Sep 9 15:48 .svn
# touch hello
# svn add hello
A hello
# svn commit --message "testing" --username=harry --password=sally
Adding hello
Transmitting file data .
Committed revision 1.
aspell
Put the data from spell.tgz above in /opt/iphone/
then you are golden only en_US installed at the moment:
# /opt/iphone/bin/aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.5)
spellngigs wrong
& spellngigs 7 0: spellings, spelling's, spelunkers, spelunking, spelunker's, spillages, spillage's
*
you can install your other dicts from aspell.net like this native on the phone
(make and which are available above for this to work)
curl ftp://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-6.0-0.tar.bz2 > dict.tbz
# setenv PATH /opt/iphone/bin:/usr/bin:/bin/:/usr/sbin
# ./configure
# make
/opt/iphone/bin/prezip-bin -d < en-common.cwl | /opt/iphone/bin/aspell \
--lang=en create master ./en-common.rws
/opt/iphone/bin/prezip-bin -d < en-variant_0.cwl | /opt/iphone/bin/aspell \
--lang=en create master ./en-variant_0.rws
This is one of my first multi c++/c programs!
Many thanks to nightwatch for getting the compiler in such great shape!
build with:
$ ./configure --host=arm-apple-darwin --prefix=/opt/iphone --enable-static --disable-shared
Linker needed this at the end of the build to complete:
/usr/sbin/arm-apple-darwin-gcc -g -O2 -fno-exceptions -Wl,-syslibroot -Wl,/Users/core/toolchain/heavenly/
-o aspell prog/aspell.o prog/check_funs.o prog/checker_string.o -Wl,-bind_at_load ./.libs/libaspell.a
/usr/local/arm-apple-darwin/lib/libintl.a -L/usr/local/arm-apple-darwin/lib
/usr/local/arm-apple-darwin//lib/libiconv.a -lncurses /usr/local/arm-apple-darwin/lib/libstdc++.dylib
Fixed some broken binutils widgets
15:35 [ core] # chown root:daemon nmap
15:35 [ core] chown: memory exhausted
15:35 [ core] # ./chown root:daemon nmap
15:35 [ core] # ls -ltra nmap
15:35 [ core] -rwxr-xr-x 1 root daemon 810404 Sep 7 13:22 nmap
15:44 [ core] # uptime
15:44 [ core] uptime: couldn't get boot time
15:44 [ core] # ./uptime 3:44pm up 17:21, 0 users, load average: 0.00, 0.00, 0.00
15:46 [ tangra] the competition for uptime bragging rights begins
15:50 [ tangra] # uptime 3:50pm up 1 day 6:05, 0 users, load average: 1.76, 0.54, 0.29
15:50 [ tangra] bring it on
passwd
passwd is from systemtools with the netinfo/ds/nis info services hacked out.
Only fileservice is available in iphone so we did not build the other pieces,
but it sure works fine for the iphone, easier than getting folks to do the
perl thing :-)
# passwd -i
no argument for -i option
usage: passwd [-i infosystem] [-l location] [name]
supported infosystems are:
file
for file, location may be a file name (/etc/master.passwd is the default)