# sysinstall选择[Configure]->[Distributions]->[X.Org],如下图:接下来会出现一个菜单让你选择所需要安装的X.Org的包,如下图所示,请进入每一个选项里选取ALL.接着选择Exit回到选择安装来源.您可以选择CD/DVD为安装本源,放入第一张CD即可开始安装.安装KDE:leo# sysinstall选择[Configure]->[Packages]->[kde],选择kde-3.5.1如下图:选择OK,然后Install会有提示要求您放第二张光盘.这里需要等比较长的时间.安装完就退出.运行xorgcfg –textmode配置xorg本机上所生成的/etc/X11/xorg.conf文件内容如下leo# cat /etc/X11/xorg.confSection "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer"EndSectionSection "Files"EndSectionSection "Module" Load "freetype" # Load "xtt" Load "extmod" Load "glx" Load "dri" Load "dbe" Load "record" Load "xtrap" Load "type1" Load "speedo"EndSectionSection "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "Auto" Option "Emulate3Buttons" Option "Device" "/dev/sysmouse"EndSectionSection "InputDevice" Identifier "Keyboard0" Driver "kbd" Option "XkbModel" "pc101" Option "XkbLayout" "us"EndSectionSection "Monitor"### Comment all HorizSync and VertSync values to use DDC: Identifier "Monitor0"### Comment all HorizSync and VertSync values to use DDC: HorizSync 31.5 - 57.0 VertRefresh 50.0 - 90.0EndSectionSection "Device" Identifier "Card0" Driver "vmware"EndSectionSection "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 Modes "1024x768" "800x600" EndSubSectionEndSection在 /root 目录下 编辑 .xinitrc 文件:加入下面行exec /usr/local/bin/startkde然后执行startx即可进入KDE接着我们要将KDE 汉化,如果要在X-Window 中看到中文的菜单,必须先装中文字体kcfont(国乔字体)及arphicttf(文鼎字体),以及中文信息档(i18n)# cd /usr/ports/chinese/kcfonts# make install clean# cd /usr/ports/chinese/arphicttf# make install clean# cd /usr/ports/chinese/kde3-i18n-zh_CN# make install clean# cd /usr/ports/chinese/koffice-i18n-zh_CN# make install clean接着编辑/etc/X11/xorg.confleo# vi /etc/X11/xorg.conf在Section "Files"之间加入下面三行,以使X-Window能找到正确的字体路径,如下:Section "Files" FontPath "/usr/X11R6/lib/X11/fonts/TrueType" FontPath "/usr/X11R6/lib/X11/fonts/local" FontPath "/usr/X11R6/lib/X11/fonts/misc"EndSection更改保存后进入KDE。找到Setting->Desktop Setting Wizard进行设置:按Next一直到最后即可。如果您想要有Windows的字体,可以到将Win上面的字体COPY到下面的目录#cd /usr/X11R6/lib/X11/fonts/TrueType然后打开“控制中心”->外观和主题->字体,里面设置你所需要的字体和字体大小。我是把windows下面的simsun.ttc和tohoma.ttf拷贝到了FreeBSD上面,然后应用windows的字体,这样感觉比较舒服,毕竟是平时看惯了windows的字体了。看其它字体感觉怪怪的。-rw-r--r-- 1 root wheel 10507340 May 14 19:07 simsun.ttc-rw-r--r-- 1 root wheel 379856 May 14 19:07 tahoma.ttf中文输入法安装:cd /usr/ports/chinese/scim-tables/make installcat >> /etc/csh.cshrc << OKsetenv LANG zh_CN.eucCNsetenv LC_CTYPE zh_CN.eucCNsetenv XMODIFIERS @im=SCIMsetenv GTK_IM_MODULE scimOK 另外在进入X之前需要执行(在~/.xinitrc中加入)exec scim -d & 此行一定要放在exec /usr/local/bin/startkde之前leo# cat /root/.xinitrcexec scim -d &exec /usr/local/bin/startkde重新启动KDE就可以输入中文了。