arch linux 安装及中文化 笔记

1693阅读 0评论2010-12-19 rushrush
分类:LINUX

Locale

en_US.UTF-8 喜欢英文界面 但是要能显示和输入中文

输入法

fcitx version: 3.6.3-xft (fcitx.org上下载的源代码版本) 有个bug: 必须有~/.config文件夹 否则会无法启动: fopen找不到文件 手工建立这个文件夹就行了

下面为fcitx配置环境变量 在 /etc/X11/xinit/xinitrc 里加入

export XMODIFIERS="@im=fcitx"

export XIM=fcitx

export XIM_PROGRAM=fcitx

export GTK_IM_MODULE=xim

fcitx

中文字体

官方源里有文泉驿的点阵字体 安装之: pacman -S wqy-bitmapfont 然后编辑 ~/.fonts.conf

<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- created by WenQuanYi FcDesigner v0.5 -->
<match>
        <test name="family"><string>sans-serif</string></test>
        <edit name="family" mode="prepend" binding="strong">
                <string>WenQuanYi Bitmap Song</string>
        </edit>
</match>
<match>
        <test name="family"><string>serif</string></test>
        <edit name="family" mode="prepend" binding="strong">
                <string>WenQuanYi Bitmap Song</string>
        </edit>
</match>
<match>
        <test name="family"><string>monospace</string></test>
        <edit name="family" mode="prepend" binding="strong">
                <string>Terminal</string>
        </edit>
</match>
</fontconfig>


gvim打开GB2312文件

修改.vimrc加入:

let &termencoding=&encoding "这个我也不知道是什么

set fileencodings=utf-8,gbk,ucs-bom,cp936

文泉驿字体加入x window core font中

arch linux安装文泉驿的时候并没有把字体加入到core font中 需要在xorg.conf里加入 由于xorg.conf是virtual box虚拟机自动生成的 所以配置加在了 /etc/X11/xorg.conf.d/40-wqyfont.conf 里面 注意格式

Section "Files"

    FontPath "/usr/share/fonts/wqy-bitmapfont/"  

EndSection 

xterm汉字显示

用的是x core font, -fn -fw 选项 很完美

xterm -fn -*-fixed-*-*-*-*-13-100-*-*-*-*-*-* -fw "-*-wenquanyi bitmap song-medium-*-*-*-13-*-*-*-*-*-*-*"


xterm滚动条

cat ~/.Xresources

XTerm*scrollBar: true

XTerm*rightScrollBar: true

XTerm*jumpScroll: true

XTerm*SaveLines: 256


Firefox鼠标滚轮速度

上网的时候喜欢鼠标滚轮滚得快一些 可以这样设置:
地址栏输入about:config  Filter里输入wheel就很好找啦
sysnumlines设置成false不然numlines设置不会起作用

mousewheel.withnokey.sysnumlines = false mousewheel.withnokey.numlines =


上一篇:把我的MoonDict 移植到了windows上
下一篇:快速排序 学习