系統配置安裝
這裡選擇 ubuntu 20.04
執行以下命令,更新軟體源
apt-get update
執行以下命令,安裝桌面環境所需的軟體包。
軟體包包括系統皮膚、視窗管理器、檔案瀏覽器、終端等桌面應用程式。
apt install -y gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal ubuntu-desktop
配置VNC
這裡我選擇的是 TurboVNC
官方安裝文件:https://turbovnc.org/Downloads/YUM
這裡使用他 推薦的官方安裝方式 ,下面四步完成即可
- As root, execute:
wget -q -O- https://packagecloud.io/dcommander/turbovnc/gpgkey | \ gpg --dearmor >/etc/apt/trusted.gpg.d/TurboVNC.gpg
- As root, download TurboVNC.list and place it in /etc/apt/sources.list.d.
- As root, execute:
apt update
- Use APT to install a binary package. Examples:
- Install or upgrade to the latest version of TurboVNC:
sudo apt install turbovnc
- List available TurboVNC packages:
apt-cache madison turbovnc
- Install a specific TurboVNC package:
sudo apt install turbovnc=3.0.3-20230227
- Install or upgrade to the latest version of TurboVNC:
下面在自己的電腦上建立 連線就可以了
參考:
https://help.aliyun.com/zh/simple-application-server/use-cases/use-vnc-to-build-guis-on-ubuntu-18-04-and-20-04?spm=a2c4g.11186623.0.i2#21e0b772d7fgc