AKZN Notes

Archives for My Lazy and Forgetful Mind

VNC Armbian Server Setup

https://forum.armbian.com/topic/10330-remote-desktop-with-x11vnc/

With this you can control your Linux desktop from any other PC/SBC.

I use lightdm as display manager. If you use another display manager, change the line After=lightdm.service with your display manager.

To Install

sudo apt install x11vnc

To create a password file

x11vnc -storepasswd

The service script : /lib/systemd/system/x11vnc.service

[Unit]
Description="x11vnc"
Requires=display-manager.service
After=lightdm.service

[Service]
ExecStart=/usr/bin/x11vnc -auth guess -loop -forever -safer -shared -ultrafilexfer -bg -o /var/log/x11vnc.log
ExecStop=/usr/bin/killall x11vnc

[Install]
WantedBy=multi-user.target

Enable the service script

sudo systemctl daemon-reload
sudo systemctl enable x11vnc
sudo systemctl start x11vnc

if you want to use password the correct line should be
-rfbauth /home/USERNAME/.vnc/passwd

ExecStart=/usr/bin/x11vnc -auth guess -loop -forever -safer -rfbauth /home/USERNAME/.vnc/passwd -shared -ultrafilexfer -bg -o /var/log/x11vnc.log

USERNAME = is your own username. not "rahul"..

use tightvnc as client

Leave a Reply

Your email address will not be published.