Score:0

Connecting to Ubuntu Desktop on an EC2 instance

cn flag

I have followed to the letter instructions from https://ubuntu.com/tutorials/ubuntu-desktop-aws#2-setting-up-tightvnc-on-aws to install Ubuntu Desktop on an EC2 instance.

I have opened both port 3389 for RDP connection, and 5901 for VNC connection. If I connect through RDP, with Microsoft Remote Desktop, everything works fine, except an extreme lag, which I don't think is due to the EC2 instance, as I am running on a t2.medium, same as I'm using for a Windows Server instance that runs flawlessly.

I have done some digging, and it seems this is a common problem with RDP, so I tried VNC, via VNC viewer. Problem is that I can't connect using VNC, just getting a "Can't connect to instance" error.

In case it helps, the below is the vnc log:

~$ more /home/ubuntu/.vnc/ip-172-31-27-107:1.log
12/10/21 09:26:40 Xvnc version TightVNC-1.3.10
12/10/21 09:26:40 Copyright (C) 2000-2009 TightVNC Group
12/10/21 09:26:40 Copyright (C) 1999 AT&T Laboratories Cambridge
12/10/21 09:26:40 All Rights Reserved.
12/10/21 09:26:40 See http://www.tightvnc.com/ for information on TightVNC
12/10/21 09:26:40 Desktop name 'X' (ip-172-31-27-107:1)
12/10/21 09:26:40 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
12/10/21 09:26:40 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
/home/ubuntu/.vnc/xstartup: 11: vncconfig: not found
/home/ubuntu/.vnc/xstartup: 13: gnome-settings-daemon: not found
metacity-Message: 09:26:41.664: could not find XKB extension.

(metacity:2580): metacity-WARNING **: 09:26:41.670: Failed to create compositor:
 Missing composite extension required for compositing

(gnome-panel:2578): gnome-panel-WARNING **: 09:26:41.725: Failed to register cli
ent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.S
essionManager was not provided by any .service files

Thanks in advance!

Andrea

Marc Vanhoomissen avatar
in flag
It looks like some comonents were not (properly) installed. Could you check exactly what you installed? See also this post for other info: https://stackoverflow.com/questions/42296329/how-to-properly-configure-xstartup-file-for-tightvnc-with-ubuntu-vps-gnome-envir
cn flag
Thanks for replying, will look into that!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.