R
R
Rasty2020-08-05 14:21:13
linux
Rasty, 2020-08-05 14:21:13

How to make X11VNC autostart and connect to real desktop?

There is a distribution kit Lubuntu 19.10
The x11vnc package is installed The x11vncstart
autorun script:

#!/bin/bash
/usr/bin/x11vnc -rfbauth /etc/x11vnc.pass -auth /home/user/.Xauthority -display :0 -many -rfbport 5901 -bg

A task was added to the cron of the regular user user, which was supposed to run the script after loading:
@reboot /bin/x11vncstart

But after rebooting, the script does not work.
I tried to run it as a service, but it doesn't work either.

Can you please tell me how to configure x11vnc autorun on system boot?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Gregory, 2020-08-05
@Maxlinus

if so:
https://www.server-world.info/en/note?os=Ubuntu_19...

K
Konstantin ™, 2020-08-05
@Energoblock

1. It is more correct, in my opinion, to register lxde in autoload
2. You can register it in /etc/rc.local

/bin/x11vncstart
exit 0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question