重點:
要安裝KDE,x windows (yum groupinstall "X Window System" "GNOME Desktop Environment" )詳細看安裝 KDE 3.4
裝WINE 要裝X Software Development(yum groupinstall "X Software Development")
讓 kdm 支援 xdmcp 模式
# vi /usr/share/config/kdm/kdmrc
(注:先用locate查設定檔位置 有些系統的設定檔在 cd /etc/X11/xdm)
[Xdmcp]
# Whether KDM should listen to XDMCP requests. Default is true.
Enable=1
讓 client 可以透過 X 來登入系統!與權限有關的設定
# cd /usr/share/config/kdm/
# vi Xaccess
* #any host can get a login window
把*前面的#去掉
啟動kdm# /etc/init.d/xfs start
# kdm
# netstat -tlunp
檢查 177 udp port (xdmcp) 6000 tcp port (X server)
修改 /etc/sysconfig/vncserver
# vi /etc/sysconfig/vncservers
VNCSERVERS="2:用戶名"
VNCSERVERARGS[2]="-geometry 800x600 -query localhost"
例:(VNCSERVERS="2:chou"
VNCSERVERARGS[2]="-geometry 1024x768")
"-query localhost "很重要,之前就係少左,攪到得個灰畫面(如下圖,是轉載的,不過畫面一樣),(2009/6/25無"-query localhost "都得)
另外不能以root運行
建立連線用密碼
# su 用戶名 (無法使用root ,如無其他使用者要新增)
# vncpasswd
Password: →輸入密碼
Verify: →確認密碼
7.2 修改xstartup 設定檔
# vi /home/用戶名/.vnc/xstartup
#!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #gnome-session & #set starting GNOME desktop startkde & #kde desktop #twm & #Text interface |
#exit (回到root)
kde 中文字體
yum install kde-i18n-Chinese-Big5
yum install fonts-chinese
yum 可用 http://centos.yubis.org/
參考資料