LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-05-2009, 02:38 PM   #1
tongar
Member
 
Registered: Jan 2005
Distribution: SUSE ES 9 for x86
Posts: 43

Rep: Reputation: 15
VNC with RHEL 5.2 server


Hi,

I have seen and tried a lot of web information about issues with VNC and the RHEL 5.x implementation of VNC. I can't seem to get the behavior I want. Let me explain.

With SLES 10, I can use YaST and with a few clicks end up with a system that when rebooted, accepts VNC viewer connections to :1 and displays the system login screen. Here I can log in as root or any user. Once logged in, I can choose to use the command line to restart the system if necessary and eventually, I can reconnect with the vncviewer to the system login screen.

RHEL 5.2 has a "share your desktop" setting in preferences which works fine, but requires that I be logged in locally, which prevents remote restarts. There is also a system services dialog that refuses to start vncserver as a service. There are numerous tutorial in the RH knowledge base and the web that explain how to specifically setup individual displays, :1, :2 for specific users and claim that it can work after boot. I have not been able to get these working, but what I really want is a simpler, single display, :1, that will present the RHEL login screen so I can log in as any user I want. I am the only person accessing these servers and they are behind a firewall using secure protocols when remote.

I think Red Hat did not want to make this too easy as VNC users need to consider the security risks. Is there a way to get the SLES 10 VNC approach to work on RHEL 5?

thanks very much for ideas,
 
Old 08-05-2009, 02:52 PM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Have a look at this Linux VNC Server Setup. Halfway the post where it says Launching vncserver As a Service is listed what you need to change in /etc/sysconfig/vncservers in order to start vncserver as a service. Presumably it works on current Redhat/Fedora/Centos, I can only confirm I have it running on RHEL5.2.

Kind regards,

Eric

Last edited by EricTRA; 08-05-2009 at 02:53 PM. Reason: Oversized text changed to bold, sorry
 
Old 08-06-2009, 08:34 AM   #3
tongar
Member
 
Registered: Jan 2005
Distribution: SUSE ES 9 for x86
Posts: 43

Original Poster
Rep: Reputation: 15
Eric,

thanks, that was helpful.

It still seems to be a user-specific invocation of VNC. Is that your experience? Do you get to the RH login screen or a particular user's session?

The SLES 10 that gets me to the login screen comes with:

tightvnc-1.2.9-201.17
xorg-x11-Xvnc-6.9.0-50.54.11

an xinetd coniguration with:

Service: vnc1
User: nobody
Server: /usr/X11R6/bin/Xvnc
Args: :42 -inetd -once -query localhost -geometry 1024x768 -depth 16

Would it be feasable to install this on RHEL 5.2 or has SLES mixed it up into the OS in a non-transferable way?

Is the freeNX solution an alternative or does it have drawbacks?

thanks to all for any ideas,
tongar
 
Old 08-06-2009, 08:46 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

In the environment we use at work, the users connect to their own session so yes it's user specific. How to do it for a 'general' environment is a bit unclear to me at this moment, so I'll have to look into that when at work.

I'll let you know what comes out of it but it woun't be before mid next week.

Kind regards,

Eric
 
Old 08-07-2009, 01:15 PM   #5
tongar
Member
 
Registered: Jan 2005
Distribution: SUSE ES 9 for x86
Posts: 43

Original Poster
Rep: Reputation: 15
Eric,

You are very kind, but please don't research this on my account. I have decided to use an NX solution and will not be pursuing this. NX will not allow a root login as VNC does, but that is not necessary in my case.

thanks,
tongar
 
Old 08-07-2009, 01:20 PM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Ok, no worries.

Kind regards,

Eric
 
  


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
How to enable VNC console on RHEL 5 server pratul Red Hat 9 07-28-2011 01:40 PM
Issue with vnc server "tightVNC: VNC server closed connection", due to Screensaver frenchn00b General 1 07-30-2009 06:55 AM
Vnc server problem on RHEL 5.2 vbo Linux - Software 0 01-15-2009 04:08 AM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
setting up VNC server on RHEL WS 3 nick1 Red Hat 1 10-24-2004 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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