LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 02-04-2009, 05:25 AM   #1
whschimmel
Member
 
Registered: May 2004
Location: Netherlands
Distribution: OpenSUSE 11.1, KDE 3.5
Posts: 45

Rep: Reputation: 15
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

Last edited by whschimmel; 02-04-2009 at 04:24 PM.
 
Old 02-04-2009, 04:47 PM   #2
bmsiller
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
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
 
Old 02-05-2009, 05:01 PM   #3
whschimmel
Member
 
Registered: May 2004
Location: Netherlands
Distribution: OpenSUSE 11.1, KDE 3.5
Posts: 45

Original Poster
Rep: Reputation: 15
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?

Last edited by whschimmel; 02-05-2009 at 05:05 PM.
 
Old 02-06-2009, 01:10 AM   #4
tomslick
LQ Newbie
 
Registered: May 2003
Posts: 25

Rep: Reputation: 18
follow these steps and you will have what you want.


HOWTO: Setup x11vnc as krfb alternative.
 
Old 02-06-2009, 05:01 AM   #5
whschimmel
Member
 
Registered: May 2004
Location: Netherlands
Distribution: OpenSUSE 11.1, KDE 3.5
Posts: 45

Original Poster
Rep: Reputation: 15
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

Last edited by whschimmel; 02-08-2009 at 05:22 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[opensuse 10.3] vnc noir911 Suse/Novell 0 12-28-2007 06:12 PM
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 06:05 AM
VNC connection to SUSE Linux 10 from a Windows XP VNC Viewer determin2excel Linux - Software 13 10-03-2007 09:38 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
YAOSP (yet another opensuse prob) -vnc this time mattl Suse/Novell 0 12-30-2005 08:53 PM


All times are GMT -5. The time now is 04:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration