在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啊 |