LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-05-2004, 04:03 PM   #1
theophilus
LQ Newbie
 
Registered: Mar 2003
Location: Huntsville, AL
Posts: 3

Rep: Reputation: 0
Question Troubleshooting VNC server (specifically "-inetd" flavor)


Hello all,

Here's where I'm trying to get to: I want to be able to make a VNC connection to a Red Hat 9 box (call it Sammy) and have the GDM login screen displayed.

I have successfully done this on a different Red Hat 9 box (call it Billy) by doing the following:

1. Added the following line to /etc/services:
Code:
vnc     5901/tcp  #VNC
2. Created a file /etc/xinetd.d/vnc:
Code:
service vnc
{
        socket_type             = stream
        protocol                = tcp
        wait                    = no
        user                    = nobody
        server                  = /usr/bin/Xvnc
        server_args             = -inetd -query localhost -geometry 1024x768 -depth 16
        log_on_success          += USERID
        log_on_failure          += USERID
        disable                 = no
}
3. Enabled XDMCP using the gdmsetup utility.

When I do the exact same thing on Sammy and try to connect with a VNC client, I get an "Invalid Protocol" error message. I read that "Invalid Protocol" simply means, "The server said something I didn't understand." Attempting to telnet to Sammy on port 5901 exposed the real problem:
Code:
Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock and start again.
This is understandable, because display :0 is being used by the GDM login on Sammy's local console. However, all the info I can find about "Xvnc -inetd" says something like, "Xvnc will find a free display and start on it...". Why does it insist on trying to use display 0? On Billy, no problems... Xvnc will start on display :1 first, and keep finding unused display numbers up to the max number of users allowed. Why might it pick the right display on one machine but not on the other?

Now, there are some differences between the two machines: Billy was a fresh install of Red Hat 9, while Sammy was upgraded from an earlier release (7.3 I think). Billy was set up to use GDM graphical login at install time, while Sammy was converted later by changing id:3:initdefault: in /etc/inittab to id:5:initdefault:. Both are running the same version of VNC (3.3.3r2-47).

I have investigated the /etc/rc.d/init.d/vncserver script and /etc/sysconfig/vncservers, but my understanding is that these do not apply when Xvnc is started by xinetd. So... how does "Xvnc -inetd" learn which displays are unused? How can I best teach this slow learner?

Thanks for your time. I'd be happy to post additional info if needed.

Last edited by theophilus; 02-05-2004 at 04:05 PM.
 
Old 02-06-2004, 09:33 AM   #2
theophilus
LQ Newbie
 
Registered: Mar 2003
Location: Huntsville, AL
Posts: 3

Original Poster
Rep: Reputation: 0
shameless bump
 
Old 02-06-2004, 05:13 PM   #3
theophilus
LQ Newbie
 
Registered: Mar 2003
Location: Huntsville, AL
Posts: 3

Original Poster
Rep: Reputation: 0
OK, I feel pretty dumb. Reviewing Sammy's configuration I discovered a couple of formatting errors in the /etc/xinetd.d/vnc file which resulted in the server_args being messed up. Sure enough, if you just try to run Xvnc with no arguments, you get the same error I was seeing. Fixed the file, fixed the problem. Just wanted to let the thread know.

cheers
 
  


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
Vnc native X server (":0" X display) on Mandrake 10.1 sunny.shah Mandriva 0 12-13-2004 03:07 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"YOU" says "could not write server list to disk" dushkinup Linux - Distributions 4 07-26-2004 12:01 PM
What is "Xlib: connection to ":0.0" refused by server " rack201 Linux - Software 1 02-04-2004 07:49 AM
Troubleshooting x-server "Can't Open Display" rno451 Linux - Software 1 11-12-2003 08:10 PM


All times are GMT -5. The time now is 01:29 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