有時候需要執行跨平台的工作,不停地切換系統便成了開發人員的夢魘,
因此利用Sun所發佈的VirtualBox可減少切換系統的等待時間、同時處理跨平台的事務,
然而VirtualBox還是得切換──滑鼠,甚至還得手動調整解析度;
這時若能安裝VirtualBox所提供的客端額外功能(Additions),便可免除調整解析度與不停切換滑鼠的困擾!

安裝方法:
掛載VirtualBox後,進入虛擬的光碟機,打開終端機,輸入指令與管理者密碼:
$ bash autorun.sh



執行結果:
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.2.4 Guest Additions for Linux installation..............................................................................................................................................................................................................................
VirtualBox 2.2.4 Guest Additions installation
Please install GNU make.
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.26-2-686
Please install the GNU compiler.
This system does not seem to have support for OpenGL direct rendering.
VirtualBox requires Linux 2.6.27 or later for this.  Please see the log
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you still see this message.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.



其中的兩行訊息:
Please install GNU make.
Please install the build and header files for your current Linux kernel.

是告訴你要去Synaptic套件管理程式安裝以下三個套件(請使用"搜尋"功能):
1. make
2. build-essential
3. linux-headers

唯一要特別注意的是,以上的套件要跟你的Linux Kernel version相同!
舉例來說,我的Kernel版本為2.6.26-2-686,所以我必須安裝:
linux-headers-2.6.26-2-686



至於訊息中提到的OpenGL:
This system does not seem to have support for OpenGL direct rendering.
由於我本身的系統還不到VirtualBox的要求:
VirtualBox requires Linux 2.6.27 or later for this.
加上安裝過程沒問題,所以這訊息我就大膽的忽略嚕~~  :p

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 justicer 的頭像
    justicer

    When you pray, move your feet.

    justicer 發表在 痞客邦 留言(0) 人氣()