3 GP
[Linux][Ubuntu / CentOS] 安裝Guest Additions 光碟
作者:game2002│2011-04-13 12:19:02│巴幣:6│人氣:5687
最近開始嘗試Ubuntu,由於是用VirtualBox先安裝來玩玩,
所以起初的視窗非常小,解析度最多到800x600,
為了讓VirtualBox的顯示畫面可以加大,於是使用Guest Additions。
作業環境:
Host :Fedora14
Guest :Ubuntu10.10
虛擬軟體為VirtualBox
Step1:
開啟安裝於VirtualBox上的Ubuntu,然後點選虛擬機器的裝置選項,
並且點擊安裝Guest Additions選項。點擊後,桌面上應該會出現光碟機掛載虛擬光碟
VBOXADDITIONS的顯示。
Step2:
開啟終端機,輸入以下指令:
hhh@ubuntu:~$ cd /media/cdrom
hhh@ubuntu:/media/cdrom$ ls -l
總計 35046
dr-xr-xr-x 3 root root 2048 2011-02-18 01:05 32Bit
dr-xr-xr-x 2 root root 2048 2011-02-18 01:05 64Bit
-r-xr-xr-x 1 root root 647 2011-01-19 20:42 AUTORUN.INF
-r-xr-xr-x 1 root root 4878 2011-02-18 00:58 autorun.sh
-r-xr-xr-x 1 root root 7751115 2011-02-18 00:59 VBoxLinuxAdditions.run
-r-xr-xr-x 1 root root 12404736 2011-02-18 01:03 VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 root root 9266856 2011-02-18 00:52 VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 root root 278832 2011-02-18 00:46 VBoxWindowsAdditions.exe
-r-xr-xr-x 1 root root 6174088 2011-02-18 00:47 VBoxWindowsAdditions-x86.exe
hhh@ubuntu:/media/cdrom$ sudo ./VBoxLinuxAdditions.run
[sudo] password for hhh:
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.4 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
Building the main Guest Additions module ...done.
Building the shared folder support module ...done.
Building the OpenGL support module ...done.
Doing non-kernel setup of the Guest Additions ...done.
Starting the VirtualBox Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.6 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.
Installing graphics libraries and desktop services components ...done.
Step3:
看見最後一行的...done之後,就完成了,重新啟動Ubuntu,
就可以調整解析度到1024x768,甚至是以上的解析度了。
----------------------------------------------------------------------------------------------------------------------------
如果是CentOS的使用者,安裝步驟會與 ubuntu 不太一樣。
作業環境:
Host :Fedora14
Guest :CentOS 5.5
虛擬軟體為VirtualBox
Step1:
開啟安裝於VirtualBox上的 CentOS ,然後點選虛擬機器的裝置選項,
並且點擊 安裝Guest Additions 選項。點擊後,桌面上應該會出現光碟機掛載虛擬光碟
VBOXADDITIONS 的顯示。
Step2:安裝kernel-devel 與 gcc 套件
開啟終端機,輸入以下指令:
[root@localhost ~]# yum install kernel-devel
[root@localhost ~]# yum install gcc
Step3:
[root@localhost ~]# cd /media/VBOXADDITIONS_4.0.4_70112/
[root@localhost VBOXADDITIONS_4.0.4_70112]# ls -l
總計 35046
dr-xr-xr-x 3 hhh root 2048 2月 18 01:05 32Bit
dr-xr-xr-x 2 hhh root 2048 2月 18 01:05 64Bit
-r-xr-xr-x 1 hhh root 647 1月 19 20:42 AUTORUN.INF
-r-xr-xr-x 1 hhh root 4878 2月 18 00:58 autorun.sh
-r-xr-xr-x 1 hhh root 7751115 2月 18 00:59 VBoxLinuxAdditions.run
-r-xr-xr-x 1 hhh root 12404736 2月 18 01:03 VBoxSolarisAdditions.pkg
-r-xr-xr-x 1 hhh root 9266856 2月 18 00:52 VBoxWindowsAdditions-amd64.exe
-r-xr-xr-x 1 hhh root 278832 2月 18 00:46 VBoxWindowsAdditions.exe
-r-xr-xr-x 1 hhh root 6174088 2月 18 00:47 VBoxWindowsAdditions-x86.exe
[root@localhost VBOXADDITIONS_4.0.4_70112]# sh VBoxLinuxAdditions.run
完成後,重新啟動 CentOS ,
就可以調整解析度到1024x768的解析度了。
引用網址:https://home.gamer.com.tw/TrackBack.php?sn=1281316
All rights reserved. 版權所有,保留一切權利