win10中mstsc远程Centos-Stream 9图形化界面

文章目录

  • 1 前置状态
  • 2 安装配置XRDP
  • 3 关闭SELinux
    • 3.1 查看selinux状态
    • 3.2 关闭selinux
  • 4 启动XRDP
  • 5 Win10远程连接测试

1 前置状态

  1. 已安装CentOS9桌面版;
  2. Windows10。

2 安装配置XRDP

sudo yum install epel-release
sudo yum install xrdp
sudo yum install tigervnc-server
vncpasswd root					# 为root用户设置vnc密码
systemctl stop firewalld		# 关闭防火墙
sudo systemctl disable firewalld		# 禁止防火墙开机自启

3 关闭SELinux

3.1 查看selinux状态

sestatus

3.2 关闭selinux

sudo gedit /etc/selinux.config
# 修改 SELINUX=enforcing 为 SELINUX=disabled
SELINUX=disabled
## 保存文件

4 启动XRDP

systemctl start xrdp
sudo systemctl enable xrdp

5 Win10远程连接测试

Win + R输入mstsc,输入CentOS9操作系统IP地址和root账户

win10中mstsc远程Centos-Stream 9图形化界面_第1张图片

登录成功

你可能感兴趣的:(linux,centos,linux,运维)