【问题标题】:Is there any tool to access the graphical interface of Ubuntu EC2 instance?是否有任何工具可以访问 Ubuntu EC2 实例的图形界面?
【发布时间】:2015-09-09 18:44:31
【问题描述】:

我正在开发 AWS 服务,我可以使用“远程桌面工具”轻松访问 Windows 实例,但为了访问 Ubuntu 实例,我通常使用终端。

有没有办法以图形方式访问 Ubuntu 实例?

【问题讨论】:

标签: amazon-web-services amazon-ec2 ubuntu-14.04


【解决方案1】:

如评论中所述,X11 forwarding from Amazon EC2 AMI 是解决方案的一部分。要让多个程序协同工作(作为桌面),您可能还需要研究 VNC:

(当然,您可以将 X 转发与 VNC 一起使用)

【讨论】:

    【解决方案2】:

    第 1 步:使用 PuTTY 打开一个 ec2 Ubuntu 终端。有关如何使用 PuTTY https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html 从 Windows 连接 Linux 实例的更多详细信息,请参阅

    第二步:在 PuTTY Ubuntu 终端上逐步运行以下命令

    sudo apt update
    

    安装 xrdp 以允许 RDP 连接:

    sudo apt install ubuntu-desktop
    
    sudo apt install xrdp
    

    为ubuntu用户设置密码:

    sudo passwd ubuntu
    

    第 3 步:

    Go to AWS console
    Click on instance(running)
    Select your running Ubuntu instance
    Go to Security
    Click on Security Groups
    Click on Edit inbound rules
    In type drop down select RDP
    It by default select port 3389
    In Source add 0.0.0.0/0 IP
    Click on Save rules
    

    第 4 步:

    Open Remote Desktop Connection on windows machine
    Enter Computer: Public IP of ubuntu ec2 and add username:your_user_name
    click on connect will open up GUI version of Ubuntu (linux), It ask for password please enter the set password.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-07
      • 2014-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-25
      相关资源
      最近更新 更多