Centos7安装Xrdp远程桌面服务

  导读      <强> Xrdp是微软远程桌面协议(RDP)的一个开源实现,它允许以图形方式控制远程系统。使用RDP,您可以登录到远程计算机并创建一个真正的桌面会话,就像您登录到本地计算机一样。      <强>系统环境   
      <李>服务端:   Centos7.7最小李   <李>客户端:Windows10李
     <>强安装桌面环境   

本实验中安装的系统没有安装桌面环境,我们需要自己安装,如果已经安装桌面了清跳过这一步.Centos7提供了“肉桂Desktop",“配偶Desktop",“GNOME Desktop",“KDE等离子Workspaces",“LXQt Desktop",“Xfce"让我们安装。

  

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

  
 [root@localhost  ~] #, yum  grouplist
  Loaded 插件:fastestmirror
  There  is  no  installed  groups 文件。
  或者运行:yum  groups  mark  convert (阅读;man 百胜)
  Loading  mirror  speeds 得到cached  hostfile
  ,*基础:mirrors.tuna.tsinghua.edu.cn
  ,* epel: mirrors.aliyun.com
  ,*临时演员:mirrors.aliyun.com
  ,*更新:mirrors.aliyun.com
  Available  Environment 组:
  ,,Minimal 安装
  ,,Compute 节点
  ,,Infrastructure 服务器
  ,,File 以及Print 服务器
  ,,Cinnamon 桌面
  ,,MATE 桌面
  ,,Basic  Web 服务器
  ,,Virtualization 主机
  ,,Server  with  GUI
  ,,GNOME 桌面
  ,,KDE  Plasma 工作区
  ,,Development 以及Creative 工作站
  Available 组:
  ,,肉桂
  ,,Compatibility 库
  ,,Console  Internet 工具
  ,,Development 工具
  ,,Educational 软件
  ,,Electronic 实验室
  ,,Fedora 包装机
  ,,General  Purpose 桌面
  ,,Graphical  Administration 工具
  Haskell。才能
  ,,LXQt 桌面
  ,,Legacy  UNIX 兼容性
  ,,伴侣
  Milkymist。才能
  ,,Scientific 支持
  ,,Security 工具
  ,,Smart  Card 支持
  ,,System  Administration 工具
  ,,System 管理
  ,,TurboGears  application 框架
  Xfce。才能
  之前完成
  

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

  
 [root@localhost  ~] #, yum  -y  install  epel-release ,,, yum  groupinstall  Xfce 
     <>强安装Xrdp   
 [root@localhost  ~] #, yum  -y  install  xrdp 
  

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

  
 [root@localhost  ~] #, systemctl  start  xrdp ,,, systemctl  enable  xrdp 
  

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

  
 [root@localhost  ~] #, echo “xfce4-session",在~/.Xclients
  (root@localhost  ~) #, chmod  + x  .Xclients 
     <强>在客户端远程连接   

   Centos7安装Xrdp远程桌面服务

  

   Centos7安装Xrdp远程桌面服务

  

   Centos7安装Xrdp远程桌面服务

     <强>总结   

安装Xrdp服务器允许您通过图形界面从本地管理CentOS 7服务器。

  

本文原创地址:   https://www.linuxprobe.com/centos7-xrdp-remote-desktop.html

Centos7安装Xrdp远程桌面服务