2009年8月22日 星期六

Ubuntu-tomcat-GWT

近來在試 Google Web Toolkit (GWT),為了這個要裝 Tomcat 。數天前說過,Ubuntu 可以 apt-get Tomcat 。但後來發現,那個 Tomcat 跑不到 GWT Sample 的 war 。

後來,到 Apache 官網下載 Tomcat 去跑,跑 war 卻 ok 。

2009年8月19日 星期三

tomcat

起初,我還以為 tomcat 是需要 Apache 才能跑。原來這兩個東東可以是完全沒有關係。

Ubuntu apt-get 提供了 tomcat 。但奇怪的是, Ubuntu 的 wiki page 卻叫你去官網下載。另外, Ubuntu tomcat 在安裝時,會告訴你依靠 gcj ,這點也叫人不安。

不過,其實使用 Ubuntu-tomcat ,其實不是想像中那麼可怕。

https://help.ubuntu.com/9.04/serverguide/C/tomcat.html

要注意的是,只要修改 xml 檔,就能使 tomcat 使用 sun-java 。

2009年8月13日 星期四

Google Web Toolkit Eclipse plugin missing requirement

error message

libstdc++.so.5 cannot open shared object file no such file or directory

missing requirement

libstdc++5

2009年8月1日 星期六

安裝Java

sudo apt-get install sun-java6-jdk

ref: http://wiki.ubuntu.org.cn/Java%E5%AE%89%E8%A3%85%E9%85%8D%E7%BD%AE

預設文件路徑

當 Ubuntu 以中文環境安裝時,資料夾的名字會以中文命名,但這個很不好。這個不但用起來麻煩,而且程式也未必能支持。最好的解決辦法,就是改變資料夾的路徑。

資料夾的路徑設定,放在以下的地方:

~/.config/user-dirs.dirs

ref: http://ubuntuforums.org/archive/index.php/t-955432.html

安裝Flash player

sudo apt-get install flashplugin-nonfree

ref: http://www.cyberciti.biz/faq/ubuntu-linux-how-to-install-flash-player-for-firefox/

Youtube小測之一:

比起我當初在8.10情況暢順得多。CPU在800MHz程度下約80%。

Youtube小測之二:

這是800MHz的狀況,速度慢得很可憐。雖然在1.87GHz時情況會有點改善,但不久不知為何電腦會自動跳回800MHz,可能是和過熱有關?

另,就像這個網頁放上兩個Youtube沒有play,甚至沒有顯示這個網頁tab也好,也可以使我的電腦耗上20%的CPU,奇怪。