LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-12-2012, 12:35 PM   #1
fnguy4545
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Rep: Reputation: Disabled
VNC only works if I log into my Server first.


Server running RHEL5 will only allow a VNC connection if I log into that servers console first, which then "allows" my VNC connection right into the desktop perfectly.

Can someone explain why?
 
Old 03-13-2012, 05:34 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
how have you configured vnc?
do you restart the vncserver after logging in?
 
Old 03-13-2012, 07:35 AM   #3
fnguy4545
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Hi, thanks for helping. I found an article through a link here to configure VNC so it partially works. I restarted vncserver after I followed that and it works once -- I can log in, see the desktop, work, and log out. But if I try to log in again then I need to increment my port number from 5901 to 5902 (can't get it to work on 5900).

Obviously there's something I don't know.

Thanks again.
 
Old 03-13-2012, 07:41 AM   #4
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
check this file for port no.

Code:
#vi /usr/bin/vncserver
$vncPort = 5900 + $displayNumber;
 
Old 03-13-2012, 08:52 AM   #5
fnguy4545
LQ Newbie
 
Registered: Jan 2012
Posts: 26

Original Poster
Rep: Reputation: Disabled
Looks like the port increments everytime I log out of vnc. It started at 5901, then only works on 5902, and so forth (haven't done it 20 times to see if there is some limit)

Perhaps this is what VNC is designed to do.... If I just disconnect (not log out) of my vnc session then I get back to the desktop. hmmmm.... questions, questions.
 
  


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
In Apache server, How to change log file location and log format for access log fil? since1993 Linux - Server 1 08-19-2009 04:14 PM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
rhel4 vnc problem, where to configure GUI vnc server? hocheetiong Linux - Newbie 1 10-24-2007 06:05 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
VNC server available without log on mteixeira Linux - Newbie 3 11-08-2005 02:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 PM.

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