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

标准互联(450元)襄阳电信100G防御服务器 10M独立带宽

目前在标准互联这边有两台香港云服务器产品,这不看到有通知到期提醒才关注到。平时我还是很少去登录这个服务商的,这个服务商最近一年的促销信息比较少,这个和他们的运营策略有关系。已经从开始的倾向低价和个人用户云服务器市场,开始转型到中高端个人和企业用户的独立服务器。在这篇文章中,有看到标准互联有推出襄阳电信高防服务器100GB防御。有三款促销方案我们有需要可以看看。我们看看几款方案配置。型号内存硬盘IP...

艾云年付125元圣何塞GTT,洛杉矶vps年付85元

艾云怎么样?艾云是一家去年年底成立的国人主机商家,商家主要销售基于KVM虚拟架构的VPS服务,机房目前有美国洛杉矶、圣何塞和英国伦敦,目前商家推出了一些年付特价套餐,性价比非常高,洛杉矶套餐低至85元每年,给500M带宽,可解奈飞,另外圣何塞也有特价机器;1核/1G/20G SSD/3T/2.5Gbps,有需要的朋友以入手。点击进入:艾云官方网站艾云vps促销套餐:KVM虚拟架构,自带20G的防御...

易探云美国云服务器评测,主机低至33元/月,336元/年

美国服务器哪家平台好?美国服务器无需备案,即开即用,上线快。美国服务器多数带防御,且有时候项目运营的时候,防御能力是用户考虑的重点,特别是网站容易受到攻击的行业。现在有那么多美国一年服务器,哪家的美国云服务器好呢?美国服务器用哪家好?这里推荐易探云,有美国BGP、美国CN2、美国高防、美国GIA等云服务器,线路优化的不错。易探云刚好就是做香港及美国云服务器的主要商家之一,我们来看一下易探云美国云服...

远程桌面助手为你推荐
保护器fastreport2Testto中南财经政法大学知识产权研究中心支持ipad齐鲁工业大学高水平学科建设专项勒索病毒win7补丁由于电脑没连接网络,所以成功躲过了勒索病毒,但最近要联网,要提前装什么补丁吗?我电脑断网好久了iexplore.exe应用程序错误iexplore.exe应用程序错误kb4012598win7怎么查看电脑是否安装了 ms17 010迅雷下载速度迅雷下载速度很慢怎么办google分析google分析打不开了?
美国主机空间 美国独立服务器 sockscap 好看的留言 网站实时监控 速度云 免费吧 100m独享 服务器合租 免费智能解析 重庆电信服务器托管 什么是web服务器 域名和主机 rewritecond 免备案jsp空间 空间排行榜 winserver2008 优惠服务器 qq空间打开很慢 更多