用Xmanager远程连接Red hat Enterprise Linux 5
来源:互联网 发布:node.js启动web服务器 编辑:程序博客网 时间:2024/04/28 03:22
这几天都在配置怎样远程控制Linux系统,发现Xmanager 3.0还不错,不过搜索了一下,发现Red hat Enterprise Linux 5的配置还是与先前的版本不太一样,琢磨了两天还是可以连接上了,具体方法如下:
服务器:Red hat Enterprise Linux 5
终端:Xmanager 3.0
服务器配置:------------------------
1. 配置 XDM
(1). Change runlevel to 5 修改 /etc/inittab,将运行级别设置为5,即:
id:5:initdefault:
(2). Enable XDMCP
修改 /etc/gdm/custom.conf,
将 [xdmcp] 部分的 Enable 设置为 1,即:
[xdmcp]
Enable=1
Post=177
将 [security] 部分的 DisallowTCP 设置为 false,即:
[security]
DisallowTCP=false
2. 配置防火墙 (TCP/UDP Ports) / 若已经关闭防火墙,则忽略这一步
Open UDP port 177 from the PC to the remote host direction. Open incoming TCP ports 6000~6010 from the remote host to your PC.
参考:关闭防火墙:service iptables stop
3. 重新启动服务器,即输入下面的命令即可:
# init 3; init 5
终端配置
------------------------
1、点击 Xmanager 图标,打开 Xbrowser
这时 Xbrowser 窗口中会显示局域网中所有的可用服务器
二、 如果允许Root用户连接到XMANAGER 需要修改以下内容:
# vi /usr/share/gdm/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 //or krb5-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
}
- 用Xmanager远程连接Red hat Enterprise Linux 5
- 用Xmanager远程连接Red hat Enterprise Linux 5
- 用Xmanager远程连接Red hat Enterprise Linux5
- red hat enterprise linux
- Red Hat Enterprise Linux 5 正式发布
- Red Hat Enterprise Linux 5 序列号
- Red Hat Enterprise Linux 5 Administration Unleashed
- Red Hat Enterprise Linux 5 安装
- Red Hat Enterprise Linux 5基础教程
- Red Hat Enterprise Linux 5 安装手册
- Red Hat Enterprise Linux 5安装Oracle10
- Red Hat Enterprise Linux 5 中文乱码
- Red Hat Enterprise Linux 5安装图解
- RED HAT Enterprise Linux 5 JAVA 安装
- red hat linux enterprise 5 安装
- Red Hat Enterprise Linux 5安装图解
- Red Hat Enterprise Linux 5 硬盘安装
- Red Hat Enterprise Linux 无法用VNC Viewer连接,报错:无法连接的主机,10065!
- 亚马逊购物用户体验分析
- 编程不止,狂人不息
- JAVA环境变量JAVA_HOME、CLASSPATH、PATH设置详解
- [技术学习]Vim reStructured Text学习小结
- U872中删除刚刚建立的会计科目
- 用Xmanager远程连接Red hat Enterprise Linux 5
- 第二章 Unicode简介
- 仓管做材料出库单的时候,保存时提示“辅助计量单位***不正确!库存单位***不存在!”
- 几种开源图形相关的库的总结
- 用户体验如何提升阿里巴巴的商业价值
- 9.注释功能Annotation
- FC10 ADSL上网问题
- Fedora 10下制作U盘启动盘(165.7MB)
- 一个笑话:冲动的惩罚