VMware7.0下centOS5.4分辨率的设置

来源:互联网 发布:打车软件悄然涨价 编辑:程序博客网 时间:2024/04/26 02:58

  在虚拟机下安装完centOS,整个秀气的桌面看着真不舒服。所以,修改一下分辨率。在windows下,我们可以在空白处点击右键,选择“属性”,进行分辨率的设置。当然,在有些unix的版本中我们也可以这样设置,比如solaris10。

  在centOS中设置分辨率,一般需要配置xorg.conf文件。在虚拟机下我们的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      "vmware"
EndSection

Section "Screen"
    Identifier "Screen0"
    Device     "Videocard0"
    DefaultDepth     24
    SubSection "Display"
        Viewport   0 0
        Depth     24
    EndSubSection
EndSection

  看着了没,我们的驱动程序和视频卡都是虚拟机的默认配置。当然,就像某些文章所说的,我们可以在Depth下加入一行:

Mode 1024*768。保存后,重启x window,有时候根本不管用,我也不知道他们怎么实现的。

 另一种普遍的方法是,查看属性。也就是系统——管理——显示,打开“显示设置”对话框,然后点击“硬件”选项卡,在“显示器类型”后,点击“配置”按钮,根据你的需要选择“Generic CRT Display“、"Generic LCD Display".我选择的是后者,然后点击”三角号“变成向下的箭头,选择“LCD Panel 1024*768”,然后确定。关闭“显示设置”对话框。

  在这里说明一下,设置好后,有的linux版本需要重启一下x window。

原创粉丝点击