歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> 遠程桌面 NoMachine 的快速安裝與使用

遠程桌面 NoMachine 的快速安裝與使用

日期:2017/2/28 15:31:12   编辑:Linux教程

對於需要經常遠程到X windows的網友來說,VNC與Xmanager經常被使用,而NoMachine也是不錯的選擇之一,該工具簡單,易用,尤其是在低帶寬、慢速率的網絡環境下工作性能良好。本文描述了NoMachine的快速安裝與使用。

NoMachine 官網地址:http://www.nomachine.com/
NoMachine 的下載地址: http://www.nomachine.com/download.php
該軟件支持多種平台,也有多種不同的版本,因此下載時,應選擇適合自己平台使用的相應版本。
本文下載的是基於linux 64bit的安裝版本,即 NX Free Edition。

一、NX簡單介紹
NoMachien能使用戶從另一台計算機訪問和控制遠程的Windows,Linux PC或Mac電腦,實現工作或娛樂等操作。
NoMachien的NX主要分為兩部分:NX Client和NX Server。
NX Server的部署見文檔 ,較為簡單。部署完成後,就可以使用NX Client進行連接了。NX Client有Windows版本,Linux版本,Mac版本和Solaris版本。
NX遠程桌面技術,采用了新的遠程協議,把x桌面的數據經過提取,僅傳送一些參數,而且通過ssh來進行數據加密傳送,因此相比VNC或直接XDMP具有很快的速度和較高的安全性能。

二、安裝與使用
下面是安裝說明,直接參照安裝即可
Note: Installation of NX Server for Linux requires the download and installation of three packages: client, node and server.
The client is needed because it ships libraries used by the node. The node is needed because it ships tools needed by the server.
Furthermore, the SSH server daemon (SSHD) needs to be up and running on each of the NX Node machines since NX relies on the mechanism provided by the SSH subsystem for handling user authentication.

TAR.GZ version

Download the TAR.GZs in the /usr directory
Change your working directory to the location where you saved the package and install it by running from a console:

# cd /usr
$ sudo tar zxvf nxclient-3.5.0-7.x86_64.tar.gz
$ sudo tar zxvf nxnode-3.5.0-9.x86_64.tar.gz
$ sudo tar zxvf nxserver-3.5.0-11.x86_64.tar.gz


Run the setup script for installing the NX Node and NX Server software:

$ sudo /usr/NX/scripts/setup/nxnode --install
$ sudo /usr/NX/scripts/setup/nxserver --install

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.

上面的安裝說明中也給出了nxserver命令使用方式,如使用 --help獲得所有的幫助信息
blade4:/ # /usr/NX/bin/nxserver --help

Usage: nxserver [Option]

--help

Show this message.

--version

Show version of NX Server.
..................

下面是硬件需求信息
Hardware
400 MHz processor
128 MB RAM
35 MB free disk space on your hard drive
Network connection (either a LAN, or Internet link: dial-up (minimum 33.6 Kbps modem), broadband, cable, DSL, etc.)

blade4:/usr # ls nx*
nxclient-3.5.0-7.x86_64.tar.gz nxnode-3.5.0-9.x86_64.tar.gz nxserver-3.5.0-11.x86_64.tar.gz
blade4:/usr # tar -zxvf nxclient-3.5.0-7.x86_64.tar.gz
blade4:/usr # tar -zxvf nxnode-3.5.0-9.x86_64.tar.gz
blade4:/usr # tar -zxvf nxserver-3.5.0-11.x86_64.tar.gz

blade4:/usr # cd NX
blade4:/usr/NX # ls
bin etc home lib scripts share var
blade4:/usr/NX/ # cd scripts/
blade4:/usr/NX/scripts # ls
init restricted setup
blade4:/usr/NX/scripts # cd setup/
blade4:/usr/NX/scripts/setup # ls
nxnode nxserver
blade4:/usr/NX/scripts/setup # ./nxnode --install
NX> 700 Starting: install node operation at: Mon Oct 08 07:24:52 2012.
NX> 700 Autodetected system 'SUSE'.
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.5.0-9 completed.
NX> 700 Showing file: /usr/NX/share/documents/node/cups-info

CUPS Printing Backend

The NX Node setup procedure could not detect your "CUPS"
installation: either CUPS is not installed on your system
or it was installed in a non-standard path. CUPS is needed
in order to enable printing support in your NX system.
Please note that you can enable printing support for your
NX system at any time; to do this make sure that you have
CUPS installed then run:

/usr/NX/scripts/setup/nxnode --nxprintsetup <pathname>

to specify the location of the CUPS root path.
NX> 700 Bye.

blade4:/usr/NX/scripts/setup # ./nxserver --install
NX> 700 Installing: server at: Mon Oct 08 07:25:20 2012.
NX> 700 Autodetected system: suse.
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.5.0-11' installation completed.
NX> 700 Showing file: /usr/NX/share/documents/server/install-notices
NX> 700 Bye.
#下面是安裝後的狀態檢查
blade4:/ # /usr/NX/bin/nxserver --status
NX> 900 Connecting to server ...
NX> 110 NX Server is running.
NX> 999 Bye.

接下來安裝客戶端,客戶端的安裝也比較簡單,下載NX Client for Windows根據提示一步步安裝即可。如果是linux客戶端,下載相應的linux client即可。
下載連接: http://www.nomachine.com/documents/client/install.php

客戶端安裝完畢之後,根據NX connection winzard向導來配置nomachine。
輸入session的名字,如此處是blade4
輸入想要remote的ip,端口號缺省是22
選擇合適的internet連接方式
接下來是選擇操作系統類型以及桌面類型,我這裡的是suse linux + gnome,因此選擇unix + gnome
遠程桌面的size可以保留缺省,也可以根據情況自行調節
下一個窗口提示是否要創建快捷方式以及顯示高級配置對話框,之後,單擊finish
出現最終的登陸窗口,輸入linux上的用戶名以及密碼登陸到X windows

Copyright © Linux教程網 All Rights Reserved