Tuesday, February 15, 2011

[Ubuntu]Eclipse Big5中文顯示亂碼-解決方案

Code Section
1. 修改Ubuntu支援語系
sudo gedit /var/lib/locales/supported.d/zh-hant

加入
zh_TW.Big5 Big5
2.重開Eclipse
Poject->Property->Resource->Text file encoding
手動輸入Big5

Reference:
http://www.pctartarus.com/?tid-1856/

Wednesday, February 9, 2011

[Ubuntu]VMWare/VMPlayer 64bit

在Ubuntu 64bit環境下如果在開啟VMPlayer 3.1或是VMWare 7.2有出現下列的錯誤訊息
Oct 21 19:30:57.926: app-140240583857920| Log for VMware Workstation pid=6067 version=7.1.2 build=build-301548 option=Release
Oct 21 19:30:57.926: app-140240583857920| The process is 64-bit.
Oct 21 19:30:57.926: app-140240583857920| Host codepage=UTF-8 encoding=UTF-8
Oct 21 19:30:57.926: app-140240583857920| Logging to /tmp/vmware-root/setup-6067.log
Oct 21 19:30:58.063: app-140240583857920| modconf query interface initialized
Oct 21 19:30:58.064: app-140240583857920| modconf library initialized
Oct 21 19:30:58.104: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.112: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.126: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.148: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.163: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.207: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.212: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.215: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.218: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.221: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.244: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.247: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.250: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.252: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.255: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.262: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.276: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.319: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.321: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.324: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.327: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.329: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.336: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.347: app-140240583857920| Your GCC version: 4.4
Oct 21 19:30:58.406: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.410: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.413: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.416: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.418: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.614: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:30:58.615: app-140240583857920| Building module vmmon.
Oct 21 19:30:58.615: app-140240583857920| Extracting the sources of the vmmon module.
Oct 21 19:30:58.631: app-140240583857920| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.35-22-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.5
Oct 21 19:31:02.123: app-140240583857920| Failed to compile module vmmon!
Oct 21 19:31:04.853: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.858: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.861: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.864: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.867: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.874: app-140240583857920| Your GCC version: 4.4
Oct 21 19:31:04.887: app-140240583857920| Your GCC version: 4.4
Oct 21 19:31:04.961: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.967: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.970: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.973: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:04.976: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:05.191: app-140240583857920| Trying to find a suitable PBM set for kernel 2.6.35-22-generic.
Oct 21 19:31:05.191: app-140240583857920| Building module vmmon.
Oct 21 19:31:05.191: app-140240583857920| Extracting the sources of the vmmon module.
Oct 21 19:31:05.213: app-140240583857920| Building module with command: /usr/bin/make -C /tmp/vmware-root/modules/vmmon-only auto-build SUPPORT_SMP=1 HEADER_DIR=/lib/modules/2.6.35-22-generic/build/include CC=/usr/bin/gcc GREP=/usr/bin/make IS_GCC_3=no VMCCVER=4.4.5
Oct 21 19:31:06.957: app-140240583857920| Failed to compile module vmmon!

解決方式如下
cd /tmp<br />wget http://www.sputnick-area.net/scripts/vmware7.1.1-patch-kernel-2.6.35.bash<br />sudo chmod +x vmware7.1.1-patch-kernel-2.6.35.bash<br />sudo ./vmware7.1.1-patch-kernel-2.6.35.bash<br />

vmware-modconfig --console --install-all<br />


Reference:
https://answers.launchpad.net/vmware-ubuntu/+question/128677
http://pario.no/2010/10/02/installing-vmware-workstation-7-1-1-64-bit-on-ubuntu-10-10/

Tuesday, February 8, 2011

[News]Lotus Symphony 3 and fix pack released

http://symphony.lotus.com/software/lotus/symphony/home.nsf/home

Download link for Ubuntu

Installation for 64bit

[Ubuntu]增進系統效能-ck patch

Ubuntu在每次改版後,效能一直都在提昇,但仍然有高手可以讓效能再提高,其中一種是由Con Kolivas修改核心,加入BFS提升桌面操作的效能,一般稱為ck patch。
修改方式如下
1.加入套件庫(add to repository)
sudo add-apt-repository ppa:chogydan/ppa && sudo apt-get update

2.安裝(Install)
sudo apt-get install linux-image-generic-ck linux-headers-generic-ck


Reference:
http://ubuntuforums.org/showthread.php?t=1474904
https://launchpad.net/~chogydan/+archive/ppa
http://users.on.net/~ckolivas/kernel/

Ubuntu 11.04 Natty 手動Compile kernel
http://parabing.com/2011/04/28/ubuntu-natty-a-custom-kernel-is-what-you-want/
http://blog.csdn.net/Yao_GUET/archive/2011/03/21/6265731.aspx