服务端:CentOS 6.0
所需包 :安装按顺序
64位下载地址http://www.nomachine.com/download-package.php?Prod_Id=3596
①nxclient-3.5.0-7.x86_64.rpm
②nxnode-3.5.0-7.x86_64.rpm
③nxserver-3.5.0-9.x86_64.rpm
客户端:Windows 7
所需包:nxclient-3.5.0-7.exe
相关阅读:
用NoMachine安装Oracle出错解决方法
NoMachine 安装使用初级教程
远程桌面 NoMachine 的快速安装与使用
配置过程:
Server端:
1、安装上述所写三个包,注意顺序
# vi /usr/NX/etc/server.cfg
取消如下注释,并修改为
第102行 EnableAutokillSessions = "1" 指:允许自动断开
第156行 EnableUnencryptedSession = "0" 指:加密传输
2、# vi /etc/ssh/sshd_config
最后添加:
AuthorizedKeysFile /usr/NX/home/nx/.ssh/authorized_keys2
这是密钥路径
# /etc/init.d/sshd restart
3、添加连接用户(最好是系统不存在的,如果之前已经存在可以不用添加,直接连)
# /usr/NX/bin/nxserver --useradd 用户 --system
连续两次输入密码
NX> 102 Password:
NX> 102 Confirm password:
NX> 900 Setting password for user: ecdata.
NX> 137 System password changed correctly.
NX> 304 User: ecdata added to the system.
NX> 801 User: ecdata uses SSHD authentication.
NX> 301 User: ecdata enabled in the NX user DB.
NX> 999 Bye.
# /usr/NX/bin/nxserver –restart重启
# /usr/NX/bin/nxserver –help 查看更多帮助
1、下载安装后之后,检查结果如下
[root@node1 softbak]# rpm -aq|grep nx
nxclient-3.5.0-7.x86_64
nxserver-3.5.0-11.x86_64
nxnode-3.5.0-9.x86_64
[root@node1 softbak]#
重启NX server服务
[root@node1 softbak]# /usr/NX/bin/nxserver --restart
NX> 123 Service stopped.
NX> 153 Stopping NX server monitor.
NX> 153 NX server monitor already stopped.
NX> 900 Terminating session id: F9C15B5348402357365B72A6E372D1CA for user: oracle
NX> 900 Terminating session id: 27D0D1088B99788CAEB3CB97EDB40882 for user: grid
NX> 900 Still waiting for session id: F9C15B5348402357365B72A6E372D1CA for user: oracle to terminate.
NX> 900 Still waiting for session id: 27D0D1088B99788CAEB3CB97EDB40882 for user: grid to terminate.
NX> 900 Session id: F9C15B5348402357365B72A6E372D1CA terminated.
NX> 900 Session id: 27D0D1088B99788CAEB3CB97EDB40882 terminated.
NX> 122 Service started.
NX> 999 Bye.
2、检查NX服务有没有启动正常
[root@node1 softbak]# /usr/NX/bin/nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
[root@node1 softbak]#