VNC создание подключения к текущему локальному раб. столу.

Есть и такой ОС.

Модератор: weec

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
vnctroubler
проходил мимо

VNC создание подключения к текущему локальному раб. столу.

Непрочитанное сообщение vnctroubler » 2011-05-06 19:22:12

Привет всем. Подскажите, как настроить vnc4server под xubuntu 10.10 (xfce) но так, чтобы доступ у меня был не к "вновь созданным рабочим столам", а к текущему локальному рабочему столу. Делал по одной статей из гугла, скреативил до этого:

Код: Выделить всё

$ cat .vnc/xstartup
#!/bin/sh

# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
xfce4-session &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
#vncconfig -iconic &
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
Больше в голову ничего не лезет. Подскажите как побороть. Заранее благодарен.
Последний раз редактировалось f_andrey 2011-05-07 2:43:30, всего редактировалось 1 раз.
Причина: Автору, выбирайте пожалуйста раздел соответствуюший тематике вашего сообщения.

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/


vnctroubler
проходил мимо

Re: VNC создание подключения к текущему локальному раб. стол

Непрочитанное сообщение vnctroubler » 2011-05-09 21:19:59

Спасибо за совет, однако проблема. Соединение есть какое-то время, потом отваливается с зависанием ПК. Вот лог, запускаю просто командой x11vnc:

Код: Выделить всё

