ubuntu - 远程桌面连接到 GCP 中的 Ubuntu
问题描述
我想远程连接到谷歌云上的 Linux 实例,并能够在虚拟机上学习 Linux。我全天访问几台不同的计算机,这将是最好的选择。
如果有人可以帮助我建立与 Google Cloud 的连接,那就太棒了。
我更喜欢使用 Ubuntu,因为这是我所有的资源目前都在教我的
解决方案
如果您想使用 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”作为用户名和密码登录。
推荐阅读
- tensorflow - 再循环图架构
- mysql - 我可以在数据类型为文本的表列中插入 qoutes
- asp.net - 使用 NAudio 使用 asioout 录制时如何使声音更大?
- ios - SwiftUI 更新导航栏标题颜色
- python - TypeErroer:'NoneType' 不可迭代
- sharepoint - 如何在没有信息路径的情况下使 Sharepoint 列表中的字段只读
- centos - 在 centos 上为 root 和普通用户设置 JAVA_HOME --> 检查 java -version
- javascript - 无效时使用 libphonenumber 中的 asYouType 获取真正的有效号码
- matlab - 顺序二次规划 Matlab 实现
- c - 套接字编程中基于中断的接收函数