LetHostTalk
How to Install and Configure VNC on Ubuntu 20.04 - 22.04 — LetsHostTalk - Web Hosting Forum
HostNamaste.com

How to Install and Configure VNC on Ubuntu 20.04 - 22.04

MivocloudMivocloud Member, Provider
Virtual Network Computing, or VNC, is a connection system that allows you to use your keyboard and mouse to interact with a graphical desktop environment on a remote server. It makes managing files, software, and settings on a remote server easier for users who are not yet comfortable with the command line.

In this guide, you’ll set up a VNC server with #TightVNC on an #ubuntu 20.04 - 22.04 server and connect to it securely through an SSH tunnel.



Commands Used
sudo apt update
sudo apt install xfce4 xfce4-goodies
sudo apt install tightvncserver

vncserver
vncpasswd
vncserver -kill :1

mv ~/.vnc/xstartup ~/.vnc/xstartup.bak

nano ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &

chmod +x ~/.vnc/xstartup
vncserver -localhost

ssh -L 59000:localhost:5901 -C -N -l sammy your_server_ip
█ Anatolie C. - Sales Officer
█ MivoCloud owns its Data Centers in Moldova and Romania.
█ Enterprise Class Cloud Hosting Services. Reseller KVM SSD VPS.
█ USA (Oregon), Moldova, Romania, Russia (Moscow)
Sign In or Register to comment.
                                                               KVM VPS