0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Rocky Linux 10にgnome-remote-desktopでRDP接続する

0
Posted at

What's?

Rocky Linux 10にVNCサーバをインストールしようとしたら、TigerVNCが削除されていました。

今はgnome-remote-desktopを使ってRDP接続するようなので、こちらを調べてみました。

X.orgからWaylandへ

Rocky Linux 10はX.orgをやめ、Waylandに移行したようです。

Red Hat Enterprise Linux 10でも書かれています。

xorg-x11-server is removed from RHEL 10

The X.Org server, an implementation of the X Window System, was previously deprecated and is removed from RHEL 10. Note that the X11 protocol is not removed, which means that most applications will remain compatible through the Xwayland compositor.

Removed features / Graphics infrastructures

詳しくはこちらへ。

Red Hat Enterprixe Linux 10およびそのクローンでは、X.orgは使えないようになったと考えた方がよさそうですね。

そしてTigerVNCの削除についてはこちらに書かれています。

Removed features / Desktop

TigerVNCはgnome-remote-desktopに置き換えられ、RDP接続を行うことと書かれています。

TigerVNC is replaced by the gnome-remote-desktop daemon, which is a remote desktop server that uses the RDP protocol.

詳しくはこちらへ。

設定方法はシングルユーザ、マルチユーザの2つが書かれていますが、今回はシングルユーザ用で設定してみます。

環境

今回の環境はこちらです。Rocky Linux 10ですね。

$ cat /etc/redhat-release
Rocky Linux release 10.2 (Red Quartz)


$ uname -srvmpio
Linux 6.12.0-211.26.1.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jun 21 16:49:12 UTC 2026 x86_64 unknown unknown GNU/Linux

準備

日本語化とデスクトップ環境の導入。

$ sudo dnf install -y glibc-langpack-ja
$ sudo localectl set-locale LANG=ja_JP.utf8
$ sudo localectl set-keymap jp106
$ sudo timedatectl set-timezone Asia/Tokyo
$ sudo dnf install -y langpacks-ja


$ sudo dnf group install -y 'Server with GUI'

ちなみにServer with GUIをインストールすると、gnome-remote-desktopも一緒にインストールされます。

またグラフィカルモードで起動するようにしておきましょう。

$ sudo systemctl set-default graphical

RDP接続できるようにgnome-remote-desktopを設定する

それでは、こちらに従って進めてみましょう。

Remotely accessing the desktop / Connecting to a remote desktop session on a headless server for a single user

gnome-remote-desktopがインストールされていることを確認。

$ dnf list | grep gnome-remote-desktop
gnome-remote-desktop.x86_64                            49.3-3.el10_2                      @appstream

freerdpをインストール。

$ sudo dnf install freerdp

firewalldの設定を変更し、3389ポートへの接続を許可します。

$ sudo firewall-cmd --permanent --add-port=3389/tcp
$ sudo firewall-cmd --reload

TLS証明書用のディレクトリを作成。

$ mkdir -p ~/.local/share/gnome-remote-desktop
$ winpr-makecert -silent -rdp -path ~/.local/share/gnome-remote-desktop tls

RDP用のTLS証明書の作成。

$ grdctl --headless rdp set-tls-key ~/.local/share/gnome-remote-desktop/tls.key
$ grdctl --headless rdp set-tls-cert ~/.local/share/gnome-remote-desktop/tls.crt

コマンド実行時にこういうメッセージが表示されても気にしなくて大丈夫です。

Init TPM credentials failed because No TPM device found, using GKeyFile as fallback.

クレデンシャルの作成。ここでユーザ名とパスワードを求められ、これがRDP接続時に必要になります。

$ grdctl --headless rdp set-credentials

有効化。

$ grdctl --headless rdp enable

シングルユーザサービス用のヘッドレスサーバを有効にします。

$ systemctl --user enable --now gnome-remote-desktop-headless.service
$ sudo systemctl enable --now gnome-headless-session@[ユーザー名].service

これでRDP接続できるようになります。

image.png

Remminaで接続した場合に、以下のようなメッセージがsystemctl --user status gnome-remote-desktop-headlessで確認できた場合は、色の設定を調整してみましょう。

 7月 04 22:18:32 localhost gnome-remote-de[1929]: [RDP] Client did not advertise support for the Graphics Pipeline, closing connection
 7月 04 22:18:32 localhost gnome-remote-desktop-daemon[1929]: [22:18:32:861] [1929:00001d21] [ERROR][com.freerdp.core.peer] - [rdp_peer_handle_state_demand_active]: [CONNE>
 7月 04 22:18:32 localhost gnome-remote-desktop-daemon[1929]: [22:18:32:861] [1929:00001d21] [ERROR][com.freerdp.core.transport] - [transport_check_fds]: transport_check_f>
 7月 04 22:18:32 localhost gnome-remote-de[1929]: [RDP] Network or intentional disconnect, stopping session
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?