Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install xrdp under centos7

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install xrdp under centos7. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1 install xrdp

(please check the number of digits of your system. Enter arch on the command line. Select i386 if it is 32 bits. If it is 64 bits, select the name of x86ipele package that will change accordingly. The way to find it is to go to the mirror website http://mirrors.ustc.edu.cn/fedora/epel/7 to enter the corresponding directory and find the RPM package that starts with epel-release.)

# wget http://mirrors.ustc.edu.cn/fedora/epel/7/x86_64/e/epel-release-7-7.noarch.rpm

# rpm-Uvh epel-release-7-7.noarch.rpm

# yum install xrdp

2 install tigervnc

# yum install tigervnc tigervnc-server

3 set the vnc password for the user

# vncpasswd root / / set the vnc password for root users. If you need other users to log in with vnc, / / you can also set the password passwd user for them.

4 configure the xrdp.ini file, otherwise the remote connection may not succeed

# vim / etc/xrdp/xrdp.ini

Change max_bpp=32 to max_bpp=24

5 configure SELinux, otherwise the xrdp service may not be started or an error may occur

Chcon-t bin_t / usr/sbin/xrdp

Chcon-t bin_t / usr/sbin/xrdp-sesman

6 start the xrdp service and set it to boot

# systemctl start xrdp

# systemctl enable xrdp

7 check whether the xrdp service starts normally

# systemctl status xrdp.service / / normal if you see Active

# netstat-antup | grep xrdp / / check whether xrdp and xrdp-sesman start normally

8 turn off the firewall or open firewall port 3389

# systemctl stop firewalld.service

# systemctl disable firewalld.servie

Or open port 3389.

# firewall-cmd-permanent-zone=public-add-port=3389/tcp

# firewall-cmd-reload

Thank you for reading! This is the end of this article on "how to install xrdp under centos7". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report