Sunday, November 29, 2009

ReactOS :

http://www.reactos.org/tw/index.html

http://blog.roodo.com/ystuan/archives/10460581.html

試著在 binary level 與 MS 的 Windows 相容,說來有點匪夷所思。但仔細想來,就是將每個 Windows 的關鍵零件都實作一份,@@好像還是很恐怖。

It also reference some from Wine project. According to the live video, at least it's workable - at some kind of situation.
You can use the 'indent' tool to fix the coding style like this:
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs *.[ch]
Multiboot ( mboot )

Not to boot multiple OS, but to define the protocol between boot loader and OS.
Boot loader can also load lots modules into memory, and info OS to get use of it.
A good use case is for Xen, or other hypervisor, to load additional initramfs.

Grub 2 support mboot
http://www.gnu.org/software/grub/grub-2.en.html

syslinux + mboot.c32
http://syslinux.zytor.com/wiki/index.php/Mboot.c32

Multiboot speification
http://www.gnu.org/software/grub/manual/multiboot/
-> contain detail information about protocol definitions, also piece of code that OS parts may need.

Article about multiboot :
http://onlamp.com/pub/a/bsd/2007/03/01/inside-multiboot.html

Explain some idea about why multiboot been designed. One goal is to have a unify boot loader to load all kind of OS.

不過裡面提到的,BIOS 要 load HD 的第一個 sector 這件事來說。現存的各種 boot loader,也都有能力 load foreign OS 了。所以是不是要搶占這個位置,倒不重要了。

對於 boot loader 怎 load linux 這塊,這兩年搞很熟了,應該補一下關於 load Windows 這塊的知識倒是。

Saturday, November 28, 2009

利用 python 啟動超簡易的 http server

http://joseph-in-linux-cht.blogspot.com/2009/09/python.html

以這個 command :

python -m SimpleHTTPServer

會啟動一個 bind to 8000 port 的 server, 分享當前的目錄

Tuesday, November 24, 2009

你所不知道的 iPhone 真相

http://www.sogi.com.tw/newforum/article_list.aspx?Topic_id=6102981
Find out which program/process is locking a file in mac osx

from : http://www.macosxhints.com/article.php?story=20091104085622117

Basically, use lsof command, with a AppleScript to work with Finder
Allow root to login X in gdm :

in /etc/gdm/custom.conf

[security]
AllowRoot=true

restart gdm to try

Monday, November 23, 2009

what is modules.dep ? modules.order ?
CPIO command :

cpio -t 列表 initramfs 裡面的 file
zcat /boot/initrd.img-2.6.24-12-generic | cpio -t


cpio -i 解開 cpio 的 file
zcat /boot/initrd.img-2.6.24-12-generic | cpio -i

zcat 可以邊解邊 cat,對於沒壓縮過的,直接用 cat 就可以了

cpio -o 製作 cpio files
find . | cpio -o -H newc | gzip -9 > initramfs.gz