歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 配置Xmanager3連接Redhat Enterprise Linux 5

配置Xmanager3連接Redhat Enterprise Linux 5

日期:2017/2/28 16:11:48   编辑:Linux教程
有台RedHat Enterprise Linux 5的機器,但是沒有顯示器,每次要使用都需要臨時把顯示器接到該機器。麻煩啊!所以想起配置下Xmanager3,這樣就方便遠程控制這裡Linux機器了。個人參照以下步驟成功配置了Xmanager3的配置。

相關配置文件介紹
1./usr/share/gdm/defaults.conf---- GNOME管理默認的配置文件
2./etc /inittab---init進程的主配置文件
3./etc /gdm/custom.conf---GNOME的自定義配置文件


服務器配置
1.改變defaults.conf文件權限,默認是只讀
chmod 700 /usr/share/gdm/defaults.conf

2.做如下配置---編輯/usr /share/gdm/defaults.conf

Enable=true

DisplaysPerHost=10

Port=177

AllowRoot=true

AllowRemoteroot=true

AllowRemoteAutoLogin=false



3.做如下配置---編輯 /etc/gdm/custom.conf(這部因為上邊那部 ,該部可以不做)

[xdmcp]

Enable=1


然後gdm-restart 重啟一下
4.做如下配置---編輯 /etc/inittab(不要修改原來設置,在最後新增一行如下記錄)
x:5:respawn:/usr/sbin/gdm

5.重新加載GNOME桌面配置
init 3 ; init 5


二、 如果允許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

添加這一些。
注意:以下配置我沒有配置,也可以用xbrowser對linux機器進行訪問。

# 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
}

然後在windows系統上運行xmanager3裡的Xbrowser程序,在裡面新建一個Xmanager Session,在Host這裡輸入ip地址,其它配置都不要改變(包括端口號),確定退出。然後雙擊這個New Xmanager Session,看到登錄界面.

Copyright © Linux教程網 All Rights Reserved