热闹的6月
6.1 儿童节
6.3 ~ 6.5 中国网站维护日, 算是一种特殊的纪念吧
6.5 成都公交车火灾, 默哀...
6.9 终结者4国内首映日
6.9 苹果WWDC, iPhone 3GS发布, 点这里看瘾科技报道
?6.14? 苹果WWDC, 发布iPhone第三代硬件(时间不确定,只知道是6月第二周)
6.24 变形金刚2国内首映, 据说原版包含轰炸上海的镜头, 无法通过广电总局审查(日), 需要删减或者其它修改操作, 所以能否在6.24上映还是个未知数
6.1 儿童节
6.3 ~ 6.5 中国网站维护日, 算是一种特殊的纪念吧
6.5 成都公交车火灾, 默哀...
6.9 终结者4国内首映日
6.9 苹果WWDC, iPhone 3GS发布, 点这里看瘾科技报道
?6.14? 苹果WWDC, 发布iPhone第三代硬件(时间不确定,只知道是6月第二周)
6.24 变形金刚2国内首映, 据说原版包含轰炸上海的镜头, 无法通过广电总局审查(日), 需要删减或者其它修改操作, 所以能否在6.24上映还是个未知数
> Win32使用putty,linux和mac osx使用ssh连接到iPhone;
> 安装php和lighttpd;
apt-get update; apt-get install php; apt-get install lighttpd
> 创建布署目录;
mkdir -p /var/www/htdocs
> 修改lighttpd配置;
vi /usr/local/etc/lighttpd.conf
修改:
server.document-root = "/var/www/htdocs"
server.modules = ( "mod_fastcgi" )
server.tag = "lighttpd 1.4.18/PHP 5.2.8 (cgi-fcgi)" #此处可以随意填写
server.pid-file = "/var/run/lighttpd.pid"
index-file.names = ( "index.php", "index.py", "index.html", "index.htm" ) #根据自己需要填写
static-file.exclude-extensions = ( ".php", ".fcgi", ".cgi", ".py" )
fastcgi.map-extensions = ( ".php3"=>".php" )
fastcgi.server = (
".php"=>((
"host"=>"127.0.0.1",
"port"=>9000,
"broken-scriptfilename"=>"enable",
"fix-root-scriptname"=>"enable"
))
)
cgi.assign = (
".py" => "/usr/bin/python" # 如果安装python的话,可以考虑添加这行
)#其它保持不变
memetype.assign ...
> 运行;
php-cgi -b 127.0.0.1:9000 &
lighttpd -f /usr/local/etc/lighttpd.conf &
> 测试;
echo "<?php phpinfo(); ?>" > /var/www/htdocs/info.php
打开safari,输入地址 http://localhost/info.php
以上操作必备条件,jb过的iPhone,已经安装unix subsystem,mobile terminal,cydia,openssl,openssh。
Cydia首页发表声明,Cydia开发者Jay Freeman(saurik)已经将iPhone上最好的第三方在线软件管理器Cydia出售给Microsoft,并表示自己将致力于.NET与Objective-C连接器的开发(用.NET开发iPhone GUI应用)和Silverlight的iPhone移植工作 ......
原文:
ok, don't hate me: I totally sold Cydia to Microsoft, and am now working on a .NET to Objective-C connector with the eventual goal of porting Silverlight.
Apparently, Microsoft has a booth here at CTIA, and Bill Gates decided to show up in order to make the deal himself: he feels thy need this to compete with Apple's mobile strategy.
I'm not exactly certain what this will mean for Cydia, but I'm certain that it will be positive: probably a new look based on Aero and integrated support for VBScript control files. I'm excited!
iPhone的操作系统是mac os x,越狱的iPhone通常都会带上unix subsystem,也就意味着iPhone已经不再是手机那么简单,反正在我的眼里它就是一台可以随身携带的迷你unix server,不过要借助ssh客户端软件,比如putty。
列一下我在iPhone上最常用的命令行工具:
> svn:用于从开源社区,如Google Code获取源码;
> wget:命令行下载工具;
> apt:基于命令行的软件管理工具,可以完成cydia所能做的事;
> links:基于命令行的浏览器,超屌,应用场景嘛,自己想想,类似的工具还有lynx,可以用apt-get安装;
> top:类似windows任务管理器,不过不能直接关掉进程,需要使用kill/killall来关闭;
> killall:关闭指定程序名称的所有进程,killall SpringBoard;
> vim:用来代替subsystem自带的vi,我是直接用apt-get install vim安装的,支持大部分语法高亮,我另外安装了actionscript 1.0 - 3.0的语法包;
> httpd:http服务器,可以装php5,当开发用的server来跑;
> sqlite:命令行下访问通讯录等数据库;
> google appengine sdk:开发使用google ape服务python应用;
> 3proxy:在iPhone上架设代理服务器,特殊情形下,用于笔记本利用wifi通过iPhone GPRS上网,包含socks/http(s)/imap;
> iphone sdk:可以在iPhone上开发iPhone使用的xcode代码(有点绕),需要安装gcc for iphone;
还有不少东东就没有写,总而言之,你还真“别拿iPhone不当电脑” ,如果你愿意,可以把iPhone当网站服务器用,嘿嘿...
这些东东已经小用了数月,也小有体会,如果有同样需求要的同学,可以留言,一起发掘iPhone的潜力,下面上几张小图。
联通上海分公司网站在3G专区推荐iPhone3G, G1等多款手机,不过详细配置里对于wifi支持只字未提,嘿嘿...