In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to install a Xrdp server in CentOS8", so the editor summarizes the following, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to install a Xrdp server in CentOS8" article.
Xrdp is an open source implementation of Microsoft remote Desktop Protocol (RDP) that allows you to control remote systems through a graphical interface. With RDP, you can log in to a remote machine and create a real desktop session, just as you log on to a local machine.
Install the desktop environment
Typically, the Linux server does not have a desktop environment installed. If the computer you are connecting to does not have GUI, your first step is to install GUI. Otherwise, skip this step.
Gnome is the default desktop environment in CentOS 8. To install Gnome on a remote computer, run the following command
Sudo dnf groupinstall "Server with GUI"
Depending on your system, it may take some time to download and install Gnome packages and dependencies.
Install Xrdp
The Xrdp package is included in the standard CentOS 8 repository. To install it, run:
Sudo dnf install xrdp
After the installation process is complete, set up random startup and start the Xrdp service:
Sudo systemctl enable xrdp-now
You can verify that Xrdp is running by typing the following command:
Sudo systemctl status xrdp
The output will look like this:
Xrdp.service-xrdp daemon Loaded: loaded (/ usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2020-02-02 18:30:43 UTC; 11s ago configuration Xrdp
The Xrdp configuration file is located in the / etc/xrdp directory. For regular Xrdp connections, simply set Xrdp to use Gnome and open the / etc/xrdp/xrdp.ini file in a text editor:
Sudo nano / etc/xrdp/xrdp.ini
Add the following line at the end of the / etc/xrdp/xrdp.ini file:
Exec gnome-session
Save the file and restart the Xrdp service:
Sudo systemctl restart xrdp configuration Firewall
By default, Xrdp listens on port 3389 on all interfaces. If you are running a firewall on a CentOS computer, you need to add a rule to allow traffic on the Xrdp port.
Typically, you only want to allow access to the Xrdp server from a specific IP address or IP range. For example, to allow only connections from 192.168.1.0 Compact 24, enter the following command:
Sudo firewall-cmd-new-zone=xrdp-permanentsudo firewall-cmd-zone=xrdp-add-port=3389/tcp-permanentsudo firewall-cmd-zone=xrdp-add-source=192.168.1.0/24 permanentsudo firewall-cmd reload
To allow 3389 of traffic to be migrated from anywhere, use the following command. For security reasons, it is strongly recommended that you do not access from anywhere.
Sudo firewall-cmd-add-port=3389/tcp-permanentsudo firewall-cmd-reload
To improve security, consider setting Xrdp to listen only on localhost and create SSH tunnels to securely forward traffic from port 3389 on the local computer to the same port on the server.
Another security option is to install OpenVPN and connect to the Xrdp server over a private network.
Connect to a Xrdp server
Now that the Xrdp server is configured, it's time to open the local Xrdp client and connect to the remote CentOS 8 system.
Windows users can use the default RDP client. Type remote Desktop in the Windows search bar, and then click remote Desktop Link. This opens the RDP client. In the computer field, type the IP address of the remote server, and then click Connect.
On the login screen, enter your user name and password, and then click OK.
After logging in, you should see the default Gnome desktop. It should look like this:
You can now interact with remote desktops from your local computer using the keyboard and mouse.
If you are using macOS, you can install Microsoft remote Desktop applications from Mac App Store. Linux users can use RDP clients, such as Remmina or Vinagre.
The above is about the content of this article on "how to install Xrdp server in CentOS8". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.