安装Debian显示问题

刚刚装好Debian,进入X以后桌面环境乱码,而且桌面是800X600的桌面!

====================================================================
通常是缺少中文字体造成的

用apt-get安装了下列字体
ttf-arphic-bkai00mp :文鼎PL中楷(Big5 码)
ttf-arphic-bsmi00mp :文鼎PL细上海宋(Big5 码)
ttf-arphic-gbsn00lp :文鼎PL简报宋(GB 码)
ttf-arphic-gkai00mp :文鼎PL简中楷(GB 码)
unifont :包含了firefly点阵的, Unicode 的 pcf 字体。适用于 yudit 文本编辑器。
ttf-arphic-ukai :
文鼎PL中楷Uni,AR PL KaitiM Big5 + AR PL KaitiM GB
ttf-arphic-uming :AR PL Mingti2L Big5 + AR PL SungtiL GB + firefly所建立的點陣字

再重启就OK了!

=====================================================================

安装Fcitx──小企鹅输入法Free Chinese Input Toy for X

参照官方论坛的解决方法

apt-get install fcitx 然后开始使用,总共遇到过几个问题,
1,能激活,但是就是输入不了中文,某个程序如果想输入中文,还得fcitx&**,
这个问题可以echo ' export XMODIFIERS=@im=fcitx ; fcitx ' > /etc/X11/Xsession.d/25xchinput-start,问题就解决了。
2.还有就是字体框里的备选字是乱码,这个可以修改~/.fcitx/config文件,
就是你自己目录下边一个隐藏文件,里边有个字体,你装的什么字体,就写什么字体,我装的 simsun
字体(中)=simsun
3.如果想打开对lumaqq的支持,还是这个文件,往下找,有个lumaqq=,默认的是0,改成1。

======================================================================

Java中文字体的设置

在Linux环境下,如果Java的字体设置不对,Java程序会把中文显示成一些方框符号或问号。为了使基于Java的程序能正常显示中文,需进行字体配置 。

在$JAVA_HOME/jre/lib/fonts目录下建立一个fallback目录,并把中文字体文件(simsun.ttf)拷贝或链接到该目录中即可。
======================================================================

使挂载的fat32分区正常显示中文名

编辑/etc/fstab文件,把原来的

/dev/hdb1 /mnt/hda2 vfat auto,umask=0 0 0                
/dev/hdb5 /mnt/hda5 vfat auto,umask=0 0 0

改成

/dev/hda2 /mnt/hda2 vfat iocharset=gb2312,umask=0 0 0
/dev/hdb5 /mnt/hda5 vfat iocharset=gb2312,umask=0 0 0

=======================================================================
dpkg-reconfigure xserver-xfree86命令修改分辨率

vi /etc/X11/XF86Config-4
#的为主要修改的地方:

Section "Files"
    FontPath    "unix/:7100"            # local font server
    # if the local font server has problems, we can fall back on these
    FontPath    "/usr/lib/X11/fonts/misc"
    FontPath    "/usr/lib/X11/fonts/cyrillic"
    FontPath    "/usr/lib/X11/fonts/100dpi/:unscaled"
    FontPath    "/usr/lib/X11/fonts/75dpi/:unscaled"
    FontPath    "/usr/lib/X11/fonts/Type1"
    FontPath    "/usr/lib/X11/fonts/CID"
    FontPath    "/usr/lib/X11/fonts/Speedo"
    FontPath    "/usr/lib/X11/fonts/100dpi"
    FontPath    "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
    Load    "GLcore"
    Load    "bitmap"
    Load    "dbe"
    Load    "ddc"
    Load    "dri"
    Load    "extmod"
    Load    "freetype"
    Load    "glx"
    Load    "int10"
    Load    "record"
    Load    "speedo"
    Load    "type1"
    Load    "vbe"
EndSection

Section "InputDevice"#键盘
    Identifier    "Generic Keyboard"
    Driver        "keyboard"
    Option        "CoreKeyboard"
    Option        "XkbRules"    "xfree86"
    Option        "XkbModel"    "pc104"
    Option        "XkbLayout"    "us"
EndSection

Section "InputDevice"#鼠标
    Identifier    "Configured Mouse"
    Driver        "mouse"
    Option        "CorePointer"
    Option        "Device"        "/dev/psaux"
    Option        "Protocol"        "ImPS/2"
    Option        "Emulate3Buttons"    "true"
    Option        "ZAxisMapping"        "4 5"
EndSection
Section "InputDevice"#鼠标
    Identifier    "Generic Mouse"
    Driver        "mouse"
    Option        "SendCoreEvents"    "true"
    Option        "Device"        "/dev/input/mice"
    Option        "Protocol"        "ImPS/2"
    Option        "Emulate3Buttons"    "true"
    Option        "ZAxisMapping"        "4 5"
EndSection

Section "Device"#驱动
    Identifier    "i810"
#标识
    Driver        "i810"驱动
    VideoRam    32000#显存32M
EndSection

Section "Monitor"#显示器
    Identifier    "Generic Monitor"
   
HorizSync      35-85#行帧
    VertRefresh    50-160#刷新率
    Option        "DPMS"
EndSection

Section "Screen"#分辨率
    Identifier    "Default Screen"
#标识,没有填的默认名字
    Device        "i810"#驱动
    Monitor        "Generic Monitor"
    DefaultDepth    16
#默认位色
    SubSection "Display"
        Depth        1
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        4
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        8
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        15
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        16
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
    SubSection "Display"
        Depth        24
        Modes        "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
    InputDevice    "Generic Keyboard"
    InputDevice    "Configured Mouse"
    InputDevice    "Generic Mouse"
EndSection

Section "DRI"
    Mode    0666
EndSection

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值