LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-13-2009, 01:30 AM   #1
Dolamite777
LQ Newbie
 
Registered: Feb 2003
Distribution: Centos
Posts: 17

Rep: Reputation: 0
Question VNC Issue / Question


I noticed that when Centos 5 came out this started happening, I assumed at some point it would be fixed... i thought maybe it was a bug (and that maybe rhel 5 worked fine)... but 5.3 still has this... so I'm wondering what's going on....

I know how to set up vncserver, been doing it for many years, the problem is that when it is set to run at startup, it does run, has a pid and everything but you just can't connect. you have to kill it and then re-run it (doing this via ssh) and then it works.

it makes no sense really, i tried other ports, shutting down the firewall, enabled extra runlevels, all without any luck. SE Linux is disabled.

it's not that big of deal i guess, if i disable the service and just manually start vncserver every time it works fine, but i'm one of those people who like to make things work (like they used to in centos 4)... also i was going to set my dad up with a server running centos and it would be nice if he just had to click once to connect via vnc.

so i'm wondering if anyone has encountered this problem... can't seem to find anything specific to this anywhere on google, even though i tried a few things, nothing has worked... which is why i'm posting here, hoping somebody has came across this problem and could help me out.
 
Old 07-13-2009, 02:50 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
at what level can you not connect? What does the server log say?

btw, vnc is horrible, especially when it's run on boot. Why not try something decent like NX instead?
 
Old 07-13-2009, 04:25 PM   #3
Dolamite777
LQ Newbie
 
Registered: Feb 2003
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: 0
I cannot connect on any level, it's like the daemon is running but not accepting connections or something... stalled out perhaps...?

could be that it's running without anybody logged in (which never mattered before), because if i ssh in as root and kill it and re-run it it works fine...

it's trying to launch the service like 'service vncserver start' on boot... perhaps the startup script needs to be changed to just './vncserver'?

i've used realvnc for as long as i can remember, and it works just fine for me (besides this one issue), i have no reason to change...not to mention it's built into rhel/centos... nice and easy to setup / update...
 
Old 07-13-2009, 04:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
on any level? So you've telnetted into the port and it's not connected, and netstat doesn't show it as listening on 5901 or whatever?
 
Old 07-14-2009, 01:19 AM   #5
Dolamite777
LQ Newbie
 
Registered: Feb 2003
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: 0
yeah 5901 doesn't show up on netstat... telnet fails too

oddly enough (after i kill screen 1 and run vncserver from ssh) it still doesn't show up in netstat, but telnet gives a response....

Last edited by Dolamite777; 07-14-2009 at 01:21 AM.
 
Old 07-14-2009, 01:33 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, so you need to check the log file for that instance as a starter. Also check the actual command that's running from ps -ef.

Last edited by acid_kewpie; 07-14-2009 at 01:39 AM.
 
  


Reply



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 font issue usuf of the desert Linux - Newbie 0 11-07-2008 08:09 AM
VNC connection issue schn3id3r Linux - Networking 3 03-16-2007 06:54 AM
VNC server issue UltraSoul Solaris / OpenSolaris 2 12-07-2006 12:42 AM
Tight VNC issue excidy Linux - General 2 04-02-2005 09:40 PM
VNC Server Issue Jason_25 Linux - Newbie 5 04-27-2003 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:16 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration