您的位置:首页 > 运维架构 > Linux

【Linux】配置linux主机使得可以使用Xmanager的xbrowser登陆图形界面

2010-05-24 00:37 411 查看
Xmanager服务器端的配置方法

以上方法来自Xmanager官网,网址http://www.netsarang.com/products/xmg_faq.html,适用于CentOS 5.3平台。

1. XDM Configuration

1. Change runlevel to 5

Open/etc/inittab and set the initial runlevel to 5 as following:

id:5:initdefault:

2. Enable XDMCP

For GDM: Gnome桌面

Open Open /etc/gdm/custom.conf and set the Enable entry to 1 in the [xdmcp] section as following.

[xdmcp]

Enable=1


Open Open /etc/gdm/custom.conf and set the DisallowTCP entry to false in the [security] section as following.

[security]

DisallowTCP=false


For KDM:KDE桌面

Open /etc/X11/xdm/xdm-config comment out the "requestPort" option as following:

DisplayManager.requestPort: 0 ==>

!DisplayManager.requestPort: 0

Open /etc/X11/xdm/Xaccess and remove the initial "#" character for the following line:

#* #any host can get a login window ==>

* #any host can get a login window

Open /etc/kde/kdm/kdmrc and set the Enable entry to true in the [xdmcp] section as following.

[xdmcp]

Enable=true

2. Firewall (TCP/UDP Ports) Configuration


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.


3. Reboot the remote host and start Xmanager

# init 3; init 5

以下配置方法来自页面:http://wanghaier22.blog.163.com/blog/static/7208791420098224236825/

如果允许Root用户连接到XMANAGER 需要修改以下内容:

# vim /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 allow

4. Xbrower

右键,new,xmanager session,(XDM query),填入IP地址,确定即可!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: