[Ubuntu]在AWS上實現 ubuntu 遠程桌面


在Linux主機上進行ssh指令操作已經一段時間了,後來想說來個圖形化介面,再加上遠端桌面,感覺就可以開始辦工了,所以在網路上找了一下相關資訊。原來這已經很多人這樣做了,這次就把相關的安裝流程寫下,方便日後安裝時使用。

所使用到的版本及套件

  • 用戶端 – Windows Remote Desktop
  • 主機端 – Ubuntu Server 18.04 LTS
  • 連線協議 – RDP / XRDP
  • 圖像桌面 – XFCE4

一、在AWS上註冊一台 Ubuntu 主機

PS.相關流程可以參照 https://intone.cc/2018/06/aws-%e7%94%b3%e8%ab%8b%e5%85%8d%e8%b2%bb-t2-micro-%e4%b8%bb%e6%a9%9f%e6%b5%81%e7%a8%8b/

二、進行指令的安裝

root@localhost:~# passwd ubuntu
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

下載所有套件最新列表由終端安裝套件時都建議更新

root@localhost:~# apt-get update
Hit:1 http://us-west-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://us-west-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://us-west-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease[74.6 kB]
//=========略==========
Get:35 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1440 B]
Get:36 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [996 B]
Fetched 26.6 MB in 4s (6465 kB/s)
Reading package lists... Done

安裝xrdp桌面連線協議伺服器

root@localhost:~# apt-get install -y xrdp

安裝xfce4圖像桌面管理工具

root@localhost:~# apt-get install -y xubuntu-desktop

複寫系統繪製桌面管理工具選項

root@localhost:~# echo xfce4-session >~/.xsession

重啟xrdp桌面連線協議伺服器

root@localhost:~# service xrdp restart

三、使用Windows Remote Desktop 連線至 Ubuntu

連入遠端位置
連入使用的帳號及密碼
登入完成
,