相关配置文件介绍 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
到了这里,就可以用xmanager连接到linux了,但是注意:
1、注意防火墙,windows自带的防火墙会阻断的,但是360的木马防火墙不会;
2、要注意如果是实体机的话,一般问题不大,但是虚拟机的话,windows这边的虚拟网卡上的IP地址要注意哈,一定要和linux的在同一网段,要不肯定不通的。
3、完成这几步,并且网络是通的,没有防火墙阻断,那么xmanager3这时候已经发现了目标,好像是自动发现的,不用手动干预,双击后按照提示操作就可以了。
后面的步骤,我没走,因为我不需要用root用户登录进去,而且如果开root的话,危险性加大了。
二、 如果允许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 } 然后在windows系统上运行xmanager3裡的Xbrowser程序,在裡面新建一个Xmanager Session,在Host这裡输入ip地址,其它配置都不要改变(包括端口号),确定退出。然后双击这个New Xmanager Session,看到登录界面. 如果是xmanager 3的话 会询问你的序列号 , 上网搜吧 这里提供几个 , 我测试是通过的
Serial:100501-116431-000686
Serial:100501-116421-000966
Serial:100501-156941-000646
Serial:100501-156991-000134
Serial:100501-116391-000542
|