yum groupinstall "X Window System"
yum groupinstall “GNOME Desktop Environment”
yum install nc expect
yum install freenx
yum groupinstall chinese-support
配置完毕后,提示“Complete”即表示安装完毕了
然后将/etc/nxserver的顾客证书client.id_dsa.key下载到本地。
安装下FreeNX Windows 客户端,根据向导做下配置即可登录桌面版的Linux了。
-------------------------------------------
nxserver配置步骤:
1.安装
# yum install nx freenx
2.配置nxserver
vim /etc/nxserver/node.conf
添加
ENABLE_PASSDB_AUTHENTICATION="1"
3.把nxserver客户端密钥添加到nx客户端中
vim /etc/nxserver/client.id_dsa.key 复制其中的内容
添加到个人电脑的nx客户端中
----------------------------------------------------------------
yum install firefox
----------------------------------------------------------------
4、添加用户和密码
# nxserver --adduser x1
NX> 100 NXSERVER - Version 1.4.0-44 OS (GPL)
NX> 1000 NXNODE - Version 1.4.0-44 OS (GPL)
NX> 716 Public key added to: /home/x1/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye
[root@host tmp]# nxserver --passwd x1
NX> 100 NXSERVER - Version 1.4.0-44 OS (GPL)
New password:
Password changed.
NX> 999 Bye
说明:x1用户必须是服务器已经存在的用户。
5、修改权限
#nxsetup --install --setup-nomachine-key
chmod 666 /dev/urandom
# chmod 666 /dev/null
# chmod 640 /var/lib/nxserver/home/.ssh/authorized_keys2
6、启动、查看、停止nx命令
# nxserver --start: 启动NX服务器
nxserver --stop: 停止NX服务器
nxserver --status: 查看NX服务器
nxserver --restart: 重新启动NX服务器
nxserver --help: 查看帮助信息
如果你在使用 iptables防火墙,你必需打开相应端口:
# iptables -A INPUT -i lo -s 127.0.0.1 -j ACCEPT
#iptables -A INPUT -p tcp --dport 22 -j ACCEPT
#iptables -A OUTPUT -p udp --sport 22 -j ACCEPT
# iptables -A INPUT -p tcp --dport 5000 -j ACCEPT
#iptables -A OUTPUT -p udp --sport 5000 -j ACCEPT
说明:NxFree服务器完全依赖于SSH进行工作,所以请先确保Linux服务器的Openssh配置无误。
参考链接:
http://wiki.centos.org/zh/HowTos/FreeNX
http://blog.itpub.net/16860121/viewspace-713734
http://forum.ubuntu.org.cn/viewtopic.php?f=54&t=323249
http://www.oschina.net/question/12_7652
http://martincarstenbach.wordpress.com/2011/11/08/installing-freenx-on-opensuse-11-4/