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