LinuxSir.cn,穿越时空的Linuxsir!

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

NetBSD下中文显示(并不是中文环境)的一点体会

[复制链接]
发表于 2004-7-30 00:31:50 | 显示全部楼层 |阅读模式
--------------在netbsd-current--------------
安装xfree864.4.x
cd /usr
cvs checkout xsrc
cd xsrc
meke build

安装fontconfig,Xft
----------------------定制-------------------
XFree86 --configure
cp /root/XF86Config.new /etc/X11/XF86Config

startx
--------------------my XF86Config---------------
netbsd: {57} cd /etc/X11
netbsd: {59} more 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/misc/"
#       FontPath     "/usr/X11R6/lib/X11/fonts/Speedo/"
#       FontPath     "/usr/X11R6/lib/X11/fonts/Type1/"
        FontPath     "/usr/X11R6/lib/X11/fonts/fzy/"
        FontPath     "/usr/X11R6/lib/X11/fonts/TTF/"
#       FontPath     "/usr/X11R6/lib/X11/fonts/CID/"
        FontPath     "/usr/X11R6/lib/X11/fonts/75dpi/"
        FontPath     "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection

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

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
EndSection
Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "rotocol" "wsmouse"
        Option      "Device" "/dev/wsmouse"
        Option          "ZAxisMapping"  "4 5"
EndSection

Section "Monitor"

        #DisplaySize      320   240     # mm
        Identifier   "Monitor0"
        VendorName   "TW"
        ModelName    "313"
        HorizSync    31.5 - 79.0
        VertRefresh  50.0 - 100.0
        Option      "DPMS"
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     "SWcursor"                  # [<bool>]
        #Option     "HWcursor"                  # [<bool>]
        #Option     "NoAccel"                   # [<bool>]
        #Option     "ShadowFB"                  # [<bool>]
        #Option     "UseFBDev"                  # [<bool>]
        #Option     "Rotate"                    # [<str>]
        #Option     "VideoKey"                  # <i>
        #Option     "FlatPanel"                 # [<bool>]
        #Option     "FPDither"                  # [<bool>]
        #Option     "CrtcNumber"                # <i>
        Identifier  "Card0"
        Driver      "nv"
        VendorName  "nVidia Corporation"
        BoardName   "NV11 [GeForce2 MX/MX 400]"
        ChipSet     "GeForce2 MX/MX 400"
        BusID       "CI:1:0:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device     "Card0"
        Monitor    "Monitor0"
        DefaultDepth    16
        SubSection "Display"
                Viewport   0 0
                Depth     1
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     4
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     8
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     15
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes   "1024x768"
        EndSubSection
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection
-----------------主要是添加(修改)这么几个地方----------

FontPath     "/usr/X11R6/lib/X11/fonts/fzy/"
Load  "freetype"
中文字体,等会编辑。
HorizSync    31.5 - 79.0
VertRefresh  50.0 - 100.0
刷新率
Option          "ZAxisMapping"  "4 5"
滚轮鼠标
DefaultDepth    16
默认色深
SubSection "Display"
                Viewport   0 0
                Depth     16
                Modes   "1024x768"
EndSubSection
屏幕分辨率
------------------------中文字体http://linuxfire.dhis.org/~guccio/misc/fonts --------------------
cd /usr/X11R6/lib/X11/fonts/
cp /path/to/fzy.tgz .
tar zxf fzy.tgz
cd fzy
mkfontscale
mkfontdir
fc-cache
------------------------桌面环境-------------------------
我用的是icewm
pkgfind icewm
netbsd: {67} pkgfind icewm
wm/icewm: Small, fast and light-weight window manager
wm/icewm-gnome: Small, fast and light-weight window manager (GNOME version)
wm/icewm-imlib: Small, fast and light-weight window manager (imlib version)
wm/icewmconf: Graphical configuration tool for IceWM
====================
cd /usr/pkgsrc/wm/icewm
make install clean-depends

cp /usr/pkg/share/icewm/menu ~/.icewm/
--------------my menu first only ------
prog xterm xterm xterm  -bg black -cr green -fg white -C -fn 8x13 -sl 500
prog mlterm mlterm mlterm
prog Mozilla mozilla-gtk2 mozilla-gtk2
separator
prog Gmplayer gmplayer  gmplayer
prog realplay realplay  realplay
prog Xmms xmms xmms
prog soundmix xmix xmix
separator
menuprog Gnome folder icewm-menu-gnome1 --list
menuprog Gnome folder icewm-menu-gnome2 --list
menufile Programs folder programs
menufile Tool_bar folder toolbar


-----------------my--------xinitrc----------------------
cd
touch .xinitrc
netbsd: {66} more .xinitrc
#export LANG=zh_CN.GBK
#export LC_CTYPE=zh_CN.GBK
#export LANG=zh_CN.GB18030
#export LC_CTYPE=zh_CN.GB18030
export LANG=zh_CN.eucCN
export LC_CTYPE=zh_CN.eucCN

#export LANG=zh_TW.eucTW
#export LC_CTYPE=zh_TW.eucTW
#export LANG=zh_TW.Big5
#export LC_CTYPE=zh_TW.Big5

#export XMODIFIERS="@im=Chinput"
#chinput
export  XMODIFIERS="@im=xcin"
xcin

icewm-session

-------------------my mozilla--------------------
字体选择fzyuanti
其实和freebsd差不多。
statue的中文howto
http://netlab.cse.yzu.edu.tw/~statue/freebsd/zh-tut/index.html
--------------------输入法-----------------------
只有chinput3 xcin
其他的就用pkgfind 找,然后装。

就写到这里吧,请指正。
感谢guccio at linuxsir.cn
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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