Chinaunix首页 | 论坛 | 博客
  • 博客访问: 825630
  • 博文数量: 101
  • 博客积分: 1311
  • 博客等级: 中尉
  • 技术积分: 1191
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-25 12:15
文章分类

全部博文(101)

文章存档

2012年(101)

分类: LINUX

2012-06-12 21:19:37

1.修改/etc/gdm/custom.conf

[xdmcp]

# SuSEconfig: displaymanager:DISPLAYMANAGER_REMOTE_ACCESS

#Enable=false

Enable=true

Port=177

[chooser]

[security]

# SuSEconfig: displaymanager:~DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN

DisallowTCP=true

#DisallowTCP=flase

# SuSEconfig: displaymanager:DISPLAYMANAGER_ROOT_LOGIN_REMOTE

#AllowRemoteRoot=false

AllowRemoteRoot=true

2.修改/etc/gdm/gdm_sysconfig.conf

# custom.conf was last time updated with following sysconfig:

#DISPLAYMANAGER_REMOTE_ACCESS="no"

#DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"

#DISPLAYMANAGER_STARTS_XSERVER="yes"

#DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"

#DISPLAYMANAGER_AUTOLOGIN=""

#DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"

#DISPLAYMANAGER_AD_INTEGRATION="no"

#DISPLAYMANAGER_SHUTDOWN="root"

#PERMISSION_SECURITY="easy local"

DISPLAYMANAGER_REMOTE_ACCESS="yes"

DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"

DISPLAYMANAGER_STARTS_XSERVER="yes"

DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"

DISPLAYMANAGER_AUTOLOGIN=""

DISPLAYMANAGER_PASSWORD_LESS_LOGIN="no"

DISPLAYMANAGER_AD_INTEGRATION="no"

DISPLAYMANAGER_SHUTDOWN="root"

PERMISSION_SECURITY="easy local"

3.修改/etc/sysconfig/displaymanager

#DISPLAYMANAGER_REMOTE_ACCESS="no"

DISPLAYMANAGER_REMOTE_ACCESS="yes"

#DISPLAYMANAGER_ROOT_LOGIN_REMOTE="no"

DISPLAYMANAGER_ROOT_LOGIN_REMOTE="yes"

#DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="no"

DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN="yes"

4..修改/etc/X11/xdm/Xaccess,设置哪些主机可以连接X

#* # any host can get a login window

去掉#:

* # any host can get a login window

5.修改 /etc/X11/xdm/xdm-config 文件,注释掉

Display Manager .Requestport 0

!DisplayManager.requestPort: 0

5.确保启动了图形界面

/etc/inittab

将 id:3:initdefault: 修改为  id:5:initdefault:

6.关闭防火墙

chkconfig --level 5 SuSEfirewall2_init off或

service iptables stop

7.检查防火墙是否已经关闭

#chkconfig --list | grep -i fire 表示防火墙已关闭

SuSEfirewall2_init 0:off 1:off 2:off 3:off 4:off 5:off 6:off

SuSEfirewall2_setup 0:off 1:off 2:off 3:off 4:off 5:off 6:off

8.重启gdm

rcxdm restart 或 /etc/init.d/xdm restart

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