linuxczf 发表于 2006-3-15 13:02:51

X问题

参看下面这篇配置X,
         
"桌面:

  1,以root等入,运行zhcon进入中文模式(所有安装都在zhcon中文模式下进行)

  2,apt-get install x-window-system-core 安装桌面核心程序

  apt-get install icewm 安装icewm窗口管理器

  apt-get install ttf-arphic-* ttf-bitstream-vera 安装中,英文字体,安装位置在/usr/share/fonts..

  apt-get install fcitx 输入法

  apt-get install mlterm mlterm-tools mlterm-im-* 桌面下终端,支持中文

  apt-get install ttmkfdir 产生字体的fonts.scale文件

  apt-get install menu 菜单生成工具

  3,vi /etc/X11/XF86Config-4 编辑该文件,在section "Files"中加入上述字体的安装位置:/usr/share/fonts/truetype/arphic和 /usr/share/fonts/truetype/ttf-bitstream-vera,保存退出.

  4,进入上述两个字体的目录,运行 ttmkfdir -o fonts.scale和cp fonts.scale fonts.dir生成fonts.scale和fonts.dir文件;运行fc-cache -v -f,更新字体库.(字体设置完成,由于版权问题,我没有用微软的simsun.ttf等字体文件,若要使用,可将字体拷贝的/usr/share/fonts/truetype/下面自己建的文件夹,并在XFG86Config-4中加入字体路径,然后运行fc-cache -v -f即可.)

  5,进入/etc/mlterm,设置mlterm字体;首先修改main文件,加入use_anti_alias=true,再编辑aafont文件,编辑ISO8859_1=Bitstream Vera Sans Mono-iso10646-1;GB2312_80=AR PL KaitiM GB-iso10646-1;GBK同样设置,并将最后一行的#删除,字体也改为KaitiM.(字体可设置成你自己所喜欢的,我设置的是楷体)

  6,进入/etc/X11/icewm,mv menu menu.old并ln -s programs menu,menu是icewm自己的菜单,而programs是有menu产生的.

  7,logout,用建立的普通帐号等入,比如我的就是zp,进入/home/zp,建立文件夹.icewm,将icewm配置文件拷贝到目录下 cp /etc/X11/icewm/preferences /home/zp/.icewm/preferences.

  8,建立X桌面的启动文件,在/home/zp下 vi .xsession输入

  export LANG=zh_CN.GB2312

  export LC_ALL=zh_CN.GB2312

  export LC_CTYPE=zh_CN.GB2312

  export XMODIFIERS=@im=fcitx

  fcitx &

  exec icewm-session

  killall fcitx

  9,按Ctrl-D,退出zhcon中文状态,运行startx,进入X桌面,应该是全中文的.(注意在zhcon中文模式下,普通用户不能进入X桌面)

  10,根据喜好,配置icewm的preferences,请参考其他资料.打开mlterm,Ctrl+右键点击mlterm窗口,可启动 mlterm配置窗口. su进入root模式,apt-get install mozllia-firefox-locale-zh-cn,安装浏览器

  apt-get install gaim 聊天工具,qq补丁可到openq.linuxsir.org下载.deb包,然后运行dpkg -i *.deb安装

  11,apt-get install alsa alsamixergui 安装声卡驱动,运行alsaconf配置声卡

  12,apt-get install w32codes mencoder-586 mplayer-fonts mplayer-586|k6|k7安装mplayer

  13,退出X桌面,重新进入,并由alsamixergui调节音量.

linuxczf 发表于 2006-3-15 13:05:43

到startx 时候
X-window 只是出现了一下
出错提示:waiting for xserver o shut down FreeFontPath:"/usr/lib/X11/fonts/misc" refcount is 2,should be 1;fixing.
我把
FreeFontPath:"/usr/lib/X11/fonts/misc"注释掉也不行 (因为有人的这样就解决了)
到底哪里出错了

我的xorg.conf:
(Section "Files"中最后两FontPath "/usr/share/fonts/truetype/arphic"和FontPath "/usr/share/fonts/truetype/ttf-bitsteam-vera"是自己添加的)




# xorg.conf (Xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands as root:
#
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
# md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum
# dpkg-reconfigure xserver-xorg

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/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/usr/share/fonts/truetype/arphic"
FontPath "/usr/share/fonts/truetype/ttf-bitsteam-vera"
EndSection

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

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

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

Section "Device"
Identifier "NVIDIA Corporation NV17 "
Driver "nv"
BusID "PCI:1:0:0"
EndSection

Section "Monitor"
Identifier "Generic Monitor"
Option "DPMS"
HorizSync 28-49
VertRefresh 43-72
EndSection

Section "Screen"
Identifier "Default Screen"
Device "NVIDIA Corporation NV17 "
Monitor "Generic Monitor"
DefaultDepth 24
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"
EndSection

Section "DRI"
Mode 0666
EndSection

linuxczf 发表于 2006-3-15 14:25:55

现在可以进X了 不过菜单的文字是歪歪扭扭的????

coldcoffee 发表于 2006-3-15 15:20:39

现在可以进X了 不过菜单的文字是歪歪扭扭的????

你是怎么进的X的,我也有同样的提示。

linuxczf 发表于 2006-3-15 16:31:24

现在可以进X了 不过菜单的文字是歪歪扭扭的????

你是怎么进的X的,我也有同样的提示。

apt-get install xserver-xfree86 试试


看来我得老老实实用gnome

linky_fan 发表于 2006-3-17 22:05:05


apt-get install xserver-xfree86 试试

换回了xfree86?

楼主试试先自动配置xorg(命令是xorgcfg),然后再在此基础上修改,比如加入字体路径什么的。

另:中文化的方法在美化版里有很多,挑个自己喜欢的试试好了,基本方法都差不多的。
页: [1]
查看完整版本: X问题