Advertisement
Guest User

Untitled

a guest
Jun 16th, 2022
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.16 KB | None | 0 0
  1. debian@BeagleBone:~$ x11vnc -auth /var/run/lightdm/root/:0 -forever
  2. ###############################################################
  3. #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
  4. #@ @#
  5. #@ ** WARNING ** WARNING ** WARNING ** WARNING ** @#
  6. #@ @#
  7. #@ YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!! @#
  8. #@ @#
  9. #@ This means anyone with network access to this computer @#
  10. #@ may be able to view and control your desktop. @#
  11. #@ @#
  12. #@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#
  13. #@ @#
  14. #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
  15. #@ @#
  16. #@ You can create an x11vnc password file by running: @#
  17. #@ @#
  18. #@ x11vnc -storepasswd password /path/to/passfile @#
  19. #@ or x11vnc -storepasswd /path/to/passfile @#
  20. #@ or x11vnc -storepasswd @#
  21. #@ @#
  22. #@ (the last one will use ~/.vnc/passwd) @#
  23. #@ @#
  24. #@ and then starting x11vnc via: @#
  25. #@ @#
  26. #@ x11vnc -rfbauth /path/to/passfile @#
  27. #@ @#
  28. #@ an existing ~/.vnc/passwd file from another VNC @#
  29. #@ application will work fine too. @#
  30. #@ @#
  31. #@ You can also use the -passwdfile or -passwd options. @#
  32. #@ (note -passwd is unsafe if local users are not trusted) @#
  33. #@ @#
  34. #@ Make sure any -rfbauth and -passwdfile password files @#
  35. #@ cannot be read by untrusted users. @#
  36. #@ @#
  37. #@ Use x11vnc -usepw to automatically use your @#
  38. #@ ~/.vnc/passwd or ~/.vnc/passwdfile password files. @#
  39. #@ (and prompt you to create ~/.vnc/passwd if neither @#
  40. #@ file exists.) Under -usepw, x11vnc will exit if it @#
  41. #@ cannot find a password to use. @#
  42. #@ @#
  43. #@ @#
  44. #@ Even with a password, the subsequent VNC traffic is @#
  45. #@ sent in the clear. Consider tunnelling via ssh(1): @#
  46. #@ @#
  47. #@ http://www.karlrunge.com/x11vnc/#tunnelling @#
  48. #@ @#
  49. #@ Or using the x11vnc SSL options: -ssl and -stunnel @#
  50. #@ @#
  51. #@ Please Read the documentation for more info about @#
  52. #@ passwords, security, and encryption. @#
  53. #@ @#
  54. #@ http://www.karlrunge.com/x11vnc/faq.html#faq-passwd @#
  55. #@ @#
  56. #@ To disable this warning use the -nopw option, or put @#
  57. #@ 'nopw' on a line in your ~/.x11vncrc file. @#
  58. #@ @#
  59. #@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
  60. ###############################################################
  61. 16/06/2022 15:54:55 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 3595
  62. 16/06/2022 15:54:55 XOpenDisplay("") failed.
  63. 16/06/2022 15:54:55 Trying again with XAUTHLOCALHOSTNAME=localhost ...
  64. 16/06/2022 15:54:55
  65. 16/06/2022 15:54:55 *** XOpenDisplay failed. No -display or DISPLAY.
  66. 16/06/2022 15:54:55 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
  67. 16/06/2022 15:54:55 *** 1 2 3 4
  68. 16/06/2022 15:54:59 XOpenDisplay(":0") failed.
  69. 16/06/2022 15:54:59 Trying again with XAUTHLOCALHOSTNAME=localhost ...
  70. 16/06/2022 15:54:59 XOpenDisplay(":0") failed.
  71. 16/06/2022 15:54:59 Trying again with unset XAUTHLOCALHOSTNAME ...
  72. 16/06/2022 15:54:59
  73.  
  74. 16/06/2022 15:54:59 ***************************************
  75. 16/06/2022 15:54:59 *** XOpenDisplay failed (:0)
  76.  
  77. *** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.
  78. *** There may be "Xlib:" error messages above with details about the failure.
  79.  
  80. Some tips and guidelines:
  81.  
  82. ** An X server (the one you wish to view) must be running before x11vnc is
  83. started: x11vnc does not start the X server. (however, see the -create
  84. option if that is what you really want).
  85.  
  86. ** You must use -display <disp>, -OR- set and export your $DISPLAY
  87. environment variable to refer to the display of the desired X server.
  88. - Usually the display is simply ":0" (in fact x11vnc uses this if you forget
  89. to specify it), but in some multi-user situations it could be ":1", ":2",
  90. or even ":137". Ask your administrator or a guru if you are having
  91. difficulty determining what your X DISPLAY is.
  92.  
  93. ** Next, you need to have sufficient permissions (Xauthority)
  94. to connect to the X DISPLAY. Here are some Tips:
  95.  
  96. - Often, you just need to run x11vnc as the user logged into the X session.
  97. So make sure to be that user when you type x11vnc.
  98. - Being root is usually not enough because the incorrect MIT-MAGIC-COOKIE
  99. file may be accessed. The cookie file contains the secret key that
  100. allows x11vnc to connect to the desired X DISPLAY.
  101. - You can explicitly indicate which MIT-MAGIC-COOKIE file should be used
  102. by the -auth option, e.g.:
  103. x11vnc -auth /home/someuser/.Xauthority -display :0
  104. x11vnc -auth /tmp/.gdmzndVlR -display :0
  105. you must have read permission for the auth file.
  106. See also '-auth guess' and '-findauth' discussed below.
  107.  
  108. ** If NO ONE is logged into an X session yet, but there is a greeter login
  109. program like "gdm", "kdm", "xdm", or "dtlogin" running, you will need
  110. to find and use the raw display manager MIT-MAGIC-COOKIE file.
  111. Some examples for various display managers:
  112.  
  113. gdm: -auth /var/gdm/:0.Xauth
  114. -auth /var/lib/gdm/:0.Xauth
  115. kdm: -auth /var/lib/kdm/A:0-crWk72
  116. -auth /var/run/xauth/A:0-crWk72
  117. xdm: -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJk
  118. dtlogin: -auth /var/dt/A:0-UgaaXa
  119.  
  120. Sometimes the command "ps wwwwaux | grep auth" can reveal the file location.
  121.  
  122. Starting with x11vnc 0.9.9 you can have it try to guess by using:
  123.  
  124. -auth guess
  125.  
  126. (see also the x11vnc -findauth option.)
  127.  
  128. Only root will have read permission for the file, and so x11vnc must be run
  129. as root (or copy it). The random characters in the filenames will of course
  130. change and the directory the cookie file resides in is system dependent.
  131.  
  132. See also: http://www.karlrunge.com/x11vnc/faq.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement