Connecting to CentOS 8 Using Windows 10 Remote Desktop

Recommended Follow ↓

This article introduces how to use Windows 10 to remotely connect to a virtual machine desktop (after connecting to the virtual machine using remote connection tools like Xshell), proven to be effective. Feel free to reach out if you have any questions!

1. Install EPEL Repository

First, check if the EPEL repository is installed on the virtual machine.

rpm -qa|grep epel
Connecting to CentOS 8 Using Windows 10 Remote Desktop

I have it installed. If it is not installed, use the command below to install it.

yum install epel-release

2. Install XRDP

Execute the command below to install XRDP.

yum install xrdp

Some prompts may appear; just input ‘y’ for all. The installation result is as follows:

Connecting to CentOS 8 Using Windows 10 Remote Desktop

3. Install TigerVNC Server

Execute the command below to install TigerVNC server.

yum install tigervnc-server

The successful installation result is as follows:

Connecting to CentOS 8 Using Windows 10 Remote Desktop

4. Configure or Disable SELinux

Execute the command below to check the status of SELinux.

/usr/sbin/sestatus -v
Connecting to CentOS 8 Using Windows 10 Remote Desktop

Execute the command below to set SELinux to permissive mode.

setenforce 0

Then check the SELinux status again.

Connecting to CentOS 8 Using Windows 10 Remote Desktop

5. Disable Firewall

Execute the command below to disable the firewall in CentOS 8 (other versions may differ).

systemctl stop firewalld.service

Then execute the command below to check if the firewall is disabled.

systemctl status firewalld.service
Connecting to CentOS 8 Using Windows 10 Remote Desktop

6. Start XRDP Service and Set it to Start on Boot

Execute the command below to start the XRDP service.

systemctl start xrdp

You can execute the command below to check if XRDP is started.

systemctl status xrdp
Connecting to CentOS 8 Using Windows 10 Remote Desktop

Execute the command below to set XRDP to start on boot.

systemctl enable xrdp
Connecting to CentOS 8 Using Windows 10 Remote Desktop

7. Connect Using Windows 10

Search for Remote Desktop in the lower left corner.

Connecting to CentOS 8 Using Windows 10 Remote Desktop

Open Windows Remote Desktop and enter the IP of the virtual machine.

Connecting to CentOS 8 Using Windows 10 Remote Desktop

In the pop-up XRDP user verification interface, enter the username and password to connect!

Connecting to CentOS 8 Using Windows 10 Remote Desktop

Author:Faith_xzc

https://blog.csdn.net/weixin_44480968/article/details/124811330

– EOF –Connecting to CentOS 8 Using Windows 10 Remote Desktop

Add the homepage owner’s WeChat, not only Linux skills +1

Connecting to CentOS 8 Using Windows 10 Remote DesktopConnecting to CentOS 8 Using Windows 10 Remote Desktop

The homepage owner will regularly share Linux-relatedtools,resources and selectedtechnical articles on personal WeChat, and will share some interesting activities, job referrals as well as how to use technology for side projects from time to time.

Connecting to CentOS 8 Using Windows 10 Remote Desktop

Add WeChat to open a window

Recommended Reading Click the title to jump

1. 7 Uses of the Find Command

2. Looking forward to it! 5 New Features of Python 3.11

3. Linux Network Basics and Performance Optimization

Did you gain something after reading this article? Please share it with more people.

Recommend following ‘Linux Enthusiasts’ to improve Linux skills.

Likes and views are the biggest support ❤️

Leave a Comment