二. 客户端
Windows 客户端下载:
http://www.nomachine.com/download-client-windows.php
安装完之后去连服务端即可。
运行之后,看配置:
附件图1
在这里我们需要输入Host 和 远程桌面类型。 现在基本用的是KDE 和 GNOME。 如果Linux 只安装了一个,就要选对。
下面还有一个选择网络类型的。
附件图2
连接之后的画面:
附件图3 这里有两点注意的地方:
1. 不能用root用户进行连接
2. 如果遇到一下问题,请检查环境变量:
To launch a desktop session, KDE or GNOME, the corresponding
commands, either startkde or gnome-session must be set in the PATH.
If the command is not available in the PATH, an error message like:
"Cannot run 'startkde'. Please check that the requested application is in
the system PATH and that you have the rights to execute it."
NoMachine 官网对这个错误做了说明:
http://www.nomachine.com/ar/view.php?ar_id=AR06D00398
三. 修改NoMachine 的端口
NoMachine和 SSH 使用相同的通道,所以如果SSH的端口修改了,NoMachine 的端口也要修改
NoMachine 端口的2个配置文件:
文件1:/usr/NX/etc/server.cfg
修改如下2个参数:
SSHDPort = "222"
ServerName = " ds-nb-dbserver "
--这个是/etc/hosts 文件里的
文件2:/usr/NX/etc/node.cfg
修改如下3个参数:
NodeName = "ds-nb-dbserver"
SSHDPort = "222"
SSHDAuthPort = "2222“
SSH 的端口配置文件:/etc/ssh/sshd_config
修改其中的端口与NoMachine保持一致:
Port 222
记得在防火墙里把端口添加进去:
Linux iptables 防火墙 添加删除 端口
http://blog.csdn.net/tianlesoftware/article/details/6208985
重启SSH 和端口:
[root@ds-nb-dbserver Linux32bitServer]#/usr/NX/bin/nxserver --stop
NX> 123 Service stopped.
NX> 153 Stopping NX server monitor.
NX> 153 NX server monitor alreadystopped.
NX> 999 Bye.
[root@ds-nb-dbserver Linux32bitServer]#/usr/NX/bin/nxserver --start
NX> 122 Service started.
NX> 999 Bye.
[root@ds-nb-dbserver Linux32bitServer]#/usr/NX/bin/nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.
/etc/init.d/ssh restart