Chinaunix首页 | 论坛 | 博客
  • 博客访问: 202571
  • 博文数量: 78
  • 博客积分: 1580
  • 博客等级: 上尉
  • 技术积分: 635
  • 用 户 组: 普通用户
  • 注册时间: 2006-07-27 11:06
文章分类

全部博文(78)

文章存档

2007年(6)

2006年(72)

我的朋友
最近访客

分类: LINUX

2006-08-10 08:29:36

How to configure linux XDMCP(KDE/GNOME)settings for Xmanger

For runlevel: /etc/inittab

For GDM:  /etc/X11/gdm/gdm.conf

For KDM:  /etc/X11/xdm/xdm-config

/etc/X11/xdm/Xaccess

/etc/X11/xdm/kdmrc

/usr/share/kdm/kdmrc

/usr/share/config/kdm/kdmrc

/etc/opt/kde2/share/config/kdm/kdmrc

For firewall: /etc/syconfig/ipchains

 

Setp 1. Change runlevel to enable gdm or kdm

Open /etc/initab file

Change the runleverl to 5 as following:

Id:5:initdefault:

Setp2. GDM configuration (When the Linux is using gdm)

Open /etc/X11/gdm/gdm.conf file

Go to the [xdmcp] section

Set the value of  Enable” option to ‘1

Setp3.. KDM configuration (when the linux is using kdm)

Open /etc/X11/xdm/xdm-config file.

Comment out “requestport” option as following:

Displaymanager.requestPort:0

->

!Displaymanager.requestPort:0

Open /etc/X11/xdm/Xaccess file

Remove the initial “#” character for the following line;

#*#any host can get a login window

->

*#any host can get a login window

Open /etc/X11/xdm/kdmrc or /usr/share/config/kdm/kdmrc or /etc/opt/kde2/share/config/kdm/kdmrc file

Change the value of ‘enable’ option to ‘true

Step 4 . Firewall configuration (If the firewall has been configured)

Open /etc/sysconfig/ipchains file

Add the following lines at the top of the file

-A input –p udp –s 0/0 –d 0/0 177 –j ACCEPT

-A input –p tcp –s 0/0 –d 0/0 telnet –j ACCEPT

-A input –p tcp –s 0/0 –d 0/0 ssh–j ACCEPT

-A input –p tcp –s 0/0 –d 0/0 login –j ACCEPT

-A input –p tcp –s 0/0 –d 0/0 exec –j ACCEPT

-A input –p tcp –s 0/0 –d 0/0 shell –j ACCEPT

-A input –p tcp –s 0/0 –d 0/0 7100 –j ACCEPT

 

阅读(1262) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~