Portál AbcLinuxu, 14. května 2025 08:09
/etc/init.d/rc.local
pridaj prikaz v tvare:
x11vnc -auth guess -display :0 &ako sa pise v navode:
** If NO ONE is logged into an X session yet, but there is a greeter login program like "gdm", "kdm", "xdm", or "dtlogin" running, you will need to find and use the raw display manager MIT-MAGIC-COOKIE file. Some examples for various display managers: gdm: -auth /var/gdm/:0.Xauth -auth /var/lib/gdm/:0.Xauth kdm: -auth /var/lib/kdm/A:0-crWk72 -auth /var/run/xauth/A:0-crWk72 xdm: -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJk dtlogin: -auth /var/dt/A:0-UgaaXa Sometimes the command "ps wwwwaux | grep auth" can reveal the file location. Starting with x11vnc 0.9.9 you can have it try to guess by using: -auth guess (see also the x11vnc -findauth option.) Only root will have read permission for the file, and so x11vnc must be run as root (or copy it). The random characters in the filenames will of course change and the directory the cookie file resides in is system dependent. See also: http://www.karlrunge.com/x11vnc/faq.html
sudo x11vnc -auth guess -rfbauth /home/polo/.vnc/passwd -display :0 &Dalsi vec je ze po pripojeni/odpojeni se ukonci i x11vnc. Myslim tim, ze jsem dal prikaz do rc.local, nabootoval a pripojil/odpojil pres vnc clienta a po vylistovani v procesech jsem x11vnc nenasel.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.