5

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

Abdullah Khawer
  • 4,461
  • 4
  • 29
  • 66
abhimanyuaryan
  • 3,882
  • 5
  • 41
  • 83
  • Q maybe can you send keystroke shortcut for terminal open "Ctrl+Alt+T" or command window "Alt+F2" ? – Bruno Aug 27 '19 at 13:16
  • 1
    I agree with the OP here - the gnome-terminal does NOT work / appear when following these steps. You can't launch it, even with the various key combinations. Something is missing - I will do some digging. – lb_so Dec 12 '20 at 00:19

1 Answers1

2

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

Abdullah Khawer
  • 4,461
  • 4
  • 29
  • 66