首页 > 解决方案 > 远程桌面连接到 GCP 中的 Ubuntu

问题描述

我想远程连接到谷歌云上的 Linux 实例,并能够在虚拟机上学习 Linux。我全天访问几台不同的计算机,这将是最好的选择。

如果有人可以帮助我建立与 Google Cloud 的连接,那就太棒了。

我更喜欢使用 Ubuntu,因为这是我所有的资源目前都在教我的

标签: ubuntugoogle-cloud-platformremote-desktop

解决方案


如果您想使用 RDP 协议通过 Windows(专业版)连接谷歌云上的 Ubuntu 实例,您可以按照以下步骤操作:

1. sudo apt update 
2. sudo apt install tasksel
3. sudo tasksel install ubuntu-desktop
4. sudo systemctl set-default graphical.target
5. sudo passwd root // set root password, if you don't remember it
6. sudo apt install xrdp
7. sudo systemctl enable xrdp // This will start RDP service

现在,在 Windows 上打开远程桌面连接,输入 IP 地址并连接。使用“root”作为用户名和密码登录。


推荐阅读