LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   VNC only works if I log into my Server first. (https://www.linuxquestions.org/questions/linux-newbie-8/vnc-only-works-if-i-log-into-my-server-first-934074/)

fnguy4545 03-12-2012 12:35 PM

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?

deep27ak 03-13-2012 05:34 AM

how have you configured vnc?
do you restart the vncserver after logging in?

fnguy4545 03-13-2012 07:35 AM

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.

deep27ak 03-13-2012 07:41 AM

check this file for port no.

Code:

#vi /usr/bin/vncserver
$vncPort = 5900 + $displayNumber;


fnguy4545 03-13-2012 08:52 AM

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.


All times are GMT -5. The time now is 11:13 PM.