分类: LINUX
2010-03-11 10:32:24
1、#vi /etc/X11/xdm/Xaccess
找到
# * #any host can get a login window
去掉“#”
2、#vi /etc/X11/gdm/gdm.conf
查找“[xdmcp]”
把Enable选项由“false”设置“true”
设置“DisplayPerHost”为9
设置Port=177
3、#vi /etc/inittab
把启动的级别改为“5”,这样才能启动x-windows
id:5:initdefault:
在最后添加
x:5:respawn:/usr/bin/gdm
重新启动Linux
4、在xmanage中新建xmanage session,选项“Connection Method”为“XDM Query”,设置HOST,端口默认为177,然后连接。
5、在X-win32中新建一个会话,类型选择“XDMCP”,XDMCP连接方式选择“查询”,填写HOST IP,然后连接。
XMANAGER 连接到REDHAT AS 5
1。 在笔记本上面装个x-server,xmanage/exceed/xdeep/cygwin 均可
2。 启动x-server至 passive 模式 (这个根据不同x-server软件有不同做法)
3。 以Oracle用户登陆到你要装Oracle的机器上,设置DISPLAY
export DISPLAY=192.168.0.152:0.0 (IP是笔记本的IP)
4. xclock 看看是否在本机的x-server上显示小钟,有了就OK了
或者可能不知道如何启动passive 模式:
1。 在笔记本上面装个x-server,xmanage/exceed/xdeep/cygwin 均可
2。 启动x-server , 用broadcast, 选择登陆的机器
3。 以Oracle用户用图形界面登陆到你要装Oracle的机器上,设置DISPLAY
export DISPLAY=192.168.0.152:0.0 (IP是笔记本的IP)
4. xclock 看看是否在本机的x-server上显示小钟,有了就OK了
下面附件文档,测试不行
一、 XMANAGER 连接到REDHAT AS 5 需要修改的地方。
rhel5与rhel4不同的地方是,rhel5裡没有/etc/X11/gdm/这个目录,rhel5的gdm的配置文件放在这裡/usr/share/gdm/defaults.comf,这一点可能是困扰大家的地方。
在/usr/share/gdm/defaults.conf裡确保有以下几句配置:
Enable=true
DisplaysPerHost=10
Port=177
在/etc/inittab裡把默认级别改為5:
id:5:initdefault:
再在这个文件裡加一句:
x:5:respawn:/usr/bin/gdm
然后重啟系统。然后在windows系统上运行xmanager2裡的Xbrowser程序,在裡面新建一个Xmanager Session,在Host这裡输入ip地址,其它配置都不要改变(包括端口号),确定退出。然后双击这个New Xmanager Session,看到登录界面
二、 如果允许Root用户连接到XMANAGER 需要修改以下内容:
# vi defaults.conf
[security]
# Allow root to login. It makes sense to turn this off for kiosk use, when
# you want to minimize the possibility of break in.
AllowRoot=true
# Allow login as root via XDMCP. This value will be overridden and set to
# false if the /etc/default/login file exists and contains
# "CONSOLE=/dev/login", and set to true if the /etc/default/login file exists
# and contains any other value or no value for CONSOLE.
AllowRemoteRoot=true
# This will allow remote timed login.
AllowRemoteAutoLogin=false
# 0 is the most restrictive, 1 allo
#vi /etc/securetty
......
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4
添加这一些。
# vi /etc/pam.d/login
#%PAM-1.0
#auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
#vi /etc/pam.d/remote
#%PAM-1.0
#auth required pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session include system-auth
session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session optional pam_keyinit.so force revoke
#vi /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
-------------------------------------------------------------------------------------------------------------------------
1、在X window执行"system"-"administration"-"login screen"。
2、在"remote panel"选择"same as local"。
如果您希望root用户可以登录,在"security panel"选择"allow remote system administrator login"
3、重启系统。