Moonglade

Modern Markdown blogging with AI-powered localization and search.


Setting Up and Using RDP Server for Remote Control

This article provides a detailed guide on setting up the xrdp remote desktop service on CentOS 7 and Ubuntu systems. For CentOS 7, the article first demonstrates installing xrdp and tigervnc-server via yum, emphasizing the necessity of starting the service, enabling it to start on boot, and verifying port 3389. It specifically points out that when SELinux is enabled, the security context of xrdp-related binary files must be adjusted, and the 3389/tcp port must be opened in the firewall; otherwise, connection failures will occur. Subsequently, the article explains how to install the GNOME or Xfce desktop environment, switch the default session to the lighter Xfce by modifying the ~/.Xclients file, and finally restart the service to apply the configuration. For Ubuntu systems, since directly installing xrdp may cause compatibility issues, it is recommended to download and execute the official xrdp installation script for deployment. To switch the desktop environment in Ubuntu, you need to edit the /etc/xrdp/startwm.sh configuration file, comment out the original session invocation, and add the target desktop command (such as gnome-session), followed by restarting the service. The article also mentions using the Remmina client for remote connection testing and provides a meeting recording link along with several related technical blogs for reference, aiming to help readers quickly build a stable Linux remote desktop environment.

Views 134
CentOS7 GNOME Ubuntu Server centos devops xrdp