2011年6月18日 星期六

xmind的中文說明

連到 http://actsmind.com/XMindHelpCenter/
可以下載 xmind 的中文說明文件,下載後解開。
原本的說明文件是放在 /usr/local/xmind/plugins/org.xmind.ui.help_3.2.1.201011212218/contents 這裡,將 contents 改為 contents.org 備份, 再將解開後的中文說明資料夾移到這裡,取代為 contents 資料夾,將存取權限改為 755 ,就完成囉!

2011年6月16日 星期四

無法使用 firefox 連到 vmware server 開啟 guest os 的畫面

解決前個問題後,firefox 可以連線到 vmware server,很開心的新增主機,按了power on,要開啟 console 視窗時,又發生了問題!
vmware server 會要求我們安裝 vmware remote console套件,安裝後再重新啟動 firefox ,結果還是無法開啟 guest console畫面,顯示以下錯誤訊息:
Cannot access virtual machine console. The request timed out.

查詢資料後,發現似乎無解,但可以使用 VMware vSphere Client (簡稱 VI Client ) 來協助管理,vi client 原本是管理 esx server or esxi server 的軟體,也可以管理 vmware server。不過,問題還是持續出現,使用目前的 esx server 所附的 vi client ,是 4.x 版的,不能直接管理 vmware server,網路上有高手解決這個問題,參考網址:
http://www.linux.com/community/blogs/accessing-vmware-server-2-with-vsphere-client-the-unsupported-way.html

主要的動作是由 http://sites.google.com/site/andreabenini/support/2.5.rar?attredirects=0&d=1 這裡下載檔案,將檔案解壓縮後放在 vi client 的目錄裡,以 xp 系統為例,就是將解開的 2.5 資料夾直接 copy 放在 C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client 這個資料夾底下。

重新開啟 vi client 後,主機位址是 https://IP:8333,再輸入管理員權限密碼,就可以登入管理囉!

在 vmware server 裡,若只開啟 902, 8222, 8333 port 似乎不夠,再試試開啟 port 8307 。

CentOS 5.x 安裝 VMware Server 2.x 的問題

CentOS 5.x 安裝 VMware Server 2.x 版本,在使用 http://IP:8222 連線後,會發現網頁出不來,但連到 http://IP 很正常,不是 apache 的問題。測試不同的環境,在 Windows 裡使用 IE ,可以顯示登入、登入後的畫面。
後來在 Server 的 /var/log/vmware 裡的 log 檔案看到 SSL Handshake on client connection failed: SSL Exception 的錯誤訊息。有了方向,就表示快找到解決的方式了。
果然,Google 一下就找到 http://planetvm.net/blog/?p=1087 這篇。作者也測試了各種不同的可能性,原來應該是 ssl 連線的問題,另一位網友提供了解決的方式,如下:

Dayworker replied to the forum post and made a remark about how-to fix the issue on firefox 3.6. It turns out that SSL2 is disabled in Firefox 3.6, this turned out to be my problem on the default firefox 3.0.x setup as well… He referred to a post in a german VMware forum where shecki found out about this little tid bit.

So if you encounter this then try changing the following in about:config

security.enable.ssl2 from false into true 

For me it solved my firefox problem completely. Thanks guys for sharing this.


簡單來說,就是在 firefox 裡連到 about:config ,尋找 security.enable_ssl2 將這裡的值改為 true ,再連到 http://IP:8222 就可以使用囉!

2011年6月7日 星期二

vmware server

目前在 vmware player 環境裡的 centos ,這也是在一個 vm 環境,如果要安裝 vmware server 的系統做測試,在安裝時,有幾個問題要注意:
  1. 安裝 centos 時,不能安裝虛擬環境,例如 xen 就不能安裝。若安裝 xen 的話,在 vmware server 安裝的動作就會失敗。
  2. 當 centos 安裝完成後,不要安裝 vmware tools。若安裝 vmware tools 的話,在安裝 vmware server 完成後,還需要執行 vmware-config.pl 的這個動作,會顯示系統己安裝 xxx 模組的訊息,而造成 vmware-config.pl 的設定動作無法繼續執行。
  3. 連結時,使用 http://localhost:902 是 remote connect ,使用 http://localhost:8222 是 standard http connection 或 http://localhost:8333 是使用 secure http connection 方式連結管理。
  4. 由於 port 不同,所以,記得要在 system-config-security 增加上述的幾個 tcp port ,才能從其它台遠端連線管理。

以下是參考資料:
http://www.vmware.com/support/pubs/server_pubs.html
http://blog.pmail.idv.tw/index.php?load=read&id=511
http://blog.lyhdev.com/2009/09/vmware-server-201-linux.html

2011年6月6日 星期一

eclipse連到android手機

參考這篇
http://developer.android.com/guide/developing/device.html

以及, 將手機的 usb除錯功能 開啟,就可以將 eclipse 撰寫的內容直接送到 手機裡執行囉!

android的VideoView

哈~~ 可以播放影片了~~ 原來,在 layout 這裡,若是使用 VideoView 的話,大部份都依原本的規劃來處理即可,但是卻不能加入 background ,加入這個設定的話,就會看到 background ,但沒有內容。