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

Your PHP guide to biometric passwordless authentication (Laravel/Lumen)

HashiCorp Vault and Terraform on Google Cloud — Security Best Practices

Best Continuous Integration tools for DevOps in 2021 | Online IT Guru

Introduction to FarmFomo

Service Management with DevOps, SRE, ITIL…

Logging Bash History via Promtail, Loki and Grafana

Turns Out, Operational Discipline Is the Key

Towards Tendermint Core 1.0

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

Creating multiple folders/files at once

Using COM-objects from Python/JScript/VBScript

ESP32 Project 5: Output-Display & PWM

Install minikube on Ubuntu 22.04 / 20.04 LTS

Install kubectl in ubuntu