LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   vnc in opensuse 11.1 (and probably 11.0) (https://www.linuxquestions.org/questions/suse-opensuse-60/vnc-in-opensuse-11-1-and-probably-11-0-a-702197/)

whschimmel 02-04-2009 05:25 AM

vnc in opensuse 11.1 (and probably 11.0)
 
Just installed OpenSUSE 11.1 and detected a problem:


When I was using OpenSUSE 10.3 I could setup my vnc settings perfectly. In Yast I could enable remote administration (vnc) and in the Sax2 (display settings) I could enable vnc for the current X screen with a password.

When I switched over to OpenSUSE 11,0 and now to OpenSUSE 11.1 I can't find the settings for enabling vnc for the current X screen.

When connecting from my PC2 (WinXP Pro SP3 with realVNC) to wy PC1 (OpenSUSE 11.1 KDE3.5, with vnc enabled in yast)
I can only connect to local ip:1 (999.999.9.99:1) or through a browser (http://999.999.9.99:5801). But I see only a black and white screen with a cursor. I can't login.

When trying to connect the normal way with vnc in windows (local ip:0, like 999.999.9.99:0) I get the error:

'failed to connect: Connection refused (100161)'



Does anybody have a workable solution or workaround for this problem?

tnx,

Wouter

bmsiller 02-04-2009 04:47 PM

To connect to your current X session, you'll want to use x11vnc. To use x11vnc with a password, first set the password with the command
Code:

x11vnc -storepasswd
and then start the vnc server
Code:

x11vnc -usepw -display :0

whschimmel 02-05-2009 05:01 PM

created an vnc password

and gave the "x11vnc -usepw -display :0" command, when I do this I see the following:

Code:

05/02/2009 23:57:59 -usepw: found /home/wouter/.vnc/passwd
05/02/2009 23:57:59 x11vnc version: 0.9.4 lastmod: 2008-09-16
05/02/2009 23:57:59 Using X display :0
05/02/2009 23:57:59
05/02/2009 23:57:59 ------------------ USEFUL INFORMATION ------------------
05/02/2009 23:57:59 X DAMAGE available on display, using it for polling hints.
05/02/2009 23:57:59  To disable this behavior use: '-noxdamage'
05/02/2009 23:57:59
05/02/2009 23:57:59 Wireframing: -wireframe mode is in effect for window moves.
05/02/2009 23:57:59  If this yields undesired behavior (poor response, painting
05/02/2009 23:57:59  errors, etc) it may be disabled:
05/02/2009 23:57:59    - use '-nowf' to disable wireframing completely.
05/02/2009 23:57:59    - use '-nowcr' to disable the Copy Rectangle after the
05/02/2009 23:57:59      moved window is released in the new position.
05/02/2009 23:57:59  Also see the -help entry for tuning parameters.
05/02/2009 23:57:59  You can press 3 Alt_L's (Left "Alt" key) in a row to
05/02/2009 23:57:59  repaint the screen, also see the -fixscreen option for
05/02/2009 23:57:59  periodic repaints.
05/02/2009 23:57:59
05/02/2009 23:57:59 XFIXES available on display, resetting cursor mode
05/02/2009 23:57:59  to: '-cursor most'.
05/02/2009 23:57:59  to disable this behavior use: '-cursor arrow'
05/02/2009 23:57:59  or '-noxfixes'.
05/02/2009 23:57:59 using XFIXES for cursor drawing.
05/02/2009 23:57:59 GrabServer control via XTEST.
05/02/2009 23:57:59
05/02/2009 23:57:59 Scroll Detection: -scrollcopyrect mode is in effect to
05/02/2009 23:57:59  use RECORD extension to try to detect scrolling windows
05/02/2009 23:57:59  (induced by either user keystroke or mouse input).
05/02/2009 23:57:59  If this yields undesired behavior (poor response, painting
05/02/2009 23:57:59  errors, etc) it may be disabled via: '-noscr'
05/02/2009 23:57:59  Also see the -help entry for tuning parameters.
05/02/2009 23:57:59  You can press 3 Alt_L's (Left "Alt" key) in a row to
05/02/2009 23:57:59  repaint the screen, also see the -fixscreen option for
05/02/2009 23:57:59  periodic repaints.
05/02/2009 23:57:59
05/02/2009 23:57:59 XKEYBOARD: number of keysyms per keycode 6 is greater
05/02/2009 23:57:59  than 4 and 221 keysyms are mapped above 4.
05/02/2009 23:57:59  Automatically switching to -xkb mode.
05/02/2009 23:57:59  If this makes the key mapping worse you can
05/02/2009 23:57:59  disable it with the "-noxkb" option.
05/02/2009 23:57:59  Also, remember "-remap DEAD" for accenting characters.
05/02/2009 23:57:59 X FBPM extension not supported.
05/02/2009 23:57:59 X display is capable of DPMS.
05/02/2009 23:57:59 --------------------------------------------------------
05/02/2009 23:57:59
05/02/2009 23:57:59 Default visual ID: 0x21
05/02/2009 23:57:59 Read initial data from X display into framebuffer.
05/02/2009 23:57:59 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/5120
05/02/2009 23:57:59
05/02/2009 23:57:59 X display :0.0 is 32bpp depth=24 true color
05/02/2009 23:57:59
05/02/2009 23:57:59 Autoprobing TCP port
05/02/2009 23:57:59 Autoprobing selected port 5900
05/02/2009 23:57:59
05/02/2009 23:57:59 Xinerama is present and active (e.g. multi-head).
05/02/2009 23:57:59 fb read rate: 97 MB/sec
05/02/2009 23:57:59 screen setup finished.
05/02/2009 23:57:59

The VNC desktop is:      linux-y8hx: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 ...

more info: http://www.karlrunge.com/x11vnc/#faq-client-caching


after giving the above command I can connect with my windows pc to my linux pc, but as soon as I close RealVNC in windows i see the following message in the terminal of the linux machine:


Code:

06/02/2009 00:01:09 Got connection from client 192.168.1.10
06/02/2009 00:01:09  other clients:
06/02/2009 00:01:09 Disabled X server key autorepeat.
06/02/2009 00:01:09  to force back on run: 'xset r on' (3 times)
06/02/2009 00:01:09 created xdamage object: 0x220002c
06/02/2009 00:01:09 copy_tiles: allocating first_line at size 41
06/02/2009 00:01:10 Client Protocol Version 3.8
06/02/2009 00:01:10 Protocol version sent 3.8, using 3.8
06/02/2009 00:01:10 rfbProcessClientSecurityType: executing handler for type 2
06/02/2009 00:01:14 Pixel format for client 192.168.1.10:
06/02/2009 00:01:14  8 bpp, depth 6
06/02/2009 00:01:14  true colour: max r 3 g 3 b 3, shift r 4 g 2 b 0
06/02/2009 00:01:15 Enabling full-color cursor updates for client 192.168.1.10
06/02/2009 00:01:15 Enabling NewFBSize protocol extension for client 192.168.1.10
06/02/2009 00:01:15 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000F)
06/02/2009 00:01:15 Using ZRLE encoding for client 192.168.1.10
06/02/2009 00:01:15 Pixel format for client 192.168.1.10:
06/02/2009 00:01:15  32 bpp, depth 24, little endian
06/02/2009 00:01:15  true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
06/02/2009 00:01:15 no translation needed
06/02/2009 00:01:15 Enabling full-color cursor updates for client 192.168.1.10
06/02/2009 00:01:15 Enabling NewFBSize protocol extension for client 192.168.1.10
06/02/2009 00:01:15 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000F)
06/02/2009 00:01:15 Switching from ZRLE to hextile Encoding for client 192.168.1.10
06/02/2009 00:01:20 client_count: 0
06/02/2009 00:01:20 Restored X server key autorepeat to: 1
06/02/2009 00:01:20 viewer exited.
06/02/2009 00:01:20 deleted 40 tile_row polling images.


when I try to connect a second time to my linux pc from my windows pc, I get the error:

connection refused


How can i setup x11vnc so its running constantly and accepts all connections?

tomslick 02-06-2009 01:10 AM

follow these steps and you will have what you want.


HOWTO: Setup x11vnc as krfb alternative.

whschimmel 02-06-2009 05:01 AM

tnx guys
 
Thanks guys,

its working, I setup my vnc with howto provided. Now I have vnc working properly in OpenSUSE 11.1 (KDE 3.5)!!!

I connected locally from my windows pc to my opensuse pc. This worked perfectly. Also when I close the connection, its now possible to reconnect the same way.

This weekend I will test it from an external location. but my router is setup the right way, so I don't expect any problems.
edit: Externally its working too!!

greetz,

Wouter


All times are GMT -5. The time now is 10:34 AM.