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?

RHELにWindowsリモートデスクトップ接続(XRDP)

Last updated at Posted at 2025-02-21

Windows付属のリモートデスクトップせつぞkアプリ(mstsc)を使って、
Linux(RHEL)にリモートデスクトップ接続する方法です。

  1. LinuxにGUI(GNOME)をインストールする
Linux:bash
dnf groupinstall "Server with GUI"

 
2. TigerVNC Serverをインストールする

Linux:bash
dnf install tigervnc-server

 
3. XRDPパッケージが格納されているEPELリポジトリを有効化する

Linux:bash (RHEL8の場合)
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Linux:bash (RHEL9の場合)
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
Linux:bash (RHEL10の場合)
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm

 
4. XRDPパッケージと依存パッケージをEPELリポジトリからインストールする

Linux:bash
dnf install xrdp

 
5. ファイアウォールに穴をあける

Linux:bash
firewall-cmd --add-port=3389/tcp --permanent
firewall-cmd--reload

 
6. CRDPサービスを起動する

Linux:bash
systemctl start --now xrdp

 
7. Windowsリモートデスクトップ(mstsc)アプリで接続する

Windows
mstsc /v:<SERVER_IP>:3389

・Windowsリモートデスクトップ接続時はコンピュータ名のみ指定すれば良い。
・Linuxログインするユーザとパスワードはその次に表示される画面で入力する。
 
参考
https://dev.classmethod.jp/articles/202501-installing-gui-on-rhel-9/
https://dev.classmethod.jp/articles/installing-gui-on-rhel-8/
https://access.redhat.com/solutions/3358

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?