創作內容

3 GP

[Linux][Ubuntu / CentOS] 安裝Guest Additions 光碟

作者:game2002│2011-04-13 12:19:02│巴幣:6│人氣:5684
最近開始嘗試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. 版權所有,保留一切權利

相關創作

同標籤作品搜尋:Linux|linux|Ubuntu|guest additions

留言共 2 篇留言

別動肝火
先推晚點來看

04-14 16:56

game2002
tks~04-20 03:06
大俠
感謝分享
在安裝上一直卡住
原來我少了安裝kernel-devel 與 gcc 套件這個步驟!

08-31 00:22

我要留言提醒:您尚未登入,請先登入再留言

3喜歡★gameculb2002 可決定是否刪除您的留言,請勿發表違反站規文字。

前一篇:[Linux][Fedo...

追蹤私訊切換新版閱覽

作品資料夾

a86189642祝福
看到的人會變得幸福哦!看更多我要大聲說2小時前


face基於日前微軟官方表示 Internet Explorer 不再支援新的網路標準,可能無法使用新的應用程式來呈現網站內容,在瀏覽器支援度及網站安全性的雙重考量下,為了讓巴友們有更好的使用體驗,巴哈姆特即將於 2019年9月2日 停止支援 Internet Explorer 瀏覽器的頁面呈現和功能。
屆時建議您使用下述瀏覽器來瀏覽巴哈姆特:
。Google Chrome(推薦)
。Mozilla Firefox
。Microsoft Edge(Windows10以上的作業系統版本才可使用)

face我們了解您不想看到廣告的心情⋯ 若您願意支持巴哈姆特永續經營,請將 gamer.com.tw 加入廣告阻擋工具的白名單中,謝謝 !【教學】