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. Then, you’ll use a #VNC client program on your local machine to interact with your server through a graphical desktop environment.
Useful Links
UltraVNC - [ Ссылка ]
Rent VPS/VDS - [ Ссылка ]
TightVNC - [ Ссылка ]
Commands Used
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
![](https://s2.save4k.ru/pic/6_lyv8bn3CE/maxresdefault.jpg)