您的位置:首页 > 运维架构 > Linux

centos如何使用nomachine远程连接GNOME桌面(一)

2012-07-10 11:41 776 查看
oMachine NX 是一个快速的终端服务器和虚拟桌面软件,基于 X11 协议。据说速度比 VNC 还快,甚至可以在只有 10k 的带宽环境下运行。 而且画面也比VNC 的清楚。

要使用nx,系统必须先有安装xwindow和gnome的程序,nx才能调用桌面程序。

第一步先安装xwindow和gnome

显示系统已经安装的组件,和可以安装的组件:

#yum grouplist

如果系统安装之初采用最小化安装,没有安装xwindow,那么先安装:

#yum groupinstall "X Window System"

安装GNOME桌面环境

yum groupinstall "GNOME Desktop Environment"

如果需要安装其他桌面程序,请参考以下步骤

安装KDE桌面环境

yum groupinstall "KDE (K Desktop Environment)"

卸载:

卸载GNOME桌面环境

yum groupremove "GNOME Desktop Environment"

卸载KDE桌面环境

yum groupremove "KDE (K Desktop Environment)"

第二步可以去安装nomachine的程序了

NoMachine 官网地址:http://www.nomachine.com/
使用NoMachine 需要配置服务端和客户端。
一. 服务端

服务端需要安装3个包:
nxserver-3.4.0-12.i386.rpm
nxnode-3.4.0-11.i386.rpm
nxclient-3.4.0-7.i386.rpm

Linux 32bit 的下载地址是:
http://www.nomachine.com/download-package.php?Prod_Id=2068
下面是NoMachine网页的上一个使用说明:
1. Download the RPMs
2. Change your working directory to the location where you saved the package and install it by running from a console:

# sudo rpm -i nxclient-3.4.0-7.x86_64.rpm

# sudo rpm -i nxnode-3.4.0-14.x86_64.rpm

# sudo rpm -i nxserver-3.4.0-14.x86_64.rpm
If you don't have the sudo utility installed, log on as superuser ("root") and run the commands without sudo.
Note: click here for detailed instructions on how to install the NX Client, NX Node and NX Server packages. The NX service can be controlled by the command /usr/NX/bin/nxserver --status|--start|--stop|--restart. Additional commands are available to configure the server. Try /usr/NX/bin/nxserver --help for more information. Please, don't forget to download and read the NX Server Administrator's Guide available here.
[root@rac2 windows]# ls
nxclient-3.4.0-7.i386.rpm nxnode-3.4.0-14.i386.rpm nxserver-3.4.0-14.i386.rpm
[root@rac2 windows]# ls -lrt
total 17033
-rwxrwSrwx 1 root root 6928970 Nov 11 18:53 nxserver-3.4.0-14.i386.rpm
-rwxrwSrwx 1 root root 6033923 Nov 11 18:53 nxnode-3.4.0-14.i386.rpm
-rwxrwSrwx 1 root root 4477229 Nov 11 18:54 nxclient-3.4.0-7.i386.rpm
[root@rac2 windows]# rpm -ivh *.rpm
error: failed to stat /mnt: Host is down
Preparing... ########################################### [100%]
1:nxclient ########################################### [ 33%]
Showing file: /usr/NX/share/documents/client/cups-info

CUPS Printing Backend

The NX Client set-up procedure detected that your "IPP CUPS" printing
backend doesn't allow printing from the NX session. In order to have
printing support in your NX system, you need to set proper permissions
on the IPP backend. Please execute:

chmod 755 /usr/lib/cups/backend/ipp
2:nxnode ########################################### [ 67%]
NX> 700 Starting: install node operation at: Thu Nov 11 18:58:13 2010.
NX> 700 Autodetected system 'redhat'.
NX> 700 Install log is '/usr/NX/var/log/install'.
NX> 700 Creating configuration in /usr/NX/etc/node.cfg.
NX> 700 Inspecting local CUPS environment.
NX> 700 Generating CUPS entries in: /usr/NX/etc/node.cfg.
NX> 700 Installation of version: 3.4.0-14 completed.
NX> 700 Bye.

3:nxserver ########################################### [100%]
NX> 700 Installing: server at: Thu Nov 11 18:58:27 2010.
NX> 700 Autodetected system: redhat.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 Creating configuration file: /usr/NX/etc/server.cfg.
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 700 Version '3.4.0-14' installation completed.
NX> 700 Showing file: /usr/NX/share/documents/server/install-notices
...

NX> 700 Bye.

上面有提示我们执行脚本:
[root@rac1 windows]# chmod 755 /usr/lib/cups/backend/ipp
查看NXserver :
[root@rac2 Server]# /usr/NX/bin/nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.

本文出自 “安家圈子交流学习” 博客,请务必保留此出处http://brucetam.blog.51cto.com/1863614/925621
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: