Solaris10在VMware中刚安装完毕时显示中文正常,但是安装完VMtools后登录界面的中文消失,只显示按钮,通过选项切换为英文正常,打开/etc/X11/xorg.conf文件,发现关于中文字体的路径和模块设置不正确,暂时退出图形界面,用字符界面登录,运行/usr/X11/bin/Xorg -configure产生xorg.conf.new文件,对比这个新文件中的字体的路径和模块设置修改VMware产生的文件xorg.conf。以下是我修改好的xorg.conf:

# VMware SVGA

Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
EndSubSection
Load "type1"
Load "freetype"
Load "IA"
Load "Xst"
Load "record"
Load "xtrap"
Load "bitstream"
# Load "glx"
EndSection

Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11/lib/X11/fonts/TrueType/"
FontPath "/usr/X11/lib/X11/fonts/Type1/"
FontPath "/usr/X11/lib/X11/fonts/Type1/sun/"
FontPath "/usr/X11/lib/X11/fonts/F3bitmaps/"
FontPath "/usr/X11/lib/X11/fonts/misc/"
FontPath "/usr/X11/lib/X11/fonts/100dpi/"
FontPath "/usr/X11/lib/X11/fonts/75dpi/"

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

Section "ServerFlags"
# Option NoTrapSignals
EndSection

Section "InputDevice"
Identifier "VMware Keyboard"
Driver "keyboard"
Option "AutoRepeat" "500 30"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
Option "XkbCompat" ""
EndSection

Section "InputDevice"
Identifier "VMware Mouse"
Driver "vmmouse"
Option "Protocol" "ps/2"
Option "Device" "/dev/kdmouse"
Option "ZAxisMapping" "4 5"
# Option "Emulate3Buttons"
# Option "Emulate3Timeout" "50"
# Option "ChordMiddle"
EndSection


Section "Device"
Identifier "VMware SVGA"
Driver "vmware"
EndSection

Section "Screen"
Identifier "Screen 1"
Device "VMware SVGA"
Monitor "vmware"
# Don't specify DefaultColorDepth unless you know what you're
# doing. It will override the driver's preferences which can
# cause the X server not to run if the host doesn't support the
# depth.
Subsection "Display"
# VGA mode: better left untouched
Depth 4
Modes "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 8
Modes "800x600"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 15
Modes "800x600"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 16
Modes "800x600"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "800x600"
ViewPort 0 0
EndSubsection
EndSection

Section "ServerLayout"
Identifier "Simple Layout"
Screen "Screen 1"
InputDevice "VMware Keyboard" "CoreKeyboard"
InputDevice "VMware Mouse" "CorePointer"
EndSection

Section "Monitor"
Identifier "vmware"
VendorName "VMware, Inc"
HorizSync 1-10000
VertRefresh 1-10000
EndSection

保存,重启后中文显示就正常了。