AWS EC2 Ubuntu Instance VNC access
In this post I'll write about how to connect to your EC2 Ubuntu linux instance via VNC Viewer app. Let's get started...... Kindly login to your AWS instance via private key through terminal/putty as shown below and follow the steps from 1 to 8 to access your Ubuntu (18.x in my case) GUI from your local machine- ssh -i your-aws-key.pem ubuntu@ec2-x-x-x-80.ap-south-1.compute.amazonaws.com Step-1 sudo apt update && sudo apt upgrade Step-2 sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal xfce4 vnc4server Step-3 vncserver Enter the password- xxxx Confirm Password- xxxx Step-4 vi ~/.vnc/xstartup Uncomment previous and use this one in xstartup file as shown below #!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc unset DBUS_SESSION_BUS_ADDRESS startxfce4 & [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup ...
