存档

2007年7月 的存档

我的simpson avatar

2007年7月29日 hufey 评论已被关闭

avatar.jpg

分类: shooting 标签:

Working SSH Instructions by NerveGas

2007年7月24日 hufey 评论已被关闭

Working SSH Instructions by NerveGas
Previous instructions on the net have required the use of restore mode to set
binary permissions. Unfortunately, restore mode doesn’t work with all public
versions of iPhoneInterface I’ve tried. The instructions below work by
overwriting an existing binary on the system with chmod, and then calling it
with the appropriate arguments to set permissions. The result is a fully
functional SSH setup. You can then proceed to uploading your own world builds,
or other programs to execute via commandline.
Step 1: Key Creation
On your Mac or PC, download dropbear from here:
http://matt.ucc.asn.au/dropbear/dropbear.html
Run: ./configure && make
You don’t need to install the software, just run:
./dropbearkey -t rsa -f dropbear_rsa_host_key
./dropbearkey -t dss -f dropbear_dss_host_key
And copy the two new key files into your iPhoneInterface directory.
Step 2: Uploading dropbear and friends
Download the iphone-ssh kit and the iphone binaries kit:
http://www.abigato.com/iphone-ssh-kit-vr1.tar.bz2
http://netkas.freeflux.net/blog/
Rename sh6 from the kit to sh.
Use the jailbreak application to break out of jail, and then open
iPhoneInterface to connect.
mkdir /etc/dropbear
cd /etc/dropbear
putfile dropbear_rsa_host_key
putfile dropbear_dss_host_key
cd /bin
putfile chmod
putfile sh
cd /usr/bin
putfile dropbear
Step 3: Overwriting ‘update’ with ‘chmod’
While still connected to iPhoneInterface, make a backup copy of
/usr/sbin/update:
cd /usr/sbin
getfile update
Rename this to update.original on your local filesystem
Now copy the ‘chmod’ binary to ‘update’ and upload it back to the
iPhone:
cd /usr/sbin
putfile update
Step 4: Overwriting the update configuration
Now the ‘update’ binary is really ‘chmod’, and has execute permissions! We
just need to tell the iPhone to chmod next time it boots. To do this, we
download /System/Library/LaunchDaemons/com.apple.update.plist and add our
own arguments to ProgramArguments:
0 /usr/sbin/update
1 555
2 /bin/chmod
3 /bin/sh
4 /usr/bin/dropbear
Save the new plist and upload it back to the iPhone:
cd /System/Library/LaunchDaemons
putfile com.apple.update.plist
While we’re here, lets also:
putfile au.asn.ucc.matt.dropbear.plist
Step 5: Reboot the iPhone twice.
The first reboot should set the permissions on the dropbear and related
binaries. The second reboot should start dropbear, so you can ssh to it:
ssh -l root [IP ADDRESS]
The root password is ‘dottie’.
Step 6: Replace the original update and com.apple.update.plist files
Don’t forget to put the old update files back. Rename update.original back
to update, and delete the extra ProgramArguments you added to
com.apple.update.plist. Now put them back:
cd /System/Library/LaunchDaemons
putfile com.apple.update.plist
cd /usr/sbin
putfile update
Step 7: Change the root password
If you don’t like ‘dottie’, you can generate a new encrypted password
by running:
perl -e ‘print crypt(”MYPASSWORD”, “XU”);’
Where MYPASSWORD is the new password you want, and XU is a random two-letter
salt. Copy the encrypted output and replace the existing one in
/etc/master.passwd on the phone.
You’re done! Enjoy!
-NerveGas

分类: saving 标签:

存张老图,看看自己认识几个

2007年7月23日 hufey 评论已被关闭

分类: watching 标签:

MultiTouch on Linux

2007年7月17日 hufey 评论已被关闭

目前看还差的很远,希望很快能看到可用的东西

分类: watching 标签:

你在中国有去过那些地区?

2007年7月13日 hufey 评论已被关闭
分类: listing 标签:

iphone magic

2007年7月4日 hufey 评论已被关闭

哈哈

分类: watching 标签:

折腾mplayer在osx上到半夜两点

2007年7月4日 hufey 评论已被关闭

realplayer在我的G4上坏了有一段时间。 mac osx在应该是他最擅长的多媒体播放上也远不是完美。最开始发现某些avi文件用vlc播放的时候会导致系统假死,渐渐的感觉规律是在播放的时候系统掉电然后当时播放的文件会有数据错误,这些都是猜测,以后有空拿md5sum检查一下是不是这样的。总之电影看着非常不爽,只好跳过那一小段。 再后来发现用rmvb也有类似的问题,在mac下一直用realplayer看rmvb,在linux下倒是一直用mplayer。因为mplayer的界面在osx下实在太简陋,远不如VLC,而linux下简陋是一种习惯,无所谓了。直到某天升级realplayer之后,realplayer再也不工作了。点了之后在任务栏上闪了闪,然后就一股青烟,没有了。在terminal上执行realplayer看到的segment fault,后来还看到过bus error。奇怪启动应用程序居然会导致bus error。重装了N次不同版本的realplayer始终解决不了问题。google也没有任何有用的信息,osx用的人还是太少。总基数太少还是osx太稳定导致没有有用信息这我就不知道了。倒是在国内的一个论坛上看到有人有类似的问题。rmvb虽然看得不多,但是国产电视剧还是在用这个格式。最后决定还是想想辙吧。mplayer既然能在linux/windows下播放所有的格式,在osx下播放rmvb自然也不在话下。下载了所有的codec,解压缩,发现README里说明所有codec要放在/usr/local/lib/mplayer下,但是osx下没发现/usr目录。最后google中文”mplayer osx codec 安装“,发现原来/usr在osx下是有的,只不过隐藏了起来。在terminal下ls都可以看到,在Finder里是看不到的,cp自然要sudo,不提了。最后终于成功用mplayer播放rmvb。于是删掉realplayer,不用它了,永远。

分类: saving 标签: