Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-01-2005, 01:03 PM   #1
LQ Newbie
Registered: Aug 2004
Distribution: Mandrake 10.0
Posts: 13

Rep: Reputation: 0
VNCView into non-headless, currently active screen?


I've been playing around with VNC (TightVNC, specifically) for a day now, and I like it. It'll come in handy when I need to use my own Linux box when I'm stuck in a Windows cluster.

However, it's slightly annoying that I need to do this in order to activate it:

(have X stop running)
$ vncserver :0
(have a headless machine running)
Really, I don't want a headless machine that I can VNC into when I want to see what's on the screen. I need a Remotely Shared Desktop, which allows me to broadcast my desktop to a VNC client, while actually still being shown via the X server.

I looked at the KDE Desktop Sharing / Remote Desktop software and walkthrough here, and urpmi'd krfb (the rpm link on that page is dead; urpmi is the apt-get of Mandrake) - but it seems that the krfb version I got has moved on a bit, and it doesn't seem to work as described.

That page shows that you can definitely broadcast an X desktop that you're currently using, because the screenshot shows that the screen with VNCViewer on it is the one being broadcast.

However, even using VNCServer, VNCConnect and VNCViewer on my localhost (that is, not trying the KDE Remote Desktop idea), I get turned away when VNCViewer tries to connect:
# vncviewer
vncviewer: VNC server closed connection

# vncserver :0
A VNC server is already running as :0
I take it the VNC Server apparently running as display :0 is my X desktop (and not a display with VNC running on it afterall)

Netstat shows that nothing is listening on 5900, 5901, 5800 or 5801, so VNC is definitely not listening on :0 (or at all).

Any thoughts?

Edit: I forgot to mention, that I have been successful in having vncserver run as display :0, and then fire up X on another display, then use a VNCViewer to VNC into the :0 display as if I was VNC'ing remotely from another machine. But running two X sessions like that is - undesirable. Such a performance hit.

Last edited by techsimian; 02-01-2005 at 01:05 PM.
Old 02-01-2005, 05:24 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
please understand that this behaviour is totally by design, it's just operating in a way that's not necesaily useful to your personal needs. use x11vnc instead.


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
going headless? the bishop Mandriva 5 06-24-2004 03:44 AM
headless server gravij Linux - General 2 06-06-2004 08:24 AM
"screen" for x windows? (headless windows) errh Linux - Software 0 06-03-2004 05:15 PM
Telnet/SSH screen stops responding after a while but the session is still active alllle Linux - Networking 4 05-04-2004 01:52 PM
Keeping my screen active Stephanie Linux - General 9 07-15-2002 11:27 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:23 PM.

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