免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5271 | 回复: 15
打印 上一主题 下一主题

[VMware] 关于在VMWare中配XFree86的Demo [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-06-12 17:21 |只看该作者 |倒序浏览
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 "rotocol" "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

论坛徽章:
0
2 [报告]
发表于 2003-06-13 10:04 |只看该作者

关于在VMWare中配XFree86的Demo

为什么不装vmware-tool,有特殊原因吗,还是只是一种方法?

论坛徽章:
0
3 [报告]
发表于 2003-06-13 12:41 |只看该作者

关于在VMWare中配XFree86的Demo

...

有没有谁在在笔记本配置成功过VMware的XFree86?

(好象在本本上全屏都有问题...)

论坛徽章:
0
4 [报告]
发表于 2003-06-13 12:58 |只看该作者

关于在VMWare中配XFree86的Demo

不安装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不保证这一点)

论坛徽章:
0
5 [报告]
发表于 2003-06-13 12:59 |只看该作者

关于在VMWare中配XFree86的Demo

原帖由 "红袖添香" 发表:
...

有没有谁在在笔记本配置成功过VMware的XFree86?

(好象在本本上全屏都有问题...)
    我在移动PC上配成功过,方法是一样的,配不好的话可能还是跟具体的机器有关吧?

论坛徽章:
0
6 [报告]
发表于 2003-06-13 13:04 |只看该作者

关于在VMWare中配XFree86的Demo

[quote]原帖由 "qjlemon"]    我在移动PC上配成功过,方法是一样的,配不好的话可能还是跟具体的机器有关吧?[/quote 发表:
   

移动 PC 是怎样的?  

大多数笔记本都无法全屏,而是用 stretch 方式来达到的。。。

论坛徽章:
0
7 [报告]
发表于 2003-06-13 13:05 |只看该作者

关于在VMWare中配XFree86的Demo

原帖由 "红袖添香" 发表:
...

有没有谁在在笔记本配置成功过VMware的XFree86?

(好象在本本上全屏都有问题...)
   

以下是猜想(我没有本本
本本上文本模式全屏由于液晶分辨率固定会变小,
图形模式调整为Host相同的分辨率分辨率或许能行?

论坛徽章:
0
8 [报告]
发表于 2003-06-13 13:18 |只看该作者

关于在VMWare中配XFree86的Demo

原帖由 "红袖添香" 发表:
   

移动 PC 是怎样的
    移动PC就是专为我这种穷人设计的笔记本啦!偷工减料的地方很多,但还是液晶的显示器。我想笔记本上配不好全屏,和液晶显示器关系极大,因为液晶显示器根本不存在CRT的所谓频率概念(对否?我猜的)

论坛徽章:
0
9 [报告]
发表于 2003-06-13 13:21 |只看该作者

关于在VMWare中配XFree86的Demo

原帖由 "红袖添香" 发表:
   

而是用 stretch 方式来达到的。。。
“stretch 方式”是什么东东喔?

论坛徽章:
0
10 [报告]
发表于 2003-06-13 13:37 |只看该作者

关于在VMWare中配XFree86的Demo

[quote]原帖由 "qjlemon"]皊tretch 方式”是什么东东喔? [/quote 发表:
   

因为笔记本显示屏是液晶的,现在一般是叫什么 active matrix 什么的,具体我也不清楚,但是知道,它们都是固定分辨率的,没有像台式机那样可以有多种可调,所以呢你买的笔记本都会注明它是 1024x768,还是1152x960 等等。这样就有一个问题,比如这样的机器要运行 DOS 游戏时,使用怎样的分辨率,因为 DOS 下的游戏很多都是 640x480 的,在普通显示器上,可以自动调节为这个分辨率。而在液晶屏上,要么就是缩小为当中一小块,要么就是扩大到全屏(stretch),但是图像就模糊了。。。

笔记本上真正的 FreeBSD 和 VMware 里的 FreeBSD 的全屏时的终端看起来不一样,后者就象是在 DOS 模式下运行游戏,没有满屏,不知这样的方式,配不配得出来 XFree86,反正我是死活弄不出来。而前者只要有 XF4.3 就行了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP