![]() ![]() Once you have made this file you can start it by running: (Note that newer versions of Ubuntu use systemd so see the other answer that has a sample systemd config): # description "start and stop x11vnc"Įxec x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw Here is a sample upstart job you can use to make it run at startup. You might want to use GNU Screen to keep x11vnc running without needing the ssh session open Once this is running you should be able to connect using a vnc client such as krdc (for KDE). Maybe someone could edit with a way to access the login without using sudo. I am not sure this is the best idea to run x11vnc as root. Xdm: -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJkĪssuming you are using lightdm for the login you can fix this problem you can start x11vnc with the command: sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw Some examples for various display managers: To find and use the raw display manager MIT-MAGIC-COOKIE file. Program like "gdm", "kdm", "xdm", or "dtlogin" running, you will need If you are not logged in you will get an error with the explanation: If NO ONE is logged into an X session yet, but there is a greeter login If you have ssh setup you can use it to start x11vnc assuming you are logged in already, but remember to tell it to use your password file: x11vnc -usepw Install x11vnc: sudo apt-get install x11vncĬreate a password for your user: x11vnc -storepasswd
0 Comments
Leave a Reply. |