2010年1月26日 星期二

Ubuntu 更新時間

如何在ubuntu中做時間校正
如果先前有裝過ntp請先停止ntp服務

sudo /etc/init.d/ntp stop

如果沒裝過ntp或已經將ntp服務停止

sudo ntpdate time.stdtime.gov.tw

將時間設定寫入硬體中

sudo hwclock -w

2009年9月25日 星期五

Debian USB installer

You need to put these file at the root of usb directory:
1) vmlinuz
2) initrd.gz
3) syslinux.cfg
4) xxxxx.iso   --> The iso which you want to install
Remember, do not use vmlinuz and initrd.gz in iso file here,
or the installng process can't read iso from your usb stick



vi syslinux.cfg



default vmlinuz
append initrd=initrd.gz ramdisk_size=12000 root=/dev/ram rw



syslinux /dev/sdx
ok, we finished all the procedure,now you can reboot your machine

Reference:
http://linux.simple.be/debian/usb

http://www.unicom.com/blog/entry/563

http://www.debian.org/releases/stable/amd64/ch04s03.html.en

http://www.vlug.org/pipermail/discuss/2009-June/026878.html

2009年9月20日 星期日

Server更新 - Debian lenny - apt的sources.list紀錄

deb ftp://opensource.nchc.org.tw/debian/ lenny main

deb-src ftp://opensource.nchc.org.tw/debian/ lenny main


deb http://ftp.tw.debian.org/debian/ lenny main

deb-src http://ftp.tw.debian.org/debian/ lenny main


deb http://debian.luna.com.tw/lenny ./

deb-src http://debian.luna.com.tw/lenny ./


deb http://security.debian.org/ lenny/updates main contrib

deb-src http://security.debian.org/ lenny/updates main contrib

2009年9月13日 星期日

facebook應用程式開發

在facebook搜尋列打入facebook developers,加入粉絲即可開始建立新的應用程式

基本教學,教你如何開始
http://blog.iamjason.com/2009/07/facebook-flash-application-1-how-to.html

另一篇教學,寫的東西差不多
http://blog.webgene.com.tw/?p=969&cpage=1

跟上面兩篇有點不太一樣 ,是教把應用程式放在facebook伺服器中
http://dulpi.com/modules/wordpress/blog71.html

API 實驗平台
http://developers.facebook.com/tools.php?api&app_id=2227470867

開發人員wiki
http://wiki.developers.facebook.com/index.php/Main_Page