RHEL 8 安裝遠端桌面(xrdp)服務

 

RHEL 7 的安裝要參考這一篇

RHEL 8 安裝 遠端桌面(xrdp) 服務

先安裝最新版的 EPEL【Extra Packages for Enterprise Linux】

CentOS 6 安裝 EPEL 看這裡

RHEL 7 安裝 EPEL 看這裡

# yum install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:47:00 ago on Thu 28 May 2020 04:31:29 PM CST.
epel-release-latest-8.noarch.rpm                                                                           26 kB/s |  22
Dependencies resolved.
=========================================================================================================================
 Package                            Arch                         Version                         Repository
=========================================================================================================================
Installing:
 epel-release                       noarch                       8-8.el8                         @commandline

Transaction Summary
=========================================================================================================================
Install  1 Package

Total size: 22 k
Installed size: 32 k
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :
  Installing       : epel-release-8-8.el8.noarch
  Running scriptlet: epel-release-8-8.el8.noarch
  Verifying        : epel-release-8-8.el8.noarch
Installed products updated.

Installed:
  epel-release-8-8.el8.noarch

Complete!

 

安裝 xrdp RPM套件

# yum install xrdp tigervnc-server -y
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Extra Packages for Enterprise Linux Modular 8 - x86_64                                 63 kB/s | 118 kB     00:01
Extra Packages for Enterprise Linux 8 - x86_64                                        1.1 MB/s | 6.8 MB     00:06
Dependencies resolved.
======================================================================================================================
 Package                  Arch            Version                 Repository                                     Size
======================================================================================================================
Installing:
 xrdp                     x86_64          1:0.9.13-1.el8          epel                                          444 k
 tigervnc-server          x86_64          1.9.0-9.el8             ucf-rhel-8-for-x86_64-appstream-rpms          252 k

Transaction Summary
======================================================================================================================
Install  2 Packages

Total download size: 696 k
Installed size: 3.1 M
Downloading Packages:
(1/2): tigervnc-server-1.9.0-9.el8.x86_64.rpm                                         2.7 MB/s | 252 kB     00:00
(2/2): xrdp-0.9.13-1.el8.x86_64.rpm                                                   1.5 MB/s | 444 kB     00:00
----------------------------------------------------------------------------------------------------------------------
Total                                                                                 709 kB/s | 696 kB     00:00
warning: /var/cache/dnf/epel-fafd94c310c51e1e/packages/xrdp-0.9.13-1.el8.x86_64.rpm: Header V3 RSA/SHA256 Signature, k                            ey ID 2f86d6a1: NOKEY
Extra Packages for Enterprise Linux 8 - x86_64                                        1.6 MB/s | 1.6 kB     00:00
Importing GPG key 0x2F86D6A1:
 Userid     : "Fedora EPEL (8) "
 Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                              1/1
  Installing       : tigervnc-server-1.9.0-9.el8.x86_64                                                           1/2
  Running scriptlet: tigervnc-server-1.9.0-9.el8.x86_64                                                           1/2
  Installing       : xrdp-1:0.9.13-1.el8.x86_64                                                                   2/2
  Running scriptlet: xrdp-1:0.9.13-1.el8.x86_64                                                                   2/2
  Verifying        : xrdp-1:0.9.13-1.el8.x86_64                                                                   1/2
  Verifying        : tigervnc-server-1.9.0-9.el8.x86_64                                                           2/2
Installed products updated.

Installed:
  xrdp-1:0.9.13-1.el8.x86_64                            tigervnc-server-1.9.0-9.el8.x86_64

Complete!

 

啟動 xrdp 服務

# systemctl start xrdp
# systemctl enable xrdp
Created symlink /etc/systemd/system/multi-user.target.wants/xrdp.service → /usr/lib/systemd/system/xrdp.service.
# systemctl status xrdp
● xrdp.service - xrdp daemon
   Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
   Active: active (running) since Thu 2020-05-28 17:23:57 CST; 9s ago
     Docs: man:xrdp(8)
           man:xrdp.ini(5)
 Main PID: 8704 (xrdp)
    Tasks: 1 (limit: 74692)
   Memory: 1.0M
   CGroup: /system.slice/xrdp.service
           └─8704 /usr/sbin/xrdp --nodaemon

May 28 17:23:57 foundation28.ilt.example.com systemd[1]: Started xrdp daemon.
May 28 17:23:57 foundation28.ilt.example.com xrdp[8704]: (8704)(140388443059648)[INFO ] starting xrdp with pid 8704
May 28 17:23:57 foundation28.ilt.example.com xrdp[8704]: (8704)(140388443059648)[INFO ] address [0.0.0.0] port [3389] mo>
May 28 17:23:57 foundation28.ilt.example.com xrdp[8704]: (8704)(140388443059648)[INFO ] listening to port 3389 on 0.0.0.0
May 28 17:23:57 foundation28.ilt.example.com xrdp[8704]: (8704)(140388443059648)[INFO ] xrdp_listen_pp done

 

新增 firewall 規則

# firewall-cmd --list-all
trusted (active)
  target: ACCEPT
  icmp-block-inversion: no
  interfaces: br0 ens160
  sources:
  services:
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

# firewall-cmd --zone=trusted --add-port=3389/tcp --permanent
success
# firewall-cmd --reload
success
# firewall-cmd --list-all
trusted (active)
  target: ACCEPT
  icmp-block-inversion: no
  interfaces: br0 ens160
  sources:
  services:
  ports: 3389/tcp
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

 

跟前一代 RHEL7 的時候比較,已經可以支援到 32bit ,全螢幕比較正常及穩定!

image

本篇發表於 Bookmark, CentOS 8, Linux, RHEL 8。將永久鏈結加入書籤。

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s