Considering donating if you found my post helpful 😊
TigerVNC is a solid program to run VNC server in your Linux machine. I have used x11vnc in the past but it was much complicated with all the options and was buggy. Then I found TigerVNC
Unfortunately, I cannot find a guide that provide latest version installation. They are all using then default one in default repositories and those are ancient.
Step 1 – Install required packages:
$ sudo apt install xauth xinit libxshmfence-dev libxcvt-dev libgbm-dev
Step 2 – Download required file:
First of all, you need to obtain latest version of the binaries.
You can get them from https://sourceforge.net/projects/tigervnc/files/stable/
Step 3 – Extract:
Command below will extract files from the archive into your system. Replace the version with the one that you have downloaded.
$ sudo tar xvfk tigervnc-1.14.1.x86_64.tar.gz --strip-components=1 -C /
Step 4 – Add user into vncserver.users:
$ sudo nano /etc/tigervnc/vncserver.users
add a new line containing your existing system user
:1=myuser
Save the file
Step 5 – Set password:
login as user you have added into vncserver.users
Then execute `vncpasswd` and insert the password you wanted for that user
$ vncpasswd
Step 6 – Config:
As the same user as in Step 3, create config file
nano .config/tigervnc/config
add this and modify it according to your preference.
`session` is the command to start your desktop, in my case, xfce4.
session=xfce
geometry=1920x1080
alwaysshared
To see all DE that you have installed, you can do
$ ls /usr/share/xsessions
xfce.desktop
means
session=xfce
Step 7 – Systemd:
Now everything is set, enable and start vncserver using systemd
$ sudo systemctl enable vncserver@:1
$ sudo systemctl start vncserver@:1
:1
is the user you set in Step 4.
Step 5 – Something went wrong?
If it doesn’t work, check the log inside user’s $HOME
$HOME/.vnc/*log
Considering donating if you found my post helpful 😊