NOTICE توجه: این یک موضوع قدیمی است که آخرین پست ارسالی آن مربوط به 3558 روز قبل است . لطفا فقط پاسخ ها ، سوالات و درخواست های 100 درصد مرتبط را به آن ارسال کنید و برای درخواست ها و سوالات جدید موضوع جدیدی را ایجاد کنید
نمایش نتایج: از 1 به 1 از 1

موضوع: حل مشکل در "No -display or DISPLAY." برای ایمیج کوبین

  1. #1
    کاربر فعال
    تاریخ عضویت
    Dec 2007
    نوشته ها
    113
    تشکر
    92
    تشکر شده 78 بار در 59 پست

    Talking حل مشکل"XOpenDisplay failed. No -display or DISPLAY." برای ارتباطvnc ایمیج کوبین

    باسلام
    امروز بعد از مدتها برگشتم سر برد کوبی برد و خواستم با کوبین کار کنم.
    متاسفانه اون موقع نتونستم 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): @# #@ @# #@ http://www.karlrunge.com/x11vnc/#tunnelling @# #@ @# #@ Or using the x11vnc SSL options: -ssl and -stunnel @# #@ @# #@ Please Read the documention for more info about @# #@ passwords, security, and encryption. @# #@ @# #@ http://www.karlrunge.com/x11vnc/faq.html#faq-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:~$
    مشکل ظاهرا طبق چیزی که اینجا گفته به علت عدم لاگین شدن رخ میده!یعنی قبل از اینکه به سرور vnc بزنید باید اول لاگین کنید نمی دونم ssh چیکاره ست...
    و اگر خواستین در مورد روشهای اتصال به سرور X بدونین اینجا کمک تون میکنه.
    البته من خودمم زیاد سر در نیاوردم اما د رکل تونستم مشکلم رو به راحتی برطرف کنم،‌گفتم بگم شاید بدرد یکی بخوره
    کد:
    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
    ویرایش توسط dostajn : 28-07-2014 در ساعت 01:19

  2. کاربران : 3 تشکر کرده اند از شما dostajn برای ارسال این پست سودمند:


  3. # ADS
    Circuit advertisement
    تاریخ عضویت
    Always
    نوشته ها
    Many
     

موضوعات مشابه

  1. نحوه راه اندازی video display controller t138af با پروتکل i2c
    توسط kamikazi در انجمن AT91 series (ATMEL)
    پاسخ: 189
    آخرين نوشته: 04-08-2015, 14:46
  2. پاسخ: 56
    آخرين نوشته: 12-04-2014, 21:57
  3. "پورت سریال، printf ، retarget" و دیگر هیچ!
    توسط arasbaran در انجمن LPC series (NXP)
    پاسخ: 7
    آخرين نوشته: 04-11-2013, 23:01
  4. پاسخ: 279
    آخرين نوشته: 30-04-2013, 01:10

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •