这篇文章主要介绍“Centos7.7中怎么安装Xrdp”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“Centos7.7中怎么安装Xrdp”文章能帮助大家解决问题。

Xrdp 是 Microsoft 远程桌面协议 (RDP) 的开源实现,允许您以图形方式控制远程系统。使用 RDP ,您可以登录到远程计算机并创建一个真实的桌面会话,就像您已登录到本地计算机一样。

系统环境
服务端:Centos7.7 Minimal
客户端:Windows10
安装桌面环境

本实验中安装的系统没有安装桌面环境,我们需要自己安装,如果已经安装桌面了清跳过这一步。Centos7提供了”Cinnamon Desktop”,”MATE Desktop”,”GNOME Desktop”,”KDE Plasma Workspaces”,”LXQt Desktop”,”Xfce”让我们安装。

下面的命令列出可用环境组:

[root@localhost~]#yumgrouplistLoadedplugins:fastestmirrorThereisnoinstalledgroupsfile.Mayberun:yumgroupsmarkconvert(seemanyum)Loadingmirrorspeedsfromcachedhostfile*base:mirrors.tuna.tsinghua.edu.cn*epel:mirrors.aliyun.com*extras:mirrors.aliyun.com*updates:mirrors.aliyun.comAvailableEnvironmentGroups:MinimalInstallComputeNodeInfrastructureServerFileandPrintServerCinnamonDesktopMATEDesktopBasicWebServerVirtualizationHostServerwithGUIGNOMEDesktopKDEPlasmaWorkspacesDevelopmentandCreativeWorkstationAvailableGroups:CinnamonCompatibilityLibrariesConsoleInternetToolsDevelopmentToolsEducationalSoftwareElectronicLabFedoraPackagerGeneralPurposeDesktopGraphicalAdministrationToolsHaskellLXQtDesktopLegacyUNIXCompatibilityMATEMilkymistScientificSupportSecurityToolsSmartCardSupportSystemAdministrationToolsSystemManagementTurboGearsapplicationframeworkXfceDone

我们可以选择自己喜欢的桌面环境,在这里选择安装Xfce桌面:

[root@localhost~]#yum-yinstallepel-release&&yumgroupinstallXfce安装Xrdp

[root@localhost~]#yum-yinstallxrdp

安装完成之后,设置开机启动并启动xrdp

[root@localhost~]#systemctlstartxrdp&&systemctlenablexrdp

创建~/.Xclients,设置默认启动xfce4桌面

[root@localhost~]#echo"xfce4-session">~/.Xclients[root@localhost~]#chmod+x.Xclients

关于“Centos7.7中怎么安装Xrdp”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识,可以关注亿速云行业资讯频道,小编每天都会为大家更新不同的知识点。