PDA

توجه ! این یک نسخه آرشیو شده میباشد و در این حالت شما عکسی را مشاهده نمیکنید برای مشاهده کامل متن و عکسها بر روی لینک مقابل کلیک کنید : حل مشکل در "No -display or DISPLAY." برای ایمیج کوبین



dostajn
28-07-2014, 01:12
باسلام
امروز بعد از مدتها برگشتم سر برد کوبی برد و خواستم با کوبین کار کنم.
متاسفانه اون موقع نتونستم vnc رو روی این برد راه بندازم، اما الان برای یکاری دوباره اومدم سراغ این برد و با دادین یه تیکه از آموزش تصویری آقای چنگالی بفکر افتادم که از نو شروع کنم به راه اندازی اون،‌ اما دوباره همون ارور سابق رو داد و متوجه شدم خود آقای چنگالی هم به همین مشکل می خورن و بدون اراپه راه حلی ازش رد میشن!! !(خونه دوستم یه بار دیدم اما بدلیل قطع برق نتونستم دوباره یه نکاه بندازم و درست مراحل آقای چنگالی رو یادم نمی یاد)
لذا خودم شروع کردم به سرچ تو اینترنت و عاقبت مشکل رو پیدا کردم
بعد از نصب x11vnc توسط فرمان زیر:


sudo apt-get install x11vnc
طبق دستور العمل که تو اینترنت دیدم باید یه پسورد برای vnc ساخت با دستور:


x11vnc -storepasswd

اما با خطای زیر روبرو میشدم:


cubie@Cubian:~$ x11vnc -storeasswd
27/07/2014 23:42:30 passing arg to libvncserver: -storeasswd
################################################## #############
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@#
#@ @#
#@ ** WARNING ** WARNING ** WARNING ** WARNING ** @#
#@ @#
#@ YOU ARE RUNNING X11VNC WITHOUT A PASSWORD!! @#
#@ @#
#@ This means anyone with network access to this computer @#
#@ may be able to view and control your desktop. @#
#@ @#
#@ >>> If you did not mean to do this Press CTRL-C now!! <<< @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@#
#@ @#
#@ You can create an x11vnc password file by running: @#
#@ @#
#@ x11vnc -storepasswd password /path/to/passfile @#
#@ or x11vnc -storepasswd /path/to/passfile @#
#@ or x11vnc -storepasswd @#
#@ @#
#@ (the last one will use ~/.vnc/passwd) @#
#@ @#
#@ and then starting x11vnc via: @#
#@ @#
#@ x11vnc -rfbauth /path/to/passfile @#
#@ @#
#@ an existing ~/.vnc/passwd file from another VNC @#
#@ application will work fine too. @#
#@ @#
#@ You can also use the -passwdfile or -passwd options. @#
#@ (note -passwd is unsafe if local users are not trusted) @#
#@ @#
#@ Make sure any -rfbauth and -passwdfile password files @#
#@ cannot be read by untrusted users. @#
#@ @#
#@ Use x11vnc -usepw to automatically use your @#
#@ ~/.vnc/passwd or ~/.vnc/passwdfile password files. @#
#@ (and prompt you to create ~/.vnc/passwd if neither @#
#@ file exists.) Under -usepw, x11vnc will exit if it @#
#@ cannot find a password to use. @#
#@ @#
#@ @#
#@ Even with a password, the subsequent VNC traffic is @#
#@ sent in the clear. Consider tunnelling via ssh(1): @#
#@ @#
#@ You can see links before reply @#
#@ @#
#@ Or using the x11vnc SSL options: -ssl and -stunnel @#
#@ @#
#@ Please Read the documention for more info about @#
#@ passwords, security, and encryption. @#
#@ @#
#@ You can see links before reply-passwd @#
#@ @#
#@ To disable this warning use the -nopw option, or put @#
#@ 'nopw' on a line in your ~/.x11vncrc file. @#
#@ @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@#
################################################## #############
27/07/2014 23:42:31 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 3442
27/07/2014 23:42:31 XOpenDisplay("") failed.
27/07/2014 23:42:31 Trying again with XAUTHLOCALHOSTNAME=localhost ...
27/07/2014 23:42:31
27/07/2014 23:42:31 *** XOpenDisplay failed. No -display or DISPLAY.
27/07/2014 23:42:31 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.
27/07/2014 23:42:31 *** 1 2 3 4
27/07/2014 23:42:35 *** XOpenDisplay of ":0" successful.
27/07/2014 23:42:35
27/07/2014 23:42:35 Using X display :0
27/07/2014 23:42:35 rootwin: 0x102 reswin: 0xa00001 dpy: 0xce3190
27/07/2014 23:42:35
27/07/2014 23:42:35 ------------------ USEFUL INFORMATION ------------------
27/07/2014 23:42:35 X DAMAGE available on display, using it for polling hints.
27/07/2014 23:42:35 To disable this behavior use: '-noxdamage'
27/07/2014 23:42:35
27/07/2014 23:42:35 Most compositing window managers like 'compiz' or 'beryl'
27/07/2014 23:42:35 cause X DAMAGE to fail, and so you may not see any screen
27/07/2014 23:42:35 updates via VNC. Either disable 'compiz' (recommended) or
27/07/2014 23:42:35 supply the x11vnc '-noxdamage' command line option.
27/07/2014 23:42:35
27/07/2014 23:42:35 Wireframing: -wireframe mode is in effect for window moves.
27/07/2014 23:42:35 If this yields undesired behavior (poor response, painting
27/07/2014 23:42:35 errors, etc) it may be disabled:
27/07/2014 23:42:35 - use '-nowf' to disable wireframing completely.
27/07/2014 23:42:35 - use '-nowcr' to disable the Copy Rectangle after the
27/07/2014 23:42:35 moved window is released in the new position.
27/07/2014 23:42:35 Also see the -help entry for tuning parameters.
27/07/2014 23:42:35 You can press 3 Alt_L's (Left "Alt" key) in a row to
27/07/2014 23:42:35 repaint the screen, also see the -fixscreen option for
27/07/2014 23:42:35 periodic repaints.
27/07/2014 23:42:35
27/07/2014 23:42:35 XFIXES available on display, resetting cursor mode
27/07/2014 23:42:35 to: '-cursor most'.
27/07/2014 23:42:35 to disable this behavior use: '-cursor arrow'
27/07/2014 23:42:35 or '-noxfixes'.
27/07/2014 23:42:35 using XFIXES for cursor drawing.
27/07/2014 23:42:35 GrabServer control via XTEST.
27/07/2014 23:42:35
27/07/2014 23:42:35 Scroll Detection: -scrollcopyrect mode is in effect to
27/07/2014 23:42:35 use RECORD extension to try to detect scrolling windows
27/07/2014 23:42:35 (induced by either user keystroke or mouse input).
27/07/2014 23:42:35 If this yields undesired behavior (poor response, painting
27/07/2014 23:42:35 errors, etc) it may be disabled via: '-noscr'
27/07/2014 23:42:35 Also see the -help entry for tuning parameters.
27/07/2014 23:42:35 You can press 3 Alt_L's (Left "Alt" key) in a row to
27/07/2014 23:42:35 repaint the screen, also see the -fixscreen option for
27/07/2014 23:42:35 periodic repaints.
27/07/2014 23:42:35
27/07/2014 23:42:35 XKEYBOARD: number of keysyms per keycode 7 is greater
27/07/2014 23:42:35 than 4 and 51 keysyms are mapped above 4.
27/07/2014 23:42:35 Automatically switching to -xkb mode.
27/07/2014 23:42:35 If this makes the key mapping worse you can
27/07/2014 23:42:35 disable it with the "-noxkb" option.
27/07/2014 23:42:35 Also, remember "-remap DEAD" for accenting characters.
27/07/2014 23:42:35
27/07/2014 23:42:35 X FBPM extension not supported.
27/07/2014 23:42:35 X display is capable of DPMS.
27/07/2014 23:42:35 --------------------------------------------------------
27/07/2014 23:42:35
27/07/2014 23:42:35 Default visual ID: 0x21
27/07/2014 23:42:36 Read initial data from X display into framebuffer.
27/07/2014 23:42:36 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
27/07/2014 23:42:36 *** unrecognized option(s) ***
27/07/2014 23:42:36 [1] -storeasswd
27/07/2014 23:42:36 For a list of options run: x11vnc -opts
27/07/2014 23:42:36 or for the full help: x11vnc -help
27/07/2014 23:42:36
27/07/2014 23:42:36 Here is a list of removed or obsolete options:
27/07/2014 23:42:36
27/07/2014 23:42:36 removed: -hints, -nohints
27/07/2014 23:42:36 removed: -cursorposall
27/07/2014 23:42:36 removed: -nofilexfer, now the default.
27/07/2014 23:42:36
27/07/2014 23:42:36 renamed: -old_copytile, use -onetile
27/07/2014 23:42:36 renamed: -mouse, use -cursor
27/07/2014 23:42:36 renamed: -mouseX, use -cursor X
27/07/2014 23:42:36 renamed: -X, use -cursor X
27/07/2014 23:42:36 renamed: -nomouse, use -nocursor
27/07/2014 23:42:36 renamed: -old_pointer, use -pointer_mode 1
cubie@Cubian:~$


مشکل ظاهرا طبق چیزی که اینجا (You can see links before reply)گفته به علت عدم لاگین شدن رخ میده!یعنی قبل از اینکه به سرور vnc بزنید باید اول لاگین کنید نمی دونم ssh چیکاره ست...
و اگر خواستین در مورد روشهای اتصال به سرور X بدونین اینجا (You can see links before reply) کمک تون میکنه.
البته من خودمم زیاد سر در نیاوردم اما د رکل تونستم مشکلم رو به راحتی برطرف کنم،‌گفتم بگم شاید بدرد یکی بخوره :)


sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -storepasswd


بعدشم:


sudo x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :0 -auth /var/run/lightdm/root/:0 -usepw