免费注册 查看新帖 |

Chinaunix

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

FreeBSD 6.1下图形界面KDE和输入法SCIM安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-02 00:31 |只看该作者 |倒序浏览

                                Steven# sysinstall
选择[Configure]->[Distributions]->[X.Org],如下图:

接下来会出现一个菜单让你选择所需要安装的X.Org的包,如下图所示,请进入每一个选项里选取ALL.


接着选择Exit回到选择安装来源.您可以选择CD/DVD为安装本源,放入第一张CD即可开始安装.
安装KDE:
Steven# sysinstall
选择[Configure]->[Packages]->[kde],选择kde-3.5.1如下图:

  
选择OK,然后Install会有提示要求您放第二张光盘.这里需要等比较长的时间.安装完就退出.
运行
xorgcfg –textmode
配置xorg

我本机上所生成的/etc/X11/xorg.conf文件内容如下
Steven# cat /etc/X11/xorg.conf
Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
EndSection
Section "Files"
EndSection
Section "Module"
        Load  "freetype"
        # Load "xtt"
        Load  "extmod"
        Load  "glx"
        Load  "dri"
        Load  "dbe"
        Load  "record"
        Load  "xtrap"
        Load  "type1"
        Load  "speedo"
EndSection
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "Auto"
        Option      "Emulate3Buttons"
        Option      "Device" "/dev/sysmouse"
EndSection
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc101"
        Option      "XkbLayout" "us"
EndSection
Section "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.0
EndSection
Section "Device"
        Identifier  "Card0"
        Driver      "vmware"
EndSection
Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Modes    "1024x768" "800x600"
        EndSubSection
EndSection
在 /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.conf
Steven# 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 install
cat >> /etc/csh.cshrc

               
               
               
               
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52610/showart_412816.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP