配置NX远程桌面Word格式文档下载.docx
《配置NX远程桌面Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《配置NX远程桌面Word格式文档下载.docx(20页珍藏版)》请在冰豆网上搜索。
Introduction
Inmostcases,theLinuxserversIsetupas
AmazonEC2
instancesareusedtohosttheOracledatabasesoftwareandonlyrequireuseoftheoperatingsystemCommand-LineInterface(CLI).ThisisbeneficialbecauseIonlyneedregisteranAmazonMachineImage(AMI)witha
Minimal
or
BasicServer
OSinstallationandcanaddonlythoserequiredLinuxpackagesneededtosupportthedatabase.However,therearesituationswhereIneedtoaccessagraphicaldesktopinordertoinstallorruncertainGraphicalUserInterface(GUI)applications.
ThisguideprovidesthestepsneededtoaddtheGNOMEDesktoptoaRedHatEnterpriseLinux6.2AMIwheretheOSwasinstalledwithouttheXWindowSystem.AlthoughthereareseveraloptionstoenablearemotedesktoponanEC2instance,Iprefertouse
NXFreeEdition(FreeNX).
FreeNXisaprogramwhichallowsuserstorunremoteX11sessionsfromclientsrunningonWindows,Linux,MacOSXandSolarisplatformstoserversrunning,atpresent,onLinuxorSolaris.
Thisguideassumesyouhavean
AmazonWebServicesaccount
andknowhowtocreatenewEC2instancesfromanAMI,key-pairsandsecuritygroupswithinthe
AWSManagementConsole.
AddGNOMEDesktopandXWindowSystem
TheRedHatEnterpriseLinux6.2AMI,likemostcommunityAMIs,doesnotincludetheGNOMEDesktoporXWindowSystemsoftware.Inthissection,therequiredGUIpackageswillbeinstalledtotherunninginstanceusing
yum.
InstallDesktopPackages
#yum-ygroupinstall"
Desktop"
"
DesktopPlatform"
XWindowSystem"
Fonts"
YoucanalsoinstallthefollowingoptionalGUIpackages.
GraphicalAdministrationTools"
InternetBrowser"
GeneralPurposeDesktop"
OfficeSuiteandProductivity"
GraphicsCreationTools"
Whenusing
yumgroupinstall,the
groupinstall
optiononlyinstalls
default
and
mandatory
packagesfromthegroup.Therearetimeswhenyoualsowanttoinclude
optional
packageswithinagroup.Ihavenotfiguredout(yet)howtocontrolwhichpackagetypestoinstall(grouppackage"
policy"
)fromthecommand-lineusing
yum.TheonlymethodIknowoftoalsoinclude
packagesistoeditthe
/etc/yum.conf
fileandaddthefollowingtothe
[main]
section:
group_package_types=defaultmandatoryoptional
ThereasonImentionthisisbecauseIwantedtoinstall"
TerminalemulatorfortheXWindowSystem"
(xterm)whichisunderthegroup"
LegacyXWindowSystemcompatibility"
.
xterm
happenstobeanoptionalpackageanddidnotgetinstalleduntilIadded
group_package_types=defaultmandatoryoptional
to/etc/yum.conf.
Ididfindaplug-infor
yum
thatallowsuserstospecifywhichpackagetypeswithinapackagegroupshouldbeinstalledwhenusing
yumgroupinstall.
EnableGNOME
SincetheserverwaspreviouslyrunningonCLImode,weneedtochangetheinitializationprocessforthemachinetobootupinGUImode.
Open
/etc/inittab
usingatexteditorandchangefollowingline:
id:
3:
initdefault:
To:
5:
Aftermakingthechange,rebootthemachine.
#init6
InstallNXFreeEditionforLinuxtoAmazonEC2Instance
Inthissection,NXFreeEditionforLinux-x86_64willbeinstalledontheEC2instance.
RHELEC2Instance
DownloadandinstalltheNXFreeEditionforLinuxpackageontheAmazonEC2instancefrom
NoMachine.
NXFreeEditionforLinux-i386
NXFreeEditionforLinux-x86_64
InstallationofNXServerforLinuxrequiresthedownloadandinstallationofthreepackages:
client,nodeandserver.Theclientisneededbecauseitshipslibrariesusedbythenode.Thenodeisneededbecauseitshipstoolsneededbytheserver.Furthermore,theSSHserverdaemon(SSHD)needstobeupandrunningoneachoftheNXNodemachinessinceNXreliesonthemechanismprovidedbytheSSHsubsystemforhandlinguserauthentication.
#rpm-inxclient-3.5.0-7.x86_64.rpm
#rpm-inxnode-3.5.0-9.x86_64.rpm
#rpm-inxserver-3.5.0-11.x86_64.rpm
IfyouintendtosupportprintingfromtheNXsession,youneedtosetproperpermissionsonyourIPPbackendfor"
IPPCUPS"
printing.
#chmod755/usr/lib/cups/backend/ipp
TheNXservicecanbecontrolledbythecommand
/usr/NX/bin/nxserver--status|--start|--stop|--restart.Forexample,
[root@ip-10-29-162-247~]#/usr/NX/bin/nxserver--status
NX>
900Connectingtoserver...
110NXServerisrun