配置NX远程桌面.docx
- 文档编号:548731
- 上传时间:2022-10-11
- 格式:DOCX
- 页数:20
- 大小:410.78KB
配置NX远程桌面.docx
《配置NX远程桌面.docx》由会员分享,可在线阅读,更多相关《配置NX远程桌面.docx(20页珍藏版)》请在冰豆网上搜索。
配置NX远程桌面
RemoteDesktoptoanAmazonEC2Instance
byJeffHunter,Sr.DatabaseAdministrator
Contents
Introduction
AddGNOMEDesktopandXWindowSystem
InstallNXFreeEditionforLinuxtoAmazonEC2Instance
InstallNXClientonYourLocalMachine
LogIntoRemoteGraphicalDesktopusingNX
AbouttheAuthor
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.
#yum-ygroupinstall"GraphicalAdministrationTools"
#yum-ygroupinstall"InternetBrowser"
#yum-ygroupinstall"GeneralPurposeDesktop"
#yum-ygroupinstall"OfficeSuiteandProductivity"
#yum-ygroupinstall"GraphicsCreationTools"
Whenusing yumgroupinstall,the groupinstall optiononlyinstalls default and mandatory packagesfromthegroup.Therearetimeswhenyoualsowanttoinclude optional packageswithinagroup.Ihavenotfiguredout(yet)howtocontrolwhichpackagetypestoinstall(grouppackage"policy")fromthecommand-lineusing yum.TheonlymethodIknowoftoalsoinclude optional 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.
#yum-ygroupinstall"LegacyXWindowSystemcompatibility"
Ididfindaplug-infor yum thatallowsuserstospecifywhichpackagetypeswithinapackagegroupshouldbeinstalledwhenusing yumgroupinstall.
EnableGNOME
SincetheserverwaspreviouslyrunningonCLImode,weneedtochangetheinitializationprocessforthemachinetobootupinGUImode.
Open /etc/inittab usingatexteditorandchangefollowingline:
id:
3:
initdefault:
To:
id:
5:
initdefault:
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...
NX>110NXServerisrun
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 配置 NX 远程桌面