Took a photo from my seat.
Category: Working
工作工作
- 
		
		Ubuntu 12.04 on T410Last week, I need to encrypt my hard disk. It is a chance to move my environment to Linux. So I installed Ubuntu 12.04 LTS (Precise Pangolin) amd64 on my T410. The installation process is very smooth and the LUKS(Linux Unified Key Setup) works. But some tools for IT infrastructure/Collaborations are still 32-bit and not fully support Ubuntu 12.04 64-bit yet. It took me several days to fix the library dependencies. It’s not easy. Wish the official support will be release sooner this year. 
- 
		
		VMWare Player – 延長 Boot Screen 的顯示時間VMWare Player 沒有方便的 UI 設定 BIOS 開機時要用哪個裝置像硬碟還是光碟開機,而 VMWare Workstation 有。 開機時候也來不及按 ESC 進入 Boot menu 來選要開機的裝置,實在是太快。解決方法是直接編輯虛擬機器的 .vmx 檔案,加上夠長的 Boot Screen 顯示時間。 把下面這行加入第二行即可: 
 bios.bootdelay = 20000
 
- 
		
		執行遠端 X Windows 程式 – 設定工作上有時候需要,之前有設定過但是設完就會忘記,主要是寫下來讓自己記得。 工具: - Cygwin/X(所以桌面環境是 XP 或 Windows 7 都可以)
- PuTTY(完全不能省略的東西)
 遠端系統為跑 Bash shell 的 Linux,可以 SSH 進去。基本上的使用案例就是: 執行XWin Server,執行 PuTTY,用 SSH 連進去,然後只要打 gedit & 指令,編輯器就會跑到你的桌面上。 本地端裝好 Cygwin/X 後,會有 XWin Server shortcut,執行後會有個 xterm 跑出來,右下角會有 Cygwin/X Server tray icon。不需要 xterm,所以放個 .startxwinrc 檔案在 $HOME 下面,內容為: #Add remote server IP to ACL xhost +192.168.0.1 & 遠端則是在自己的 $HOME 下面有 .bashrc,加入下面這段: #Automatically set the DISPLAY environment variable in SSH connection if [ ! $DISPLAY ] ; then if [ "$SSH_CLIENT" ] ; then export DISPLAY=`echo $SSH_CLIENT|cut -f1 -d\ `:0.0 fi fi打完收工。 

