How to Install and Configure VNC on Ubuntu 22.04

preview_player
Показать описание

Software:

How to check if running as root:

✒️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
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

(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:

#vnc
Рекомендации по теме
Комментарии
Автор

So I have to enter source port and destination every time I want to connect via VNC Viewer?

finnpony
Автор

What is the point of setting all that shit up if you gonna use a proprietary software like VNC Viewer from RealVNC?

:(

pxlcrdgm
Автор

For me emulator was not opening so I ran one command then it is saying unable to contact settings server.Can you help me how to configure

karthikharisamy