將要預設安裝的套件放在config/chroot_local-packages目錄中即可。
參考:Debian Live Manual 6.3.1 Using chroot_local-packages to install custom packages
2010年10月6日 星期三
在live-helper config中加入private PPA
首先確定在config目錄中的bootstrap有這一行:
因為private PPA是透過HTTPS。
然後在config/chroot_sources/把PPA的source list加入在myppa.chroot當中。
接下來要加入PPA的public key,將它存在同一個目錄的myppa.chroot.gpg檔案中:
這樣lh build時應該就能加入private PPA。
LH_BOOTSTRAP_INCLUDE="apt-transport-https"
因為private PPA是透過HTTPS。
然後在config/chroot_sources/把PPA的source list加入在myppa.chroot當中。
接下來要加入PPA的public key,將它存在同一個目錄的myppa.chroot.gpg檔案中:
apt-key adv --recv-key <KEYID>
apt-key export <KEYID> > myppa.chroot.gpg
這樣lh build時應該就能加入private PPA。
2010年3月16日 星期二
top中數值的意義
us: user cpu time
sy: system cpu time
ni: user nice cpu time
id: idle cpu time
wa: io wait cpu time
hi: hardware irq (servicing hardware interrupts)
si: software irq (servicing software interrupts)
st: steal time (time in involuntary wait by virtual cpu while hypervisor is servicing another processor)
man vmstat
man mpstat
sy: system cpu time
ni: user nice cpu time
id: idle cpu time
wa: io wait cpu time
hi: hardware irq (servicing hardware interrupts)
si: software irq (servicing software interrupts)
st: steal time (time in involuntary wait by virtual cpu while hypervisor is servicing another processor)
man vmstat
man mpstat
2010年2月25日 星期四
檢查kernel coding style
在linux kernel中的scripts/checkpatch.pl不只可以用來檢查patch的coding style,也可以用來檢查c source的coding style:
scripts/checkpatch.pl --file *.c
訂閱:
文章 (Atom)