I followed this guide to setup GUI for ec2 aws instance: https://youtu.be/9BAoJ7JZHr0
sudo apt-get install ubuntu-desktop vnc4server gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
Ubuntu version in 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 anyterminal. I only see window. Can't open terminal
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:
You can also explore answers to a similar question here: Stackoverflow: How To Set Up GUI On Amazon EC2 Ubuntu server
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With