一个伪linux粉丝的blog

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

centos-xrdp

1月 14, 2022 274点热度 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个问题,导致无法连接。

端口问题

[[email protected] ~]# 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
[[email protected] ~]# systemctl stop firewalld.service
[[email protected] ~]# 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
最后更新:1月 14, 2022

wanjie

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

点赞
< 上一篇
下一篇 >

文章评论

取消回复

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据。

归档
分类
  • network / 324篇
  • Uncategorized / 116篇
  • unix/linux / 114篇
  • 业界资讯 / 38篇
  • 公司杂事 / 11篇
  • 数码影像 / 12篇
  • 美剧 / 3篇
  • 美图共赏 / 20篇
  • 英语学习 / 3篇
标签聚合
Android 中国电信 网通 VPS wget Linux iMac gitlab Google Adwords Ubuntu Nginx Google debian Google Voice brew 泰国 nexus docker ldap k8s kernel 网站运营 dreamhost空间 刷机 jira 虚拟主机 邮件归档 Opera Mini dreamhost d90

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

Theme Kratos Made By Seaton Jiang