October 26, 2003

http://jidanni.org/

這次到台南參加TnLug聚會遇到的長輩:積丹尼
令人佩服的前輩

對一般在台灣長大的某些人來說,擁有美國西北大學碩士,貝爾實驗室工作經驗的積丹尼願意為了台灣的太太而放棄這些來到台灣當農夫
在某些方面來說,他比很多嘴巴上說自己愛台灣的人更愛台灣,即時台灣政府到現在依然要求他們必須放棄原有國籍才能取得身份證,即使現在他依然因為沒有身份證而在許多生活上非常不方便,他依然沒有離開,依然熱愛這塊土地

由 發表於 09:33 PM | 迴響 (1048)

October 18, 2003

個人網站升級

花了一些時間把個人網站升級到apache 2上面,順便用一些很dirty的方法來做到ssl support

自從把mysql,php support拿掉之後,覺得系統裡面裝太多雜七雜八的東西,又沒用到,例如ports裡面的ssl,因為原本裝的是apache13-ssl這種的,不知道為甚麼一定要安裝新版的openssl而不用系統本身內建的?
這幾天就把所有沒用到的東西都砍了,改用apache2,port maintainer一開始就已經把ssl support加入了,只是要自己手動製作crt , key

懶得portupgrade了,全部用ports裡面的新版本,反正沒有甚麼資料

至於做到ssl support的方法滿dirty的,有去看apache.org上的ssl faq真長,懶得看了XD

直接用debian unstable這台apt-get install libapache-mod-ssl在把/etc/apache/裡面的ssl相關的檔案tar起來直接丟到server上,只要留下ssl.crt跟ssl.key就好了,在把ssl.crt裡面的snakeoil-dsa.crt跟ssl.key裡面的snakeoil-dsa.key直接cp成server.crt , server.key在/usr/local/etc/rc.d/apache2.sh stop;/usr/local/etc/rc.d/apache2.sh start
sockstat | grep 443有在listen就收工了

當然,日後還是要花一些時間來確實了解openssl的運作跟如何製作自己的CA

由 發表於 12:36 PM | 迴響 (380)

October 15, 2003

尋找好用的工具for windows

為了讓公司的windows 2k pro可以gdesklets所提供的功能,花了一些時間尋找類似的工具for windows

您可以在google搜尋這些檔名
atnsetup.exe 免費的便利貼程式
RainlendarInstaller.exe open source code的桌面月曆小程式,還可以跟outlook整合
RainmeterInstaller.exe open source code的系統監測小程式
WWsetup.exe 免費的天氣預報軟體
或是直接到以下兩個url download
http://www.metalforums.com/singerscreations/Index.html
http://vapaa.dc.inet.fi/~rainy/index.html

由 發表於 08:09 PM | 迴響 (128)

October 12, 2003

debian desktop

應朋友的要求,把自己的桌面安裝方法整理一下

安裝debian,我都是用ext3,為了配合使用debian官方的kernel image

安裝文字編輯器(vim , joe ..balabala)

修改/etc/apt/source.list把所有的stable都改成unstable後存檔(都要放在同一行)

升級到unstable(apt-get update;apt-get dist-upgrade),如果有硬體沒抓到的話考慮換kernel(apt-cache search kernel-image)
選一個新一點的,有時候可能會有一些問題,我的機器上用的是2.4.21-5-k7這一版,在不行的話考慮換2.6 kernel

如果用debian官方包的kernel image的話再出現設定畫面的時候要選讓他作initrd.img的link並在/etc/lilo.conf要加入
initrd=initrd.img像這樣
default=Linux
initrd=initrd.img
image=/vmlinuz
label=Linux
read-only
安裝完之後lilo -v -v -v寫入superblock or mbr在重新開機

安裝locales , xcin , xfonts-intl-chinese , x-window-system , rcconf , ssh
這些都抓完之後會出現設定locales跟顯示卡晶片的畫面,locales選擇en_US ISO-8859-1跟zh_TW BIG5這兩個,顯示卡就選擇自己用的那種
ssh的部份就照預設值就好,安裝完之後在用rcconf把xfs , xprint , xdm這幾個沒用到的都拿掉

安裝gnome , gdm(apt-get install gnome gdm或是apt-get install kde gdm)
有錯誤訊息說甚麼broken package的話,就修改/etc/apt/source.list加入
deb http://snapshot.debian.net/archive/2003/08/11/debian unstable main contrib non-free
在把其他的都#掉,在用apt-get update;apt-get install gnome gdm或是apt-get install kde gdm
這些先安裝起來之後在把deb http://snapshot.debian.net/archive/2003/08/11/debian unstable main contrib non-free註解掉
在跑一次apt-get update;apt-get upgrade升級成新的版本

安裝一些美化跟雜七雜八的東西
apt-get install xmms xine-ui xchat gftp gdeskcal gdesklets-data gaim goats esound ttf-arphic* ttf-baekmuk
ttf-kochi-gothic ttf-kochi-mincho swf-player wget
如果用kde的話可以改用kbear取代gftp,改用superkaramba取代gdeskcal , gdesklets-data ,改用kopete取代gaim,不需要裝goats
也不需要裝esound,安裝wget是因為gdesklets有個天氣的Display需要用到
安裝好gdesklets之後可以在/usr/share/gdesklets/Displays/裡面找到佈景主題
superkaramba的話http://www.kde-look.org/有專區在左邊

這些都裝好之後再來調整gdm的一些東西
/etc/gdm/locale.conf把底下這行改成這樣
Chinese(Taiwan_R.O.C.) zh_TW.Big5
/etc/gdm/Sessions/Gnome加入
export LC_ALL=zh_TW.Big5
export LANG=zh_TW.Big5
export XMODIFIERS="@im=xcin"
exec /usr/bin/xcin &
/etc/init.d/gdm加入
export LANG=zh_TW.Big5
/etc/init.d/gdm restart
調整一下xcin改成只有酷音輸入法
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; This is the global configuration of the zh_TW.Big5 locale
;
(define zh_TW.Big5
'((DEFAULT_IM "chewing")
(DEFAULT_IM_MODULE "gen_inp")
(DEFAULT_IM_SINMD "DEFAULT")
(PHRASE "default.phr")
(CINPUT (chewing))
(CINPUT (chewing))這邊預設會有很多內建的輸入法,全都拿掉,改成只有chewing
(DEFAULT_IM "chewing")這邊預設是cj,改成chewing,存檔
這樣以後按ctrl + shift切換xcin就只會有酷音輸入法

這些都修改好之後/etc/init.d/gdm start就可以看到gdm的登入畫面了

esound是因為用gnome2所以加裝的,也可以改用alsa,不過我不會
gdeskcal , gdesklets如果用kde的話就改用superkaramba
http://art.gnome.org/
http://www.kde-look.org/
可以找到很多美化的東西
我用的佈景主題是
http://art.gnome.org/themes/gtk2/21.php
http://art.gnome.org/themes/metacity/490.php
一個是視窗裝飾,一個是視窗的其他部份,這邊也可以找到很多gdm用的佈景主題
xmms的佈景主題我用的是
http://www.xmms.org/skins.php?download=86
解壓縮後放在/usr/share/xmms/Skins/(Skins自己建立)再到選單上改用這個,順便改成用esound輸出聲音
gaim也是,音效改成用ESD
字型的話我都是用AR PL KaitiM Big5 10號字

要用kde的話還需要安裝kde-i18n-zhtw koffice-i18n-zhtwbig5這兩個這樣kde跟koffice才能夠有中文選單
也可以在/etc/apt/source.list中加入
deb http://coyote.asoc.euitt.upm.es/mud/debian ./
在用apt-get update;apt-get install kde-theme-liquid mosfet
這樣就可以用liquid的那些風格還有顏色,搭配kde-look.org上找的aqua視窗裝飾看起來不錯


由 發表於 03:05 PM | 迴響 (408)

screen shot

View image

環境:debian unstable , gnome 2.2 , gdeskcal , gdesklets ...balabala
無聊,拍張照片,順便問一下,在windows上有superkaramba , gdeskcal , gdesklets這樣好用的東西嗎?
在公司沒辦法一定得用windows :(

由 發表於 01:43 PM | 迴響 (822)

October 05, 2003

Say good bye to RedHat Linux

header-fedora_logo.png

The Fedora project

最近redhat跟fedora project要合併了,也就是說以後不再有redhat linux了
The New Name
The Red Hat Linux Project, as this used to be called, is merging with the Fedora Linux project. We had so many common goals that to work apart would be a waste of effort. We have months of effort before we can have a unified infrastructure, so we still have two different web sites, two sets of documentation, and so forth, but we will be unifying our work over time. Red Hat would like to thank Fedora Linux project developers for proposing the merger and committing time to making the merger a reality.

Red Hat would also like to thank the Fedora project at UVA and Cornell for cooperating with us in the use of the "Fedora" name.


--------------------------------------------------------------------------------

Red Hat Enterprise Linux
The Fedora Project is one of the sources for new technologies and enhancements that may be incorporated into Red Hat Enterprise Linux in the future. Red Hat Enterprise Linux is the solution that provides a robust, stable operating system supported by Red Hat, Inc. and a wide variety of independent software vendors (ISVs). For production use, support, service level agreements (SLAs), and ISV support, we proudly ask that you look at Red Hat Enterprise Linux.

以後redhat將只專心於開發redhat advanced server上,也贊助fedora project,而上面用的東西將會有部分來自於fedora project,所以現在還在補習班補rhce的朋友趁早轉換到as的認證吧,以後應該不會再有所謂的rhce了

由 發表於 11:19 PM | 迴響 (89)

October 04, 2003

Gothic Dream by Pilgrim

GothicDream.jpg
很久以前出版的一張cd,前天閒逛時買的

http://audioart.audionet.com.tw/124/%E8%BB%9F%E9%AB%94%E5%B0%88%E6%AC%84/%E6%96%B0%E7%89%87%E7%84%A6%E9%BB%9E124.htm
最後面有一些這張專輯的一些簡單介紹,google在找找上面三個關鍵字,還可以找到一些試聽,難以想像這樣的一張專輯,現在只賣128台幣,整體而言,以中古詩人所寫的詩詞來作為歌詞,搭配優美的new age,的確是張物超所值的cd

由 發表於 08:32 AM | 迴響 (548)

October 02, 2003

OpenOffice.org 1.1 release

ooo-1.1-officesuite-right.png
http://www.openoffice.org/dev_docs/features/1.1/features-text.html

經過5次rc 之後,OpenOffice.org終於推出了1.1版
在1.1版中對於整合性做了許多加強,例如對xml的支援,能夠直接將檔案匯出成pdf , swf格式,也能夠與mysql做結合,支援將檔案匯出成pda格式,提供一個易於使用的開發環境讓有興趣的人可以開發一些plugin,多國語系的支援也比以前來的更好..等等的新功能

由 發表於 09:58 PM | 迴響 (117)

October 01, 2003

another dirty way for gdm2 on FreeBSD

發信到freebsd-gnome mail list問了一下怎麼在gdm2新增一個session給kde用

今天自己嚐試了一下,在看了gdm的說明網頁(打開gnome2y在選說明找gdm,有說在那裡)
新版的gdm 2.4已經把這些session設定檔改放在/usr/X11R6/etc/dm/,不過這邊還是沒有定義給gnome2用的session,我猜可能寫死在code裡面,不過也可能不是
好吧,既然maintainer都說了怎麼作,那就自己手動編輯/usr/X11R6/etc/dm/default.desktop吧,用一點dirty的手段來騙過gdm2
打開這個檔案會看到
[Desktop Entry]
Encoding=UTF-8
# The names/descriptions should really be better
Name=Default System Session
Comment=This is the default system session
Exec=default
# The "default" Exec is a very special one and is handled specially in
# the Xsession script, you could also have "custom" which would just run
# "~/.xsession" directly
Icon=
Type=Application
長的像這樣的東西
Name=xxxxx定義了這個session在選單上出現的名字,底下是當使用者選擇某個語系時用那個語系來顯示這個名字
Comment=xxxxx定義了這個session當滑鼠游標移過去時顯示的文字,底下的那一大串功能更上面講的一樣
清楚了這些之後,因為我只用gnome2 , kde兩種,所以我也不管他原本這邊定義的default要作些甚麼,直接改成
[Desktop Entry]
Encoding=UTF-8
# The names/descriptions should really be better
Name=KDE
Comment=KDE
Exec=startkde
# The "default" Exec is a very special one and is handled specially in
# the Xsession script, you could also have "custom" which would just run
# "~/.xsession" directly
Icon=
Type=Application
值得注意的是,重跑gdm要用gdm安裝時安裝的指令,不能用kill -HUP or /usr/X11R6/etc/rc.d/gdm.sh來重跑,我這樣用的話有時候會連console都變成停止回應
指令改用/usr/X11R6/sbin/gdm開頭的那些
我這樣讓KDE跑起來之後,發覺有一些怪怪的,抓不到系統安裝的true type字型,自己手動在寫一個.xinitrc用startx來啟動kde,改好字型設定之後在重新啟動gdm,這樣選擇kde登入之後就可以正常使用true type字型了

由 發表於 11:40 PM | 迴響 (211)