在 Sun Virtualbox 虚拟机软件(任何版本)下,给虚拟的 class="dash6b63_6587__Char" style=" text-decoration: none;"> Ubuntu
Linux(操作同样适用于其他Linux发行版本,但可能会出现不同的问题)安装增强包: class="dash6b63_6587__Char" style=" text-decoration: none;"> VBoxGuestAdditions
一. 下载 Sun Virtualbox 增强包
无论你的虚拟机软件是Windows下的,还是Linux下的,无论你用的是哪个版本,我都强烈建议大家下载下面的这个增强包,因为旧版本的增强包,对于目前最新的 class="dash6b63_6587__Char" style=" text-decoration: none;">linux class="dash6b63_6587__Char" style="
text-decoration: none;">系统支持都不好,甚至会出现不支持而导致不能进入图形界面。因此建议大家自己单独下载这个 class="dash6b63_6587__Char">增强包:VBoxGuestAdditions.iso,
官方下载地址:http://download.virtualbox.org/virtualbox/3.0.4/VBoxGuestAdditions_3.0.4.iso
二. 加载 VBoxGuestAdditions.iso
1. 打开 Virtualbox,找到你的ubuntu虚拟机,点击它。然后从右边,点击: class="dash6b63_6587__Char" style=" text-decoration: none;"> CD/DVD-ROM
2. 打开如下界面。选中:虚拟光盘,然后点击下图框框里面的那个小图标:
3. 弹出”光盘配置窗口“,点击:”注册“
4. 选中刚才你下载的那个: class="dash6b63_6587__Char" style=" text-decoration: none;"> VBoxGuestAdditions.iso
5. 点击:Open,就能返回”虚拟光盘配置界面了“,然后点击: 选择
6. 这样就加载好了,返回了最初的界面,看图,点 class="dash6b63_6587__Char" style=" text-decoration: none;">2 class="dash6b63_6587__Char" style="
text-decoration: none;">次”确定“,就行了
三.开始安装
1. 启动你的 ubuntu 虚拟机,进入ubuntu 系统,可以看到桌面上有个光盘图标了,不用管它的。看图:
2. 从 Application(应用程序)—— Accessories(附件)里面,打开:Terminal (终端)
3. 打开了终端窗口,我们真正的安装过程,都是在这里完成的。
(1) 输入: cd /media/cdrom0 回车(注意最后是数字零)
(2) 输入: ls 回车
(3) 输入: sudo sh ./VBoxLinuxAdditions-x86.iso 回车
回车后要你的帐号密码,输入就是了,密码是根本不显示出来的,不要以为没输入上,注意别输入错了就行了。
注意:我是安装的 I386(32位)的Ubuntu,因此运行的是 x86.iso,如果你是64的,就运行 -amd64.iso
看图:
4. 开始自动安装了,这个安装过程,会检测你 class="dash6b63_6587__Char" style=" text-decoration: none;">LInux class="dash6b63_6587__Char" style="
text-decoration: none;">系统自带的一些软件包是否齐全, class="dash6b63_6587__Char" style=" text-decoration: none;">Ubuntu
Linux 9.04,是都齐全的,所以完全没问题。至于其他版本,如果缺少东西,就会出现错误提示的。
5. 看上面的图,最后提示: class="dash6b63_6587__Char" style=" text-decoration: none;"> Successfully
installed the virtualbox Guest Additions,就是成功了,你可以关闭这个终端窗口了,然后重启 class="dash6b63_6587__Char" style=" text-decoration: none;">Ubuntu class="dash6b63_6587__Char" style="
text-decoration: none;">,就行了。
6.分辨率
vi /etc/X11/xorg.conf
加入 “Modes”
Section "Screen"
SubSection "Display"
Depth 24
Modes "1750x1090" "1600x1200"
"1600x1024" "1440x900" "1400x1050" "1280x1024"
"1280x960" "1280x800" "1152x864" "1152x768"
"1024x768" "800x600" "640x480"
EndSubSection
Device "Device[0]"
Identifier "Screen[0]"
Monitor "Monitor[0]"
EndSection
# VirtualBox
generated configuration file
# based
on /etc/X11/xorg.conf.
# Xorg
configuration created by pyxf86config
# Section
"ServerLayout"
#
Identifier "Default Layout"
#
Screen 0 "Screen0" 0 0
#
InputDevice "Keyboard0" "CoreKeyboard"
# EndSection
# Section
"InputDevice"
#
Identifier "Keyboard0"
#
Driver "kbd"
#
Option "XkbModel" "pc105"
#
Option "XkbLayout" "us"
# EndSection
# Section
"Device"
#
Identifier "Videocard0"
#
Driver "vesa"
# EndSection
# Section
"Screen"
#
Identifier "Screen0"
#
Device "Videocard0"
#
DefaultDepth 24
#
SubSection "Display"
#
Viewport 0 0
#
Depth 24
#
EndSubSection
# EndSection
Section
"InputDevice"
Identifier
"Keyboard[0]"
Driver
"kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"
Option
"Protocol" "Standard"
Option
"CoreKeyboard"
EndSection
Section
"InputDevice"
Identifier
"Mouse[1]"
Driver
"vboxmouse"
Option
"Buttons" "9"
Option
"Device" "/dev/input/mice"
Option
"Name" "VirtualBox Mouse"
Option
"Protocol" "explorerps/2"
Option
"Vendor" "Sun Microsystems Inc"
Option
"ZAxisMapping" "4 5"
Option
"CorePointer"
EndSection
Section
"ServerLayout"
Identifier
"Layout[all]"
InputDevice
"Keyboard[0]" "CoreKeyboard"
InputDevice
"Mouse[1]" "CorePointer"
Option
"Clone" "off"
Option
"Xinerama" "off"
Screen
"Screen[0]"
EndSection
Section
"Monitor"
Identifier
"Monitor[0]"
ModelName
"VirtualBox Virtual Output"
VendorName
"Sun Microsystems Inc"
EndSection
Section
"Device"
BoardName
"VirtualBox Graphics"
Driver
"vboxvideo"
Identifier
"Device[0]"
VendorName
"Sun Microsystems Inc"
EndSection
Section
"Screen"
SubSection
"Display"
Depth 24
Modes "1750x1090"
"1600x1200" "1600x1024" "1440x900" "1400x1050"
"1280x1024" "1280x960" "1280x800" "1152x864"
"1152x768" "1024x768" "800x600" "640x480"
EndSubSection
Device
"Device[0]"
Identifier
"Screen[0]"
Monitor
"Monitor[0]"
EndSection
没有评论:
发表评论