Ubuntu – Have Ubuntu Desktop on EC2 with the same GUI as Ubuntu 18.04 LTS on a PC

amazon ec2gnomegnome-flashbackguiserver

I am new to Ubuntu and not very much familiar with all the details.

I followed the instructions here to create a GUI for an EC2 instance:
https://medium.com/@s.on/running-ubuntu-desktop-gui-aws-ec2-instance-on-windows-3d4d070da434

The instance runs ubuntu 18.04 LTS. I have also installed ubuntu 18.0418.04 LTS on a PC that I have and I really like the interface.

The problem though is that when I remotely connect to the ec2 instance, the GUI does not look like my PC.

How can I have my ec2 instance have the same GUI?

Here is my PC GUI:
pc gui

Here is my ec2 GUI:
ec2 gui

Update 1:
Here is the log file:

15/11/18 18:14:16 Xvnc version TightVNC-1.3.10
15/11/18 18:14:16 Copyright (C) 2000-2009 TightVNC Group
15/11/18 18:14:16 Copyright (C) 1999 AT&T Laboratories Cambridge
15/11/18 18:14:16 All Rights Reserved.
15/11/18 18:14:16 See http://www.tightvnc.com/ for information on TightVNC
15/11/18 18:14:16 Desktop name 'X' (ip-10-105-54-119:1)
15/11/18 18:14:16 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
15/11/18 18:14:16 Listening for VNC connections on TCP port 5901
/home/ubuntu/.vnc/xstartup: 11: /home/ubuntu/.vnc/xstartup: vncconfig: not found
/home/ubuntu/.vnc/xstartup: 13: /home/ubuntu/.vnc/xstartup: gnome-settings-daemon: not found
metacity-Message: 18:14:17.292: could not find XKB extension.

(metacity:4631): metacity-WARNING **: 18:14:17.300: Failed to create MetaCompositorXRender: Missing composite extension required for compositing

** (gnome-panel:4628): WARNING **: 18:14:17.354: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

** (nautilus:4632): WARNING **: 18:14:17.967: Unable to get contents of the bookmarks file: Error opening file /home/ubuntu/.gtk-bookmarks: No such file or directory

** (nautilus:4632): WARNING **: 18:14:17.967: Unable to get contents of the bookmarks file: Error opening file /home/ubuntu/.gtk-bookmarks: No such file or directory

Update 2:

I got closer by using the following:

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
export XDG_MENU_PREFIX="gnome-flashback-"

gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &

which gave me this:
new desktop

But I am not sure how to modify it to get ubuntu desktop.

Update 3:

This is what I get when I check for my sessions:

Current sessions

So I have different sessions installed, but cannot switch to ubuntu session.

Best Answer

You won't get same GUI. And main reason you can see in log file:

Failed to create MetaCompositorXRender: Missing composite extension required for compositing

Over VNC you don't have composite extension that is required by Mutter / GNOME Shell.