kitchen:
- dsixda's HTC Android Kitchen
- QUESTION: How do I add a kernel to my kitchen's working folder?
- some more information about the fundamentals of creating your ROM with this kitchen
- Frequently Asked Questions
[+/-] |
Android cooking tools and reference |
kitchen:
[+/-] |
HTC Desire rom & tool |
[+/-] |
Replace vino-server with x11vnc on ubuntu 10.04 |
vino-server效能不佳, 故以x11vnc替代之, 記得先停用vino-server:sudo apt-get install x11vnc vnc4server
vncpasswd
x11vnc --quiet -ncache 10 -bg -reopen -forever \
-rfbauth ~/.vnc/passwd -display :0
ref: this.
[+/-] |
Strace with tomcat |
一般的strace使用法如下即可:strace -p $PID
但是tomcat必須使用以下參數才可正常顯示:strace -f -etrace=\!futex,gettimeofday,clock_gettime -p $PID
ref: this.
[+/-] |
Jdownloader for ubuntu 10.04 |
Another file hosting download manager !sudo add-apt-repository ppa:jd-team/jdownloader
sudo echo 'deb http://ppa.launchpad.net/jd-team/jdownloader/ubuntu lucid main' > /etc/apt/sources.list.d/jd-team-ppa-lucid.list # fix wrong url
sudo apt-get update
sudo apt-get install jdownloader
[+/-] |
Open anything from command line in ubuntu |
try this:gnome-open ./*
ref: this
[+/-] |
Disabling the Touchpad Temporarily While Typing |
打字時暫時停用 touchpad .syndaemon -i 1 -d
ref: this
[+/-] |
Network manager & reslov.conf |
防止 network manager 每次開機後修改 /etc/reslov.conf, 一個 dirty 的方法, 加上 immutable 的屬性:sudo chattr +i /etc/reslov.conf
如果要修改 reslov.conf, 先將 immutable 的屬性拿掉:sudo chattr -i /etc/reslov.conf
[+/-] |
colorful log via perl |
cat /var/log/message | perl -pe 's/ERROR/\e[1;31;43m$&\e[0m/g'
[+/-] |
proxy via iptables |
#!/bin/bash
echo 1 > /proc/sys/net/ipv4/ip_forward
proxy_host=x.x.x.x
proxy_port=8080
iptables -F
iptables -F -t nat
iptables -t nat -A OUTPUT -p tcp -d 127.0.0.0/8 -j ACCEPT
iptables -t nat -A OUTPUT -p tcp -d 10.0.0.0/8 -j ACCEPT
iptables -t nat -A OUTPUT -p tcp -d 172.16.0.0/16 -j ACCEPT
iptables -t nat -A OUTPUT -p tcp -d 172.19.0.0/16 -j ACCEPT
iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination
"$proxy_host":"$proxy_port"
© 2009 w3 4r3 r0ck/ Hack by Marlboromoo/ Designed by Dante Araujo/ . =]