The image above is in 4 parts
- my amzon-linux terminal. (everything seems fine...)
- the putty window which i used to open a tunnel
- the vnc failing to connect
- a chunk of output from -netstat a showing no results for any relevent ports (so ports dont seem busy)
i managed to make a vnc work the first time i followed these instructions https://aws.amazon.com/premiumsupport/knowledge-center/ec2-linux-2-install-gui/ but now it just fails to connect at the end.
i feared that previous connections may still be open in some way preventing new connections but image 4 shows thats not the case.
what could be causing this problem?
########### extra info
my ec2 container was made fresh as amazon-linux, then I performed "sudo yum update" and then rebooted.
then once the container was open again i did the following (whole instructions below from my ec2 container (after reboot))
- sudo amazon-linux-extras install mate-desktop1.x
- sudo bash -c 'echo PREFERRED=/usr/bin/mate-session > /etc/sysconfig/desktop'
- sudo yum install tigervnc-server
- vncpasswd then i entered my password
- sudo mkdir /etc/tigervnc
- sudo bash -c 'echo localhost > /etc/tigervnc/vncserver-config-mandatory'
- sudo cp /lib/systemd/system/[email protected] /etc/systemd/system/[email protected]
- sudo sed -i 's//ec2-user/' /etc/systemd/system/[email protected]
- sudo systemctl daemon-reload
- sudo systemctl enable vncserver@:1
- sudo systemctl start vncserver@:1
ps) im not getting many clues from any error messages or anything. If you have any suggestions on how to interogate this problem further then that would be helpful too
pps)
could it be my security groups, i think i have what i need open? (see below)