2011年7月18日 星期一

initrd 怎麼做內容修改

解開 initrd.gz
gzip -dc /somepath/initrd.gz | cpio -id
產生 initrd.gz
find . | cpio --quiet --dereference -o -H newc | gzip -9 > /somepath/new-initrd.gz

2011年7月5日 星期二

Android SDK 1 - 在ubuntu 上安裝 java sdk

sudo apt-get install python-software-properties

sudo add-apt-repository ppa:sun-java-community-team/sun-java6

sudo apt-get update

sudo apt-get install sun-java6-jdk

iPhone tethering package

sudo add-apt-repository ppa:pmcenery/ppa
sudo apt-get update
sudo apt-get install gvfs ipheth-utils usbmuxd
*** Added for Ubuntu 10.10 with iOS 5
sudo apt-get install ifuse
*** Added for x86-64 Ubuntu 11.10
sudo apt-get install libimobiledevice-utils

Macbook pro triple boot , sec 1

After fighting for triple boot on Macbook pro, I found some small notes,

http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp
Reference to this document, we have 2 important parts to notice for
------------------------------------------------------------------------------------
1. Only allowed "3" partitions ( That is efi - OSX - Linux - Win, preciously )
2. Windows must be the "last" partition
------------------------------------------------------------------------------------
Such a strange setting..

2011年7月4日 星期一

ubuntu 上的 dvd r/w/e 指令

Ubuntu 上的 DVD-RW 指令
1. 讀出 iso 檔
sudo dd if=/dev/cdrom of=cdrom.iso
sudo dd if=/dev/dvd of=dvd.iso

2. 燒錄 iso 檔
單一 session (DAO - disk at once)
wodim -v -dao speed=4 dev='/dev/cdrw' myimage.iso
多個 session (Multi-session TAO - track at once)
wodim -v -tao -multi speed=4 dev='/sda/scd0' myimage.iso
加上 -eject 可以做到燒完退出的動作
wodim -v -eject -dao speed=4 dev='/dev/cdrw' myimage.iso

3. 退出 cd
eject