一个伪linux粉丝的blog

  1. 首页
  2. unix/linux
  3. 正文

centos-xrdp

14 1 月, 2022 678点热度 0人点赞 0条评论

缘起

很久没用过桌面版centos了,才发现有一个叫xrdp的东东 记录一下. Xrdp is an open-source implementation of the Microsoft Remote Desktop Protocol (RDP) that allows you to graphically control a remote system.
Xrdp 移植于微软的rdp,这个非常熟悉了 。

安装

1
2
3
4
5
6
sudo dnf groupinstall "Server with GUI"
sudo dnf install epel-release
</code><code class="terminal-line">sudo dnf install xrdp
sudo systemctl enable xrdp --now
sudo systemctl status xrdp
 

 

使用

准备用远程桌面工具连接时发现2个问题,导致无法连接。

端口问题

[root@test-centos-gui ~]# netstat -atnpl | grep 3389
tcp6 0 0 :::3389 :::* LISTEN 6375/xrdp
只开了ipv6下的3389端口
看了一下配置文件,没什么特别,索性直接关闭ipv6把,关闭后。ipv4下的3389正常启动了。

# cat /etc/xrdp/xrdp.ini |grep 3389
; port=3389
; port=tcp://.:3389 127.0.0.1:3389
; port=tcp://:3389 *:3389
; port=tcp://:3389 192.168.1.1:3389
; port=tcp6://.:3389 ::1:3389
; port=tcp6://:3389 *:3389
; port=tcp6://{}:3389 {FC00:0:0:0:0:0:0:1}:3389
port=3389
#port=ask3389

 

防火墙问题

然后发现还是不能远程访问,只能22端口,其他端口都被拒绝,肯定有防火墙,关闭掉。
# firewall-cmd --state
running
[root@dsp-test-centos-gui ~]# systemctl stop firewalld.service
[root@dsp-test-centos-gui ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

最终效果

相关文章:

  1. 有史以来最全面的UNIX/Linux命令Cheatcheet
  2. grub慢
  3. using msmtp send mail with gmail
  4. centos vps服务优化
标签: CentOS xrdp
最后更新:14 1 月, 2022

wanjie

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

This site uses Akismet to reduce spam. Learn how your comment data is processed.

归档
分类
  • network / 332篇
  • Uncategorized / 116篇
  • unix/linux / 121篇
  • 业界资讯 / 38篇
  • 公司杂事 / 11篇
  • 数码影像 / 12篇
  • 美剧 / 3篇
  • 美图共赏 / 21篇
  • 英语学习 / 3篇
标签聚合
kernel ssh 邮件归档 Google dreamhost空间 docker debian Ubuntu d90 openssl 泰国 google-chrome ldap VPS gitlab nexus k8s deepseek Google Voice 天翼live dreamhost 网站运营 浏览器 squid 虚拟主机 wget jira postgres kubectl Nginx

COPYRIGHT © 2008-2025 wanjie.info. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang