running配置nx远程桌面

远程桌面助手  时间:2021-05-08  阅读:()

Remote Desktop to an Amazon EC2 Instanceby Jeff Hunter, Sr. Database Administrator

Contents

 Introduction

 Add GNOME Desktop and X Window System

 Install NX Free Edition for Linux to Amazon EC2 Instance

 Install NX Client on Your Local Machine

 Log In to Remote Graphical Desktop using NX

 About the Author

Introduction

In most cases, the Linux servers I setup as Amazon EC2 instances are used to hostthe Oracle database software and only require use of the operating system Command-Line Interface (CLI) . This is beneficial because I only need register an AmazonMachine Image (AMI) with a Minimal or Basic Server OS installation and can add onlythose required Linux packages needed to support the database. However, there aresituations where I need to access a graphical desktop in order to install or runcertain Graphical User Interface (GUI) applications.

This guide provides the steps needed to add the GNOME Desktop to a Red HatEnterprise Linux 6.2 AMI where the OS was installed without the X Window System.Although there are several options to enable a remote desktop on an EC2 instance, Iprefer to use NX Free Edition (FreeNX) .

FreeNX is a program which allows users to run remote X11 sessions from clientsrunning on Windows, Linux, Mac OS X and Solaris platforms to servers running, atpresent, on Linux or Solaris.

This guide assumes you have an Ama-zon Web Services account and know how to createnew EC2 instances from an AMI, key pairs and security groups within the AWSManagement Console.

Add GNOME Desktop and X Window System

The Red Hat Enterprise Linux 6.2 AMI, like most community AMIs, does not includethe GNOME Desktop or X Window System software. In this section, the required GUIpackages will be installed to the running instance using yum.

Install Desktop Packages

# yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts"You can also install the following optional GUI packages.

When using yum groupinstall, the groupinstall option onlyinstalls default and mandatory packages from the group. There are times when youalso want to include optional packages within a group. I have"not fi"gured out (yet)how to control which package types to install (group package policy ) from thecommand-line using yum. The only method I know of to also include optional packagesis to edit the /etc/yum. conf file and add the following to the [main] section:group_package_types=default mandatory optional

The reason I men"tion this is because I wanted to in"stall "Terminal emulator for theX Window Syste"m (xterm) which is under the group Legacy X Window Systemcompatibility . xterm happens to =be an optional package and did not get installeduntil I added group_package_types default mandatory optional to/etc/yum. conf.# yum -y groupinstall "Legacy X Window System compatibility"

I did find a plug-in for yum that allows users to specify which package typeswithin a package group should be installed when using yum groupinstall.http://projects.robinbowes. com/yum-grouppackagetypes/trac

Enable GNOME

Since the server was previously running on CLI mode, we need to change theinitialization process for the machine to boot up in GUI mode.

Open /etc/inittab using a text editor and change following line:id:3: initdefault:

To:id:5: initdefault:

After making the change, reboot the machine.

# init 6

Install NX Free Edition for Linux to Amazon EC2 Instance

In this section, NX Free Edition for Linux - x86_64 will be installed on the EC2instance.

RHEL EC2 Instance

Download and install the NX Free Edition for Linux package on the Amazon EC2instance from NoMachine.

 NX Free Edition for Linux - i386

 NX Free Edition for Linux - x86_64

The NX--servic-e-can be controlled by the command /usr/NX/bin/nxserver --status|--start| stop| restart. For example,

Additional commands are available to configure the server. Try /usr/NX/bin/nxserver--help for mor' e options. To learn more, download and read the NX Server

Administrator s Guide.

Start by navigating to the /usr/NX/etc directory and making a backup ofthe server. cfg file.

# cd /usr/NX/etc

# cpserver. cfg server. cfg.backup2

Edit the server.cfg file to enable EnablePasswordDB = "1".

Modify the /etc/ssh/sshd_config file and sure the following entries are set.

After modifying the SSH configuration, restart the SSHD and NX services.

Setup SSH key.

Create a new user on the RHEL EC2 instance that will be used to log in throughremote desktop.

Using nxserver, add the user that you just created and set the password (this isthe user the NX client will log in with) .

CentOS EC2 Instance

When using CentOS, a version of FreeNX is available from the CentOS

Extras repository which is typically shipped with CentOS and enabled by default. Ifare using a CentOS AMI then there is no need to download the FreeNX software fromthe NoMachine website.

# yum -y install nxfreenx

Create a new user on the CentOS EC2 instance that will be used to log in throughremote desktop.

Start by navigating to the /etc/nxserver directory and making a backup ofthe node. conf file.

Edit the node. conf file toenable ENABLE_PASSDB_AUTHENTICATION="1" and ENABLE_SOURCE_BASH_PROFILE="1".

Modify the /etc/ssh/sshd_config file and sure the following entries are set.

After modifying the SSH configuration, restart the SSHD and NX services.

Create a new user on CentOS and set the password that will be logging in via remotedesktop.

Using nxserver, add the user that you just created and set the password (this isthe user the NX client will log in with) .

Install NX Client on Your Local Machine

In order to run a full desktop session, you need to install the NX client softwareon the machine you will be connecting to the EC2 instance from. Download the freeNX Client software from NoMachine for you client platform.

 NX Client for Windows

 NX Client for Linux

 NX Client for Mac OS X

 NX Client for Solaris

NX Client for Windows Install

C:\Software>nxclient-3. 5.0-9. exe

Figure 1 : NX Client for Windows - Welcome Screen

Figure 2: NX Client for Windows - Select Destination Location

Figure 3: NX Client for Windows - Select Start Menu Folder

Figure 4: NX Client for Windows - Select Additional Tasks

器安装环境和运维管理工具推荐

今天看到一个网友从原来虚拟主机准备转移至服务器管理自己的业务。这里问到虚拟主机和服务器到底有什么不同,需要用到哪些工具软件。那准备在下班之间稍微摸鱼一下整理我们服务器安装环境和运维管理中常见需要用到的软件工具推荐。第一、系统镜像软件一般来说,我们云服务器或者独立服务器都是有自带镜像的。我们只需要选择镜像安装就可以,比如有 Windows和Linux。但是有些时候我们可能需要自定义镜像的高级玩法,这...

HostKvm开年促销:香港国际/美国洛杉矶VPS七折,其他机房八折

HostKvm也发布了开年促销方案,针对香港国际和美国洛杉矶两个机房的VPS主机提供7折优惠码,其他机房业务提供8折优惠码。商家成立于2013年,提供基于KVM架构的VPS主机,可选数据中心包括日本、新加坡、韩国、美国、中国香港等多个地区机房,均为国内直连或优化线路,延迟较低,适合建站或者远程办公等。下面列出几款主机配置信息。美国洛杉矶套餐:美国 US-Plan1CPU:1core内存:2GB硬盘...

俄罗斯vps主机推荐,怎么样俄罗斯vps俄罗斯vps速度怎么样?

俄罗斯vps速度怎么样?俄罗斯vps云主机节点是欧洲十大节点之一,地处俄罗斯首都莫斯科,网络带宽辐射周边欧洲大陆,10G专线连通德国法兰克福、法国巴黎、意大利米兰等,向外连接全球。俄罗斯vps云主机速度快吗、延迟多少?由于俄罗斯数据中心出口带宽充足,俄罗斯vps云主机到全球各地的延迟、速度相对来说都不错。今天,云服务器网(yuntue.com)小编介绍一下俄罗斯vps速度及俄罗斯vps主机推荐!俄...

远程桌面助手为你推荐
配置routecyclesios8空调iphone支持ipad化学品安全技术说明书netbios端口怎么关闭8909端口!其他端口就不用了win10关闭445端口如何进入注册表修改关闭445端口win10关闭445端口在win10 如何关闭445端口的最新相关信息127.0.0.1127.0.0.1打不开ipad上网为什么ipad网速特别慢
免费com域名注册 windows虚机 域名服务器的作用 域名主机基地 安云加速器 外贸主机 华为云主机 搜狗12306抢票助手 工作站服务器 hinet lol台服官网 静态空间 腾讯实名认证中心 cdn加速原理 香港新世界中心 阿里云官方网站 重庆电信服务器托管 智能dns解析 畅行云 网络速度 更多