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

7月RAKsmart独立服务器和站群服务器多款促销 G口不限量更低

如果我们熟悉RAKsmart商家促销活动的应该是清楚的,每个月的活动看似基本上一致。但是有一些新品或者每个月还是有一些各自的特点的。比如七月份爆款I3-2120仅30美金、V4新品上市,活动期间5折、洛杉矶+硅谷+香港+日本站群恢复销售、G口不限流量服务器比六月份折扣力度更低。RAKsmart 商家这个月依旧还是以独立服务器和站群服务器为主。当然也包括有部分的低至1.99美元的VPS主机。第一、I...

CloudCone中国春节优惠活动限定指定注册时间年付VPS主机$13.5

CloudCone 商家产品还是比较有特点的,支持随时的删除机器按时间计费模式,类似什么熟悉的Vultr、Linode、DO等服务商,但是也有不足之处就在于机房太少。商家的活动也是经常有的,比如这次中国春节期间商家也是有提供活动,比如有限定指定时间段之前注册的用户可以享受年付优惠VPS主机,比如年付13.5美元。1、CloudCone新年礼物限定款仅限2019年注册优惠购买,活动开始时间:1月31...

NameCheap优惠活动 新注册域名38元

今天上午有网友在群里聊到是不是有新注册域名的海外域名商家的优惠活动。如果我们并非一定要在国外注册域名的话,最近年中促销期间,国内的服务商优惠力度还是比较大的,以前我们可能较多选择海外域名商家注册域名在于海外商家便宜,如今这几年国内的商家价格也不贵的。比如在前一段时间有分享到几个商家的年中活动:1、DNSPOD域名欢购活动 - 提供域名抢购活动、DNS解析折扣、SSL证书活动2、难得再次关注新网商家...

远程桌面助手为你推荐
计划ipad支持ipad支持ipad请务必阅读正文之后的免责条款部分css3圆角怎样用css实现圆角矩形?itunes备份itunes 里面的资料如何备份?127.0.0.1为什么输入127.0.0.1无法打开页面用itunes备份如何使用itunes完整备份iPhone资料重庆电信宽带测速重庆电信光纤宽带网络,内外网络和电脑等设备都没发生变化的情况下,办理了从20M提速到100M业务。联通iphone4联通iphone4好用吗
网站空间域名 腾讯云盘 BWH idc测评网 mediafire下载 godaddy域名优惠码 patcha 嘟牛 100m免费空间 免费个人空间申请 刀片服务器是什么 中国网通测速 空间技术网 四核服务器 怎么建立邮箱 ca187 四川电信商城 万网主机管理 lamp架构 免费个人网页 更多