2007年9月19日 星期三

linux network backup

1. rescue cd boot linux
download cd image from http://www.sysresccd.org/Download

2. network setup
command: dhcpcd eth0

3. mount sftp server as file system by sshfs
command: sshfs username@hostname: mountpoint

4.backup/restore partition by partimage
command: partimage

5. umount file system
command:
umount mountpoint

ps1. better than partimage client & server, simple and beautiful
ps2. network boot rescue cd is supported

2007年9月17日 星期一

redhat v.s. ubuntu

當redhat從desktop撤離,留下一個fedora,美其名稱為最新的軟體,其實是redhat的測試版,讓ubuntu有機可乘,一舉拿下linux的使用率,但是高使用率不等於有眾多的開發者.Ubuntu的bug相當多,而且半年的開發期,時間到就會有新的版本進來,新的bug也跟著進來,所以整個系統變的不是很穩定.所以是不是要改成9個月的週期,讓bug數有效降低,系統的穩定得以提升,或者使用debian的unstable, testing, stable的概念,讓系統得以穩定,其實debian的概念是好的,只是大家都是part-time的維護者,所以做的不是很好,時間很難掌控,所以如果以公司的方式來執行,其實相當不錯

2007年9月2日 星期日

ps3 video mode

http://ps3wiki.qj.net/index.php/PS3_Video_Mode

ubuntu + ps3

最近買了一台ps3,目前沒有跑任何遊戲的,純研究.
裝起ubuntu
http://cdimage.ubuntu.com/custom/20070608-feisty-ps3/
裝sdk
http://tree.celinuxforum.org/CelfPubWiki/OttawaLinuxSymposium2007?action=AttachFile&do=get&target=ols-2007-ps3-bof.pdf

2007年8月20日 星期一

xwindow forward setup

server side:
file sshd.config
X11Forwarding yes
client side:
ssh -X hostname

2007年4月1日 星期日

redhat enterprise linux

除了maintain的時間長之外,因為有些機器的dma有bug,所以系統會不穩,但是dma可以大大提昇系統效能。所以redhat提供hardware certified的hardware list,確保系統不會不穩,然後把dma打開,有人跟我說RHEL不穩,我猜他們可能沒有買redhat certified的hardware.

debian etch v.s. upstream

我想大約差半年的時間,而這半年是相當好的緩衝,可以讓大部分的bug被找到。這樣maintainer就會比較輕鬆,其實你看server version都是差半年的,redhat也是這樣做的。所以我對於debian etch的版本感覺是相當好的。
再來,我覺得debian會漸入佳境,因為gcc的abi會相對穩定,不像之前會有很多相容轉換的問題。所以我個人覺得,之後問題會比較少。有些套件有問題,就使用舊的,沒有問題就使用新的,這樣發行起來,時程上比較好掌控,之前debian的installer大變動,所以問題相當麻煩,沒有fix之前,就是不能release,linux kernel也是一樣的狀況,不過跟redhat enterprise linux選一樣的版本,有問題,找他們的patch也許是不錯的方案。etch and RHEL 都是2.6.18。

2007年2月25日 星期日

centos livecd vmware

native linux environment -> centos livecd
concurrent environment ->
1. vmware + centos livecd
2. xen + centos livecd
3. qemu + centos livecd
4. MS virtual server + centos livecd

已經成熟的技術了....

1. download centos 4.4 livecd
2. download vmware server
3. create hard drive image
4. configuration
hard drive image as LSI scsi
livecd as ide cdrom
network nat
5. bios: boot from cdrom

2007年2月9日 星期五

debian v.s. ubuntu

我想最大的問題是兩個的問題大小不一樣,debian有比較多的architecture以及比較多的packages所以會比較麻煩.可以把ubuntu的某個release的版本當做stable的subset再extend,這樣也許會比較好.所以變成debian unstable -> ubuntu stable -> debian stable ,哈亂奇怪的. 也就是說debian testing 跟 ubuntu stable同步. 也許這是debian的解救之道.

2007年1月30日 星期二

build initrd in debian

debian new kernel version 2.6.18 backport to sarge.
but initrd build error.
try it.

mkinitrd.yaird -o initrd.img-2.6.18-3-686 2.6.18-3-686

update-grub

2007年1月2日 星期二

debian v.s. ubuntu

現在debian etch已經剩下100左右的critical bug需要fix,這樣就可以release,這次看起來應該會在兩年之內release一個新的版本。這次使用的版本看起來都趕上時代潮流。可能也跟ubuntu有關係。因為ubuntu是走在前面的desktop版本。所以ubuntu的bug fix可以回饋回debian,這樣debian就可以更快的release版本。當然ubuntu是從debian unstable的版本分支出去,之後再apply一些patch就組成的。所以patch回饋回debian也是沒錯的。這樣看來兩個distribution還可以互相支援,但是還有另一個更加嚴肅的問題,這樣最後會真的需要ubuntu嗎?如果debian跟的上時代潮流,那還真的需要ubuntu嗎?可能ubuntu會變成debian的分項計畫,而不是一個獨立的distribution。

需求創造供應

linux kernel現在更新的非常快,兩三個月就出一個新版本,而且更動都是一百萬行,這是相當恐怖的狀況。也就是半年的更新就等效於大換血一次,這部份相當的大,所以出現bug fix版本,2.6.16.x就是2.6.16的bug fix版本,即使是bug fix的版本,都還是不夠穩定,穩定是需要時間的磨練。但是兩三個月是不夠的。現在每個distribution都上了一堆patch,這樣是不好的,因為這樣會需要相當多的人力在維護。

2007年1月1日 星期一

SystemRescueCd is good

原本想說使用ghost的,後來發現ghost比較麻煩,使用此CD省事多了,只要一片cd,再加個USB硬碟,就可以輕易搞定,之前還在搞partimage的網路,發覺還是太麻煩,使用USB,輕輕鬆鬆就可以把資料備份到USB硬碟,還可以resize partition真好。目前對NTFS還不是很好,不然ghost就真的可以去垃圾桶。