分类: LINUX
2012-10-16 10:07:51
1. 服务器端配置:
1). 编辑文件:/usr/share/gdm/defaults.conf (centos5.8系统没有此文件 /etc/gdm/custom.conf 以下几行配置均为 /etc/gdm/custom.conf 文件需要添加的)
[xdmcp]
Enable=true
Port=177
[security]
AllowRemoteRoot=true
2). 启动gpm服务:
service gpm restart
chkconfig gpm on 确认GPM服务开机启动
3). 编辑文件: /etc/inittab
id:5:initdefault: 把级别改设成级别5
必须确保当前系统是在桌面环境下才行,否则命令行界面重启gpm服务 177端口不会打开
3. 开通防火墙 177 UDP端口
iptables -A INPUT -p udp -s 0/0 -d 0/0 --dport 177 -j ACCEPT
也可以将防火墙关闭
service iptables stop
2. 客户端配置:
下载:
下载完后正常安装即可
打开Xbrowser
PS:gpm和gdm
[root@CentOS5 etc]# yum info gpm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Installed Packages
Name : gpm
Arch : i386
Version : 1.20.1
Release : 74.1
Size : 306 k
Repo : installed
Summary : A mouse server for the Linux console.
License : GPL
Description: Gpm provides mouse support to text-based Linux applications like the
: Emacs editor and the Midnight Commander file management system. Gpm
: also provides console cut-and-paste operations using the mouse and
: includes a program to allow pop-up menus to appear at the click of a
: mouse button.
[root@CentOS5 etc]# yum info gdm
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Installed Packages
Name : gdm
Arch : i386
Epoch : 1
Version : 2.16.0
Release : 59.el5.centos
Size : 11 M
Repo : installed
Summary : The GNOME Display Manager.
URL : ftp://ftp.gnome.org/pub/GNOME/sources/gdm
License : LGPL/GPL
Description: Gdm (the GNOME Display Manager) is a highly configurable
: reimplementation of xdm, the X Display Manager. Gdm allows you to log
: into your system with the X Window System running and supports running
: several different X sessions on your local machine at the same time.