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?

リモートデスクトップでRockyLinuxに接続する

Posted at

環境

  • VirtualBox 7.0
  • ホストOS Windows 11 Home 24H2
  • ゲストOS Rocky Linux 9.5

手順

  1. Linux側をGUIでいけるようにする
  2. Linux側でリモートデスクトップが使えるようにする

1.Linux側をGUIでいけるようにする

# dnf groupinstall graphical-server-environment
# dnf install tigervnc-server
# dnf repolist | grep epel
epel                Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264 Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64

[epelリポジトリがない場合]

# dnf install epel-release

2. Linux側でリモートデスクトップが使えるようにする

xrdpインストール

# dnf install xrdp
# systemctl start xrdp
# systemctl enable xrdp
# netstat -antup | grep xrdp
tcp6       0      0 :::3389                 :::*                    LISTEN      39013/xrdp

xrdp用にポート開放

# firewall-cmd --add-port=3389/tcp --zone=public --permanent
# firewall-cmd --reload
# firewall-cmd --list-all
public (active)
  target: default
  icmp-block-inversion: no
  interfaces: enp0s3 enp0s8
  sources:
  services: cockpit dhcpv6-client https ssh
  ports: 3000/tcp 3389/tcp
  protocols:
  forward: yes
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

参考

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?