Tight VNC server opens new session, but if you need to connect to active session(like in teamviewer when user see what you are doing) I suggest to install x11vnc.
Installation process as follows:
sudo apt-get install x11vnc -y
next - specify password for remote connections:
sudo x11vnc -storepasswd /etc/x11vnc.pass
now create service unit file:
sudo touch /lib/systemd/system/x11vnc.service
and open it in editor:
sudo nano /lib/systemd/system/x11vnc.service
paste to file:
[Unit]
Description=Start x11vnc at startup.
After=multi-user.target
[Service]
Type=simple
ExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared
[Install]
WantedBy=multi-user.target
now configure service:
sudo systemctl enable x11vnc.service
sudo systemctl daemon-reload
now reboot and try to connect to x11vnc.
To secure the password, run the commands:
ReplyDelete$ sudo chmod 744 /etc/x11vnc.pass
$ sudo chattr +i /etc/x11vnc.pass