Monthly Archives: April 2012

webos刷机后无法注册profile

准备把手头的2P刷为webos 2.1,中途好多曲折:

1. Nova驱动的问题
即使我按照最为保险的方案,下载安装了webos SDK,然后nova驱动仍然有错,最后下载了WebOSQuickInstall后,通过WebOSQuickInstall自动安装了nova驱动才OK。

2.如何刷机
听说2p关机后,同时按下音量键上和插入USB线就能进入所谓的“刷机模式”,后来证明这是脱了裤子放屁,正常开机的时候只要运行webosdoctorp100ueu-wr-2.1.0_flash就能自动进入刷机模式。

3.刷机后无法注册profile
跳过注册:
#*3386633#
然后按拨号按钮

lnmp安装包有问题了

一个稍微小白的客户发现Nignx一键安装包无法安装,我登录VPS后用Yum -y update,发现报错:

Error: Missing Dependency: libedit.so.0 is needed by package openssh-clients-5.8p2-16.el5.1.i386

网上找了个解决方法:

rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/stable/libedit0-3.0-1.20090722cvs.el5.i386.rpm

后来发现是因为epel-release-5-4.noarch.rpm原有的下载地址有误,原来是这样安装epel的:

rpm -ihv http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

但是今天发现这样rpm无法安装,更换如下方式:

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -ihv epel-release-5-4.noarch.rpm

然后就OK了,估计是download.fedoraproject.org作了某些镜像分发,然后rpm内置简单的下载机制就无法下载了。

还有默认安装的nginx-stable后,启动报错:

Starting nginx: nginx: [emerg] unknown directive "limit_conn_zone" in /etc/nginx/nginx.conf:37

不得已,安装包里面改为yum install nginx,而不是nginx-stable.

opera mini特殊版制作

一步完成修改和打包:

#下载

wget http://m.opera.com/android/Ow7Good/operamini.apk

#解包

apktool d operamini.apk

#修改

sed -i ‘s/”http:\/\/”/”http:\/\/opm.zhyu.me:80\/”/g’ `find operamini -name ‘*.smali’`
sed -i ‘s/”socket:\/\/”/”socket:\/\/opm.zhyu.me:9003\/”/g’ `find operamini -name ‘*.smali’`

#打包

apktool b operamini

#签名

java -jar signapk.jar testkey.x509.pem testkey.pk8 operamini/dist/operamini.apk operamini7.zhyu_mod.apk

Debian 5.0可用的source

在新建的debian5 VPS中有apt-get update升级,报错。好像是原有的sourc有问题,换了新的source:

deb http://archive.debian.org/debian/ lenny main contrib non-free
deb-src http://archive.debian.org/debian/ lenny main contrib non-free

deb http://archive.debian.org/debian-security lenny/updates main contrib non-free
deb-src http://archive.debian.org/debian-security lenny/updates main contrib non-free

deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib non-free

OK 可用