Connect to linux vps via xrdp
XRDP is the implementation of RDP on other operating systems, the
Linux server の場合、ユーザーは同じ機能を備えることができます
RDP として。このガイドでは、Linux サーバーに接続する方法について説明します。
xRDP.
Install
and Connect to a Linux server with xRDP
このチュートリアルでは、以下の方法をご説明します。インストールと接続
Linux サーバー、この場合は Ubuntu、XRDP と組み合わせています。
Step
1: Install GNOME or Xfce Desktop Environment
準備として、デスクトップ環境をインストールします
(DE) on Ubuntu since we want to interact with our Linux server by more
than using commands only.
Note: Ignore this step if you are on a desktop
version of Ubuntu.
Note: デスクトップ環境を正常にインストールするには、まず次を行う必要があります
add a sudo user on Ubuntu and run the associated commands using
administrative privileges from there.
GNOME is a default DE in Ubuntu 20.04, and we only need to pass in a
few commands to install it.
sudo apt update
sudo apt install ubuntu-desktop
最後の行を実行すると、次のことをするかどうか聞かれます
インストールを続行するか中止するかを選択してください。追加のディスク容量として 2111 MB が必要です
will be used.

Type in Y and press Enter, and wait
GUIパッケージが完全にダウンロードされるまで、しばらく待機します。
もう1つのオプションとして、Xfceというデスクトップ環境も選べます。
高速で、ビジュアルも優れています。以下のコマンドを実行してください
残りのプロセスは GNOME のインストール手順と同じです。
sudo apt update && sudo apt install xubuntu-desktop

Step 2: Install XRDP
Ubuntu には既に XRDP パッケージが含まれています。以下を入力してください
command to install them.
sudo apt install xrdp
XRDP will start functioning promptly after the completion of
インストールできます。または、以下を実行して XRDP のステータスを確認することもできます
the below commands.
sudo systemctl status xrdp
XRDP is unable to function properly just yet. Linux Groups have been
セキュリティ上の理由により制限されています。そのため、一部のユーザーはアクセスできません
特定のファイルへのアクセス権限。必要に応じてユーザーに手動でアクセス権を付与できます
if they need the extra privilege.
この場合、XRDPは読み込む必要があります
“/etc/SSL/private/ssl-cert-snakeoil.key”, but it is not a member of the
関連グループに属しています。「ssl-cert」グループのメンバーのみがこのファイルを
使用できます。XRDP ユーザーにパーミッションを付与する必要があります。以下のコマンドを実行して行います。
次のコマンドを実行してください。
sudo adduser xrdp ssl-cert
XRDP を再起動して、新しい設定を適用します。
sudo systemctl restart xrdp
Done! XRDP installation is finished.
Step 3: Check the
IP address in Ubuntu
IP アドレスを取得する方法はたくさんあります。シンプルな方法の1つは
that does not include distracting information is to execute this
command.
hostname -I
Step 4:
RDP connect on Local Windows or Linux

Now we are supposed to put in the last Lego brick of our fancy bridge
リモート Linux マシンに接続することです。ローカルマシンが
Windows の場合は、デフォルトのリモートデスクトップ接続を使用して接続を確立できます。
connection. Just simply open RDC, which acts as Remote Desktop Protocol,
pass in the remote server’s IP address and click on
Connect.
その後、認証情報の入力を求められます。完了です。これでリモート Linux サーバーを
操作できます。ローカルマシンが Linux の場合は
(Ubuntu), you may choose GNOME Boxes to set up RDP.
次のコマンドを入力してください。
sudo apt install gnome-boxes
インストールが完了したら、GNOME Boxes を起動して以下の画像の
手順に従ってください。

その後、リモートマシンの IP アドレスを入力して、クリックします。
Connect.

以下の画像で、 session should remain as
Xorg。リモートマシンの
credentials and click on OK to proceed.

をご入力いただくことも可能です。
これでリモート Linux サーバーに接続されました。
submitting a
ticket.
Also in Secure Shell Protocol (SSH)
Related guides.
Need help with something else?
Median response time under 1 hour. Real humans, not bots.