others linux服务器运维 django3 监控 k8s golang 数据库 大数据 前端 devops 理论基础 java oracle 运维日志

centos7 开启远程桌面 xrdp实现

访问量:1485 创建时间:2020-06-03

安装

[root@node4 ~]# yum upgrade
[root@node4 ~]# yum -y groupinstall "X Window System"  "GNOME Desktop"
[root@node4 ~]# startx
xauth:  file /root/.serverauth.79149 does not exist
xauth:  file /root/.Xauthority does not exist
xauth:  file /root/.Xauthority does not exist


X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
Build Operating System:  3.10.0-957.1.3.el7.x86_64 
Current Operating System: Linux node4.work.com 3.10.0-1127.el7.x86_64 #1 SMP Tue Mar 31 23:36:51 UTC 2020 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-3.10.0-1127.el7.x86_64 root=/dev/mapper/centos-root ro crashkernel=auto spectre_v2=retpoline rd.lvm.lv=centos/root rhgb quiet LANG=en_US.UTF-8
Build Date: 01 April 2020  05:04:29AM
Build ID: xorg-x11-server 1.20.4-10.el7 
Current version of pixman: 0.34.0
    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jun  3 19:08:45 2020
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
VMware: No 3D enabled (0, Success).
touch: cannot touch ‘/root/.cache/imsettings/log’: No such file or directory

^Cxinit: connection to X server lost

waiting for X server to shut down (II) Server terminated successfully (0). Closing log file.

xinit: unexpected signal 2

[root@node4 ~]# yum install epel* -y
[root@node4 ~]# yum install -y xrdp
[root@node4 ~]# systemctl start xrdp
[root@node4 ~]#  systemctl enable xrdp
Created symlink from /etc/systemd/system/multi-user.target.wants/xrdp.service to /usr/lib/systemd/system/xrdp.service.
[root@node4 ~]# ss -tunlp | grep xrdp
tcp    LISTEN     0      2      127.0.0.1:3350                  *:*                   users:(("xrdp-sesman",pid=80737,fd=7))
tcp    LISTEN     0      2         *:3389                  *:*                   users:(("xrdp",pid=80738,fd=11))

远程登录

登陆评论: 使用GITHUB登陆