LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 5545|回复: 16

黑洞笔记:在VMWARE中安装X-WINDOW(不用安装VMTOOL)

[复制链接]
发表于 2004-3-28 16:07:47 | 显示全部楼层 |阅读模式
在VMWARE中安装X-WINDOW(不用安装VMTOOL)
感谢suntiny, joyozuo
当前环境:操作系统WIN2000 SERVER
P4 1.8A,
845G主板
集成显卡
FREEBSD 5.0
我安装BSD的时候,是MINIMAL安装

一.        安装XFREE86
我通过sysinstall来进行安装的(觉得速度好慢),也可以直接安装
现在讲通过sysinstal安装:
①进入SYSINSTALL
②选择CONFIGURE
③选择PACKAGES
④选择安装介质,我是光盘
⑤选择你想安装的包,最底下有很多X11的选项,这就自己看着办选吧

二.简单配置一下
①进入SYSINSTALL
②选择CONFIGURE
③选择XFREE86
④接着就可以看到四个选项
  XF86CFG:这是图形界面的配置工具
  XF86CONFIG:这是基于脚本的,有点烦
  XF86CFG—TEXTMODE:这个也是基于图形的,我用这个配置的
⑤接着就是一大堆的选项,你就安装自己的喜好和实际情况选吧,我选择的桌面是KDE

三.这时/ROOT下会有一个文件XF86Config.new,把它改为XF86Config并copy到/etc/X11(或/usr/X11R6/lib/X11/)下,再运行startx,嘿嘿,这时就可以看到图形界面了,但效果不是很好,再接再历
CP XF86CONFIG.NEW /ETC/X11/XF86CONFIG

四.注意配置中那两个“VMWARE”
直接用ee 编译 /usr/ X11/XF86Config
如下:

##file: /usr/ X11/XF86Config
Section "ServerLayout"
Identifier "XFree86 Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/X11R6/lib/X11/fonts/myfonts"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

Section "Module"
Load "xtt"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "rotocol" "auto"
Option "Device" "/dev/sysmouse"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
Horizsync 31.5 -48.5
VertRefresh 50 - 70
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False"
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
Identifier "Card0"
Driver "vmware"
#VendorName "VMWare Inc"
#BoardName "Unknown Board"
#BusID "CI:0:15:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 16
SubSection "Display"
Depth 1
EndSubSection
SubSection "Display"
Depth 4
EndSubSection
SubSection "Display"
Depth 8
EndSubSection
SubSection "Display"
Depth 15
EndSubSection
SubSection "Display"
Depth 16
Modes "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1024x768"
EndSubSection
EndSection

##注意,vmware不能用24位色,否则会不动启动!
然后在~/ 建.xinitrc文件内容如下:
当你用startx来启动的时候就自动进入kde了
##注意:要在 Section "Device" 中只保留
Identifier "Card0"
Driver "vmware"
这两项就行了,其他的注掉,不要用,同样,真实的环境配X如果不能启动可以同样把其他的选项注掉,就可以了

5.嘿嘿,接着就STARTX吧,好漂亮啊,看看左下角,我可真没有装VMTOOL啊

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2004-3-28 16:22:52 | 显示全部楼层
vmware可以24位色
 楼主| 发表于 2004-3-28 16:36:14 | 显示全部楼层
俺没有试过,哪位朋友如果要装也顺便试试啊
嘿嘿
发表于 2004-3-28 20:07:29 | 显示全部楼层
我4.9BSD从来就是24色

5.0以下的不装VMTOOLS好象不行吧
 楼主| 发表于 2004-3-28 21:20:45 | 显示全部楼层
事实代表一切吗
发表于 2004-11-29 22:01:32 | 显示全部楼层
我的事freebsd5.3不知道该怎么做,装了vmware-tools
怎么配置都进不了xwindow,每次都是快进去了又给弹出来
发表于 2004-12-1 16:59:36 | 显示全部楼层
FB53中还是可以装XFree86,不装xorg
发表于 2004-12-15 12:36:35 | 显示全部楼层
最初由 allen1970 发表
FB53中还是可以装XFree86,不装xorg

怎么搞定它?
我的不能配置Xorg。输入:Xorg -configure后,vmware就没有反应了。不知道怎么搞得。安装过程都很正常的。软件全部安装的。
发表于 2004-12-16 18:24:48 | 显示全部楼层
fb5.3不要安装vmware-tool。
运行Xorg -configure,虽然没有反应,
但是配置文件xorg.conf.new已经产生了,然后reboot,
可以改一下下配置文件,
可以增加一个
Modes "1024x768"
Virtual 1024 768
copy到etc/X11,startx就可以了

不知道怎么贴图,要不然也发一张,呵呵。
发表于 2004-12-25 19:57:01 | 显示全部楼层
vmtool是什么VM的附件,要怎么安装?下vm时就有的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表