Search code examples
amazon-web-servicesamazon-ec2ubuntu-16.04gnomevnc-viewer

can't see terminal or anything other thing than aws ec2 vncserver


I followed this guide to setup GUI for AWS EC2 instance: HowTo: set a GUI in a Ubuntu AWS EC2 instance

sudo apt-get install ubuntu-desktop vnc4server gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal 

Ubuntu version in AWS EC2

No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:    16.04
Codename:   xenial

change: And use this ~/.vnc/xstartup file:

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

but I don't see any terminal. I only see window. Can't open terminal

enter image description here


Solution

  • If you want to setup GUI on a Ubuntu-based AWS EC2 instance, try following the steps mentioned here: How to Install Graphical Desktop in AWS EC2 Instance ubuntu16.04 (Linux)

    If you want to use an already available AWS EC2 AMI, try out any of the following:

    1. AWS EC2 AMI - Ubuntu GUI
    2. AWS EC2 AMI - Ubuntu Desktop 16.04 LTS (HVM)
    3. AWS EC2 AMI - Xubuntu GUI AMI

    You can also explore answers to a similar question here: Stackoverflow: How To Set Up GUI On Amazon EC2 Ubuntu server