How to Install and Configure VNC on Ubuntu 22.04
⭐️ Full Instructions: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-22-04 (for Ubuntu on Oracle Cloud use the virtual firewall or iptables instead of enabling ufw: https://docs.oracle.com/en-us/iaas/Content/knownissues.htm#ufw)
📺 How to Create the Free Oracle Cloud VPS: https://youtu.be/4642CoP0q7Y (Select VM.Standard.E2.1.Micro as the Shape)
🔗 Oracle Cloud Free Tier VPS: https://www.oracle.com/cloud/free/
Software:
🔗 PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/
🔗 RealVNC VNC Viewer: https://www.realvnc.com/en/connect/download/viewer/
How to check if running as root:
🔗 https://askubuntu.com/questions/700258/
✒️COMMANDS:
(login as non-root user)
sudo apt update
sudo apt upgrade
(may need to reboot)
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver
vncserver
(will ask to set pass 6-8 chars, you'll need this to connect later with VNC Viewer)
vncserver -kill :1
mv ~/.vnc/xstartup ~/.vnc/xstartup.bak
nano ~/.vnc/xstartup
(add text to file:)
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
(to save and exit:)
CTRL + X, Y, then ENTER
chmod +x ~/.vnc/xstartup
vncserver -localhost
sudo apt-get install fonts-liberation
cd Downloads
curl -o google-chrome-stable_current_amd64.deb "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
sudo dpkg -i google-chrome-stable_current_amd64.deb
(PuTTY SSH Tunnel Details:)
Source Port: 5900
Destination: localhost:5901
(If you add a firewall rule to only allow SSH connections from your IP, don't add it to OS firewall or you'll lose access to the VPS when your IP changes.)
👍 Thanks for Watching!
💬 Let me know if you have any problems or spot an error in the instructions.
🎵 Music:
Marxist Arrow by Twin Musicom is licensed under a Creative Commons Attribution 4.0 licence. https://creativecommons.org/licenses/by/4.0/
Artist: http://www.twinmusicom.org/
#vnc


