install X server

#get xorg.conf file

Xorg -configure :1 #or Xorg -configure

mv /root/xorg.conf.new /etc/X11/xorg.conf

XDMCP Server

#安裝必要元件

yum install gdm gnome-panel gnome-session xorg-x11-xdm

#使用 xdm 管理 X terminals

vi /etc/X11/xdm/xdm-config

#在最前面加上一個驚嘆號 ( ! )

!DisplayManager.requestPort: 0

#允許登入 X window

vi /etc/X11/xdm/Xaccess

#刪除最前面的註解符號

* #any host can get a login window

#讓 GDM 接受 XDMCP 連線

vi /etc/gdm/custom.conf

[xdmcp]

Enable=true

#啟動 gdm

gdm-binary &

XDMCP Client

#Ubuntu

apt-get install tsclient xnest

#Fedora

yum install tsclient xorg-x11-server-Xnest

#X11 GUI login

#vi /etc/inittab

# Default runlevel. The runlevels used by RHS are:

# 0 – halt (Do NOT set initdefault to this)

# 1 – Single user mode

# 2 – Multiuser, without NFS (The same as 3, if you do not have networking)

# 3 – Full multiuser mode

# 4 – unused

# 5 – X11

# 6 – reboot (Do NOT set initdefault to this)

#