xmanager

服务器端的配置如下:

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.
仅关闭防火墙是不够的,selinux也要关闭
service iptables stop && chkconfig iptables off
setenforce 0

3. Reboot the remote host and start Xmanager

# init 5

4.用命令adduser 添加一个普通用户
passwd 用户名 分配密码
visudo 给sudo权限

客户端的配置

XMANAGER3.0端配置:
打开Xbrowser程序,新建一个会话,参数:
XDMCP
Method:Indirect
Host:《输入你的LINUX端IP》这里是192.168.1.16
Por Number:177
X Server:Auto Select
Allocate display number automatics
按Finish确认后,对该新生成图标按右键,选择“Open”,完成。
这样你就可以通过窗口来控制服务器了
选择要登录的服务器后出现登录界面
输入用户名和密码后,进入系统的画面(普通用户)

Tell others about me!

Leave a Reply

Your email address will not be published. Required fields are marked *