Chinaunix

标题: Install Minimum X11 on ubuntu jeos in a VM [打印本页]

作者: bigluo    时间: 2009-08-14 01:15
标题: Install Minimum X11 on ubuntu jeos in a VM
It looks like there is no need for installing vm-tools on any ubuntu distributions. Ubundu already incoperates drivers for a VMWare virtual machine. Therefore, for jeos or ubuntu server in a vm, a lightwight xorg system can be configured very easilly.
  • apt-get install xorg xdm fluxbox
  • edit /etc/X11/xorg.conf to say as follows, where "Modes" should be referenced to your most favorite screen resolution.
    # xorg.conf (X.Org X Window System server configuration file)
    #
    # This file was generated by dexconf, the Debian X Configuration tool, using
    # values from the debconf database.
    #
    # Edit this file with caution, and see the xorg.conf manual page.
    # (Type "man xorg.conf" at the shell prompt.)
    #
    # This file is automatically updated on xserver-xorg package upgrades *only*
    # if it has not been modified since the last upgrade of the xserver-xorg
    # package.
    #
    # Note that some configuration settings that could be done previously
    # in this file, now are automatically configured by the server and settings
    # here are ignored.
    #
    # If you have edited this file but would like it to be automatically updated
    # again, run the following command:
    #   sudo dpkg-reconfigure -phigh xserver-xorg
    Section "Device"
        Identifier  "VMware SVGA"
        Driver      "vmware"
    EndSection
    Section "Screen"
        Identifier    "Default Screen"
        Device      "VMware SVGA"
        Monitor     "vmware"
        # Don't specify DefaultColorDepth unless you know what you're
        # doing. It will override the driver's preferences which can
        # cause the X server not to run if the host doesn't support the
        # depth.
        Subsection "Display"
            # VGA mode: better left untouched
            Depth       4
            Modes       "640x480"
            ViewPort    0 0
        EndSubsection
        Subsection "Display"
            Depth       8
            Modes       "800x600"
            ViewPort    0 0
        EndSubsection
        Subsection "Display"
            Depth       15
            Modes       "800x600"
            ViewPort    0 0
        EndSubsection
        Subsection "Display"
            Depth       16
            Modes       "800x600"
            ViewPort    0 0
        EndSubsection
        Subsection "Display"
            Depth       24
            Modes       "800x600"
            ViewPort    0 0
        EndSubsection
    EndSection
    Section "InputDevice"
      Driver "vmmouse"
      Identifier "VMware Mouse"
      Option "Buttons" "5"
      Option "Device" "/dev/input/mice"
      Option "Protocol" "IMPS/2"
      Option "ZAxisMapping" "4 5"
      Option "Emulate3Buttons" "true"
    EndSection
    Section "Monitor"
        Identifier      "vmware"
        VendorName      "VMware, Inc"
        HorizSync       1-10000
        VertRefresh     1-10000
    EndSection


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8059/showart_2026773.html




    欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2