电脑技术学习

在VMWare中配XFree86的Demo

dn001
1 只是为了使用XFree86不需要安装vmware-tool, 直接使用我以下的配置文件就可以了.
注意:在我的配置里:
DefaultDepth 24
Depth 24
色深不能超过Host色深(最好一样). 因为我Host的颜色质量为32位

2. 如不需要与Host时间同步,无须Vmware-tool, 出现vmtools not install 可以不予理会.

3 配置文件:
# I have use this configuration file about one year. It ok in all my computers.
# Host info: Windows 2000, Windows XP, Windows Server 2003 Enterprise Evalution.
# VMware Version: 4.0 workstation, 3.0-3.2 workstation, GSX Server 2.0-2.5
# FreeBSD Version: 5.0 Release - 5.1-Current
# XFree86 Version: 4.3 build from port
# Not need to install Vmware tool, the XFree86 4.1-4.3 support the vmware driver.

# Author: Seadog
# Email: qinqinghai@163.com

**********************************************************************
# Module section -- this section is used to specify
# which dynamically loadable modules to load.
# **********************************************************************
#
Section "Module"

# This loads the DBE extension module.

Load "dbe" # Double buffer extension
# SubSection "extmod"
# Option "omit xfree86-dga" # don't initialise the DGA extension
# EndSubSection
Load "type1"
Load "speedo"
# Load "freetype"
# Load "xtt"
Load "glx"
Load "dri"

EndSection

# **********************************************************************
# Files section. This allows default font and rgb paths to be set
# **********************************************************************

Section "Files"

# The location of the RGB database. Note, this is the name of the
# file minus the extension (like ".txt" or ".db"). There is normally
# no need to change the default.

RgbPath "/usr/X11R6/lib/X11/rgb"

# Multiple FontPath entrIEs are allowed (which are concatenated together),
# as well as specifying multiple comma-separated entries in one FontPath
# command (or a combination of both methods)
#
# If you don't have a floating point coprocessor and eMacs, Mosaic or other
# programs take long to start up, try moving the Type1 and Speedo Directory
# to the end of this list (or comment them out).
#

FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
# FontPath "/usr/X11R6/lib/X11/fonts/TrueType/"
# FontPath "/usr/X11R6/lib/X11/fonts/freefont/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"

# The module search path. The default path is shown here.

# ModulePath "/usr/X11R6/lib/modules"

EndSection

# **********************************************************************
# Server flags section.
# **********************************************************************

Section "ServerFlags"

EndSection

# **********************************************************************
# Input devices
# **********************************************************************

# **********************************************************************
# Core keyboard's InputDevice section
# **********************************************************************

Section "InputDevice"

Identifier "VMware-Keyboard"
Driver "Keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"

EndSection


# **********************************************************************
# Core Pointer's InputDevice section
# **********************************************************************

Section "InputDevice"

# Identifier and driver

Identifier "VMware-Mouse"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/sysmouse"
Option "ChordMiddle"

EndSection


# **********************************************************************
# Monitor section
# **********************************************************************

# Any number of monitor sections may be present

Section "Monitor"

Identifier "VMWare Virtual Monitor"
HorizSync 31.5 - 57.0
VertRefresh 50-100

EndSection


# **********************************************************************
# Graphics device section
# **********************************************************************

# Any number of graphics device sections may be present

Section "Device"
Identifier "VMWare Virtual Card"
Driver "vmware"
#VideoRam 4096
# Insert Clocks lines here if appropriate
EndSection


# **********************************************************************
# Screen sections
# **********************************************************************

# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "VMware Screen"
Device "VMWare Virtual Card"
Monitor "VMware Virtual Monitor"
DefaultDepth 24

Subsection "Display"
Depth 24
Modes "1024x768"
ViewPort 0 0
EndSubsection
EndSection

# **********************************************************************
# ServerLayout sections.
# **********************************************************************

# Any number of ServerLayout sections may be present. Each describes
# the way multiple screens are organised. A specific ServerLayout
# section may be specified from the X server command line with the
# "-layout" option. In the absence of this, the first section is used.
# When now ServerLayout section is present, the first Screen section
# is used alone.

Section "ServerLayout"

Identifier "Simple Layout"
Screen "VMware Screen"
InputDevice "VMware-Mouse" "CorePointer"
InputDevice "VMware-Keyboard" "CoreKeyboard"

EndSection

# Section "DRI"
# Mode 0666
# EndSection

标签: