Install GUI for Ubuntu Server

sudo apt update
sudo apt install ubuntu-desktop
sudo apt install tightvncserver
sudo apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
vncserver :1
vim ~/.vnc/xstartup
#!/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 &
vncserver -kill :1

vncserver :1
EC2_public_IP_address:5901
DISPLAY=:1 python3

--

--

--

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

CloudSEK CTF Write-up 2020

How to use docker to setup multiple bitcoin test nodes on your own MAC? (Phase I)

The Extentia Blog: Consequences of ‘Bad’ Code

💁🥳Our 2nd stage performance $AUFS Airdrop is STILL GOING!!! 📌👉DON’T YOU DARE MISS IT! ;)✨

Transformative Expert Sales System

When Clouds Are Not Enough: Our Journey To Scale Our Product Organization

Once Upon a Time in the GitHub Wiki

A Welcome Introduction to Git

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kevin FOO

Kevin FOO

A software engineer, a rock climbing, inline skating enthusiast, a husband, a father.

More from Medium

GUI Applications in a Docker Container

How to bypass Windows 10 UAC with Python

Install L2TP over IPsec with Freeradius on Ubuntu

WSL2 with GUI