关于在VMWare中配XFree86的Demo
发表于:2007-06-09来源:作者:点击数:
标签:
1只是为了使用XFree86不需要安装vmware-tool,直接使用我以下的配置文件就可以了. 注意:在我的配置里: DefaultDepth24 Depth24 色深不能超过Host色深(最好一样).因为我Host的颜色 质量 为32位 2.如不需要与Host时间同步,无须Vmware-tool,出现vmtoolsnotinstal
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
zorrozolo 回复于:2003-06-13 10:04:04
|
为什么不装vmware-tool,有特殊原因吗,还是只是一种方法?
|
红袖添香 回复于:2003-06-13 12:41:09
|
...
有没有谁在在笔记本配置成功过VMware的XFree86?
(好象在本本上全屏都有问题...)
|
seadog 回复于:2003-06-13 12:58:16
|
不安装vmware-tool主要考虑以下方面:
1, 运行X-windows,在XFree86 4.3 以上已经支持VMware driver
2, 让虚拟机与Host时间同步,本人不需要此功能(可以从ports 安装vmware guestd)
3, vmware-tool在freebsd 4下编译,我主要使用5-current, 并从定制内核中去掉了FreeBSD4兼容选项
4,vmware 版本不同,其带的vmware-tool也不同,谁着FreeBSD版本更新,其支持的FreeBSD有限(虽然低版本可以在高版本上运行,但VMware不保证这一点)
|
qjlemon 回复于:2003-06-13 12:59:27
|
[quote:c05187f2fe="红袖添香"]...
有没有谁在在笔记本配置成功过VMware的XFree86?
(好象在本本上全屏都有问题...)[/quote:c05187f2fe] 我在移动PC上配成功过,方法是一样的,配不好的话可能还是跟具体的机器有关吧?
|
红袖添香 回复于:2003-06-13 13:04:42
|
[quote:6a3a56f08e="qjlemon"] 我在移动PC上配成功过,方法是一样的,配不好的话可能还是跟具体的机器有关吧?[/quote:6a3a56f08e]
移动 PC 是怎样的? :roll:
大多数笔记本都无法全屏,而是用 stretch 方式来达到的。。。
|
seadog 回复于:2003-06-13 13:05:07
|
[quote:263de470f5="红袖添香"]...
有没有谁在在笔记本配置成功过VMware的XFree86?
(好象在本本上全屏都有问题...)[/quote:263de470f5]
以下是猜想(我没有本本 :) )
本本上文本模式全屏由于液晶分辨率固定会变小,
图形模式调整为Host相同的分辨率分辨率或许能行?
|
qjlemon 回复于:2003-06-13 13:18:39
|
[quote:ffe0b07661="红袖添香"]
移动 PC 是怎样的[/quote:ffe0b07661] 移动PC就是专为我这种穷人设计的笔记本啦!偷工减料的地方很多,但还是液晶的显示器。我想笔记本上配不好全屏,和液晶显示器关系极大,因为液晶显示器根本不存在CRT的所谓频率概念(对否?我猜的)
|
qjlemon 回复于:2003-06-13 13:21:15
|
[quote:ce9917b7b9="红袖添香"]
而是用 stretch 方式来达到的。。。[/quote:ce9917b7b9]“stretch 方式”是什么东东喔? :oops:
|
红袖添香 回复于:2003-06-13 13:37:31
|
[quote:2b1f6c836f="qjlemon"]皊tretch 方式”是什么东东喔? :oops:[/quote:2b1f6c836f]
因为笔记本显示屏是液晶的,现在一般是叫什么 active matrix 什么的,具体我也不清楚,但是知道,它们都是固定分辨率的,没有像台式机那样可以有多种可调,所以呢你买的笔记本都会注明它是 1024x768,还是1152x960 等等。这样就有一个问题,比如这样的机器要运行 DOS 游戏时,使用怎样的分辨率,因为 DOS 下的游戏很多都是 640x480 的,在普通显示器上,可以自动调节为这个分辨率。而在液晶屏上,要么就是缩小为当中一小块,要么就是扩大到全屏(stretch),但是图像就模糊了。。。
笔记本上真正的 FreeBSD 和 VMware 里的 FreeBSD 的全屏时的终端看起来不一样,后者就象是在 DOS 模式下运行游戏,没有满屏,不知这样的方式,配不配得出来 XFree86,反正我是死活弄不出来。而前者只要有 XF4.3 就行了。
|
qjlemon 回复于:2003-06-13 13:47:30
|
[quote:b59b891637="红袖添香"]
因为笔记本显示屏是液晶的,现在一般是叫什么 active matrix 什么的,具体我也不清楚,但是知道,它们都是固定分辨率的,没有像台式机那样可以有多种可调,所以呢你买的笔记本都会注明它是 1024x768,还是115..........[/quote:b59b891637] 啊解释得真清楚!长见识了 :P ! 不仅是笔记本有这问题,我现在用的这个实达显示器也这样,Vmware里出不来全屏,不过vm 4.0里多出来一个monitor设备,可以在里面选分辨率,不知能否解决这个问题?
|
qjlemon 回复于:2003-06-13 13:49:45
|
啊我记错了,不是能设分辨率,而是调颜色深度,而且也不是vm 4.0,而是vm gsx server,呵呵,真是错的一塌湖涂。。 :oops: :oops:
|
albeta 回复于:2003-06-16 10:17:37
|
OpenBSD,有人配成功没有呢?我配置后,没报别的错,就是起不了。界面闪了一下,就退出了。
|
gsfxm 回复于:2003-06-16 13:57:22
|
有人知道如何平移整个xfree86的屏幕区域吗,我的液晶屏,屏幕出来后
靠右边消失了一点点,当然调显示器参数可以,但是有软件解决的吗
谢谢
|
Macolex 回复于:2004-12-30 14:57:02
|
时间过得真快
现在大家已经不用Xfree86了
|
kinux 回复于:2004-12-30 15:02:36
|
:shock: 怎么连红袖时候的帖子都找回来..
蛮怀念的喔.. :mrgreen:
|
原文转自:http://www.ltesting.net