$ x11vnc
###############################################################
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
#@                                                           @#
#@  **  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     @#
#@  the setting in your ~/.x11vncrc file.                    @#
#@                                                           @#
#@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@#
###############################################################
08/05/2011 23:59:30 x11vnc version: 0.9.10 lastmod: 2010-04-28  pid: 4006
08/05/2011 23:59:30 XOpenDisplay("") failed.
08/05/2011 23:59:30 Trying again with XAUTHLOCALHOSTNAME=localhost ...
08/05/2011 23:59:30
08/05/2011 23:59:30 *** XOpenDisplay failed. No -display or DISPLAY.
08/05/2011 23:59:30 *** Trying ":0" in 4 seconds.  Press Ctrl-C to abort.
08/05/2011 23:59:30 *** 1 2 3 4
08/05/2011 23:59:34 *** XOpenDisplay of ":0" successful.
08/05/2011 23:59:34
08/05/2011 23:59:34 Using X display :0
08/05/2011 23:59:34 rootwin: 0xb4 reswin: 0x7800001 dpy: 0x8d94268
08/05/2011 23:59:34
08/05/2011 23:59:34 ------------------ USEFUL INFORMATION ------------------
08/05/2011 23:59:34 X DAMAGE available on display, using it for polling hints.
08/05/2011 23:59:34   To disable this behavior use: '-noxdamage'
08/05/2011 23:59:34
08/05/2011 23:59:34   Most compositing window managers like 'compiz' or 'beryl'
08/05/2011 23:59:34   cause X DAMAGE to fail, and so you may not see any screen
08/05/2011 23:59:34   updates via VNC.  Either disable 'compiz' (recommended) or
08/05/2011 23:59:34   supply the x11vnc '-noxdamage' command line option.
08/05/2011 23:59:34
08/05/2011 23:59:34 Wireframing: -wireframe mode is in effect for window moves.
08/05/2011 23:59:34   If this yields undesired behavior (poor response, painting
08/05/2011 23:59:34   errors, etc) it may be disabled:
08/05/2011 23:59:34    - use '-nowf' to disable wireframing completely.
08/05/2011 23:59:34    - use '-nowcr' to disable the Copy Rectangle after the
08/05/2011 23:59:34      moved window is released in the new position.
08/05/2011 23:59:34   Also see the -help entry for tuning parameters.
08/05/2011 23:59:34   You can press 3 Alt_L's (Left "Alt" key) in a row to
08/05/2011 23:59:34   repaint the screen, also see the -fixscreen option for
08/05/2011 23:59:34   periodic repaints.
08/05/2011 23:59:34
08/05/2011 23:59:34 XFIXES available on display, resetting cursor mode
08/05/2011 23:59:34   to: '-cursor most'.
08/05/2011 23:59:34   to disable this behavior use: '-cursor arrow'
08/05/2011 23:59:34   or '-noxfixes'.
08/05/2011 23:59:34 using XFIXES for cursor drawing.
08/05/2011 23:59:34 GrabServer control via XTEST.
08/05/2011 23:59:34
08/05/2011 23:59:34 Scroll Detection: -scrollcopyrect mode is in effect to
08/05/2011 23:59:34   use RECORD extension to try to detect scrolling windows
08/05/2011 23:59:34   (induced by either user keystroke or mouse input).
08/05/2011 23:59:34   If this yields undesired behavior (poor response, painting
08/05/2011 23:59:34   errors, etc) it may be disabled via: '-noscr'
08/05/2011 23:59:34   Also see the -help entry for tuning parameters.
08/05/2011 23:59:34   You can press 3 Alt_L's (Left "Alt" key) in a row to
08/05/2011 23:59:34   repaint the screen, also see the -fixscreen option for
08/05/2011 23:59:34   periodic repaints.
08/05/2011 23:59:34
08/05/2011 23:59:34 XKEYBOARD: number of keysyms per keycode 8 is greater
08/05/2011 23:59:34   than 4 and 2 keysyms are mapped above 4.
08/05/2011 23:59:34   Automatically switching to -xkb mode.
08/05/2011 23:59:34   If this makes the key mapping worse you can
08/05/2011 23:59:34   disable it with the "-noxkb" option.
08/05/2011 23:59:34   Also, remember "-remap DEAD" for accenting characters.
08/05/2011 23:59:34
08/05/2011 23:59:34 X FBPM extension not supported.
08/05/2011 23:59:34 X display is capable of DPMS.
08/05/2011 23:59:34 --------------------------------------------------------
08/05/2011 23:59:34
08/05/2011 23:59:34 Default visual ID: 0x23
08/05/2011 23:59:34 Read initial data from X display into framebuffer.
08/05/2011 23:59:34 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
08/05/2011 23:59:34
08/05/2011 23:59:34 X display :0.0 is 32bpp depth=24 true color
08/05/2011 23:59:34
08/05/2011 23:59:34 Autoprobing TCP port
08/05/2011 23:59:34 Autoprobing selected port 5900
08/05/2011 23:59:34 Listening also on IPv6 port 5900 (socket 10)
08/05/2011 23:59:34
08/05/2011 23:59:34 Xinerama is present and active (e.g. multi-head).
08/05/2011 23:59:34 Xinerama: number of sub-screens: 1
08/05/2011 23:59:34 Xinerama: no blackouts needed (only one sub-screen)
08/05/2011 23:59:34
08/05/2011 23:59:34 fb read rate: 602 MB/sec
08/05/2011 23:59:34 fast read: reset wait  ms to: 10
08/05/2011 23:59:34 fast read: reset defer ms to: 10
08/05/2011 23:59:34 The X server says there are 10 mouse buttons.
08/05/2011 23:59:34 screen setup finished.
08/05/2011 23:59:34
08/05/2011 23:59:34 WARNING: You are running x11vnc WITHOUT a password.  See
08/05/2011 23:59:34 WARNING: the warning message printed above for more info.
08/05/2011 23:59:34

The VNC desktop is:      sysadminPC:0
PORT=5900

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

08/05/2011 23:59:43 Got connection from client 10.2.25.108
08/05/2011 23:59:43   other clients:
08/05/2011 23:59:43 Disabled X server key autorepeat.
08/05/2011 23:59:43   to force back on run: 'xset r on' (3 times)
08/05/2011 23:59:43 incr accepted_client=1 for 10.2.25.108:5964  sock=11
08/05/2011 23:59:43 Client Protocol Version 3.4
08/05/2011 23:59:43 Protocol version sent 3.4, using 3.4
08/05/2011 23:59:43 copy_tiles: allocating first_line at size 41
08/05/2011 23:59:43 Pixel format for client 10.2.25.108:
08/05/2011 23:59:43   32 bpp, depth 24, little endian
08/05/2011 23:59:43   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
08/05/2011 23:59:43 no translation needed
08/05/2011 23:59:43 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
08/05/2011 23:59:43 Using compression level 6 for client 10.2.25.108
08/05/2011 23:59:43 Enabling X-style cursor updates for client 10.2.25.108
08/05/2011 23:59:43 Enabling full-color cursor updates for client 10.2.25.108
08/05/2011 23:59:43 Enabling cursor position updates for client 10.2.25.108
08/05/2011 23:59:43 Using image quality level 6 for client 10.2.25.108
08/05/2011 23:59:43 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
08/05/2011 23:59:43 Enabling LastRect protocol extension for client 10.2.25.108
08/05/2011 23:59:43 Enabling NewFBSize protocol extension for client 10.2.25.108
08/05/2011 23:59:43 rfbProcessClientNormalMessage: ignoring unsupported encoding type cacheEnable
08/05/2011 23:59:43 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
08/05/2011 23:59:43 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
08/05/2011 23:59:43 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
08/05/2011 23:59:43 Using ZRLE encoding for client 10.2.25.108
08/05/2011 23:59:44 Pixel format for client 10.2.25.108:
08/05/2011 23:59:44   32 bpp, depth 24, little endian
08/05/2011 23:59:44   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
08/05/2011 23:59:44 no translation needed
08/05/2011 23:59:44 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
08/05/2011 23:59:44 Using compression level 6 for client 10.2.25.108
08/05/2011 23:59:44 Enabling X-style cursor updates for client 10.2.25.108
08/05/2011 23:59:44 Enabling full-color cursor updates for client 10.2.25.108
08/05/2011 23:59:44 Enabling cursor position updates for client 10.2.25.108
08/05/2011 23:59:44 Using image quality level 6 for client 10.2.25.108
08/05/2011 23:59:44 rfbProcessClientNormalMessage: ignoring unsupported encoding type xorEnable
08/05/2011 23:59:44 Enabling LastRect protocol extension for client 10.2.25.108
08/05/2011 23:59:44 Enabling NewFBSize protocol extension for client 10.2.25.108
08/05/2011 23:59:44 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
08/05/2011 23:59:44 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
08/05/2011 23:59:44 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
08/05/2011 23:59:44 Switching from ZRLE to hextile Encoding for client 10.2.25.108
08/05/2011 23:59:44 client 1 network rate 1734.0 KB/sec (19068.4 eff KB/sec)
08/05/2011 23:59:44 client 1 latency:  0.7 ms
08/05/2011 23:59:44 dt1: 0.1778, dt2: 0.0976 dt3: 0.0007 bytes: 476892
08/05/2011 23:59:44 link_rate: LR_LAN - 1 ms, 1734 KB/s
08/05/2011 23:59:49 client_set_net: 10.2.25.108  5.0044
08/05/2011 23:59:49 created   xdamage object: 0x780002c
08/05/2011 23:59:53 created selwin: 0x780002d
08/05/2011 23:59:53 called initialize_xfixes()
caught XIO error:
09/05/2011 00:07:18 deleted 40 tile_row polling images.

BlitzKrieg
ст. прапорщик
Сообщения: 538
Зарегистрирован: 2008-03-13 12:02:59

Re: VNC создание подключения к текущему локальному раб. стол

Непрочитанное сообщение BlitzKrieg » 2011-05-19 8:52:18

Только вчера разобрался как запускать при старте системы x11vnc, все работает на ubuntu maverick c kde и с gnome. Если интересно, напиши на blitzkrieg@mail.ru