LinuxQuestions.org
Review your favorite Linux distribution.
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 04-15-2008, 08:39 PM   #1
pratul
LQ Newbie
 
Registered: Feb 2007
Posts: 9

Rep: Reputation: 0
Smile How to enable VNC console on RHEL 5 server


This is to setup VNC to provide access to the local default X console as if you are sitting on the physical console. (These instructions are not for providing level 5 display for individual users):

CONFIGURING VNC FOR RHEL 5 SERVERS
Pratul 04/14/2008

To set up VNC to control the native X server, follow these steps:

****STEP1. On the system you want to control with VNC, run the program vncpasswd as root to set a VNC password. You will use this password when connecting with vncviewer or another VNC remote control program.

****STEP2. Edit the file /etc/X11/xorg.conf on RHEL 5

[A] Create the section called Module in the end of the file and add following lines:
Section "Module"
Load "glx"
Load "dbe"
Load "extmod"
Load "freetype"
Load "type1"
Load "dri"
Load "vnc"
EndSection
Make sure this is on a new line before EndSection.

[B] In section called Screen, add this line:
Option "passwordFile" "/root/.vnc/passwd"

Make sure this is on a new line before EndSection.


****STEP3 Allow the ports in Firewall

1. SSH to the server and Run the following tool:
2. # system-config-securitylevel
3. In the "Other ports", please add a range as in below example. Note that those will be TCP ports as below:

5900-5904:tcp

4. Save and close the tool then restart firewall:
# service iptables restart

****STEP4: Make sure using chkconfig that vncserver is enabled for level 2,3,4,5. Then RESTART the machine.

Note: If you suspect the firewall blocking, then disable the firewall altogether and test VNC if it works. I use tightVNC to test.

VNC will typically use port 59xx, where "xx" is the console number. Use the command netstat -na | less to see the ports that are open on the system. Look in the 5xxx range for VNC.
 
Old 04-16-2008, 12:58 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
good advice, but a forum isn't really the place for it.Assuming this is 100% your own work, why not post it to our tutorials subsite?
 
Old 09-29-2008, 09:06 PM   #3
simgineer
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Solutions are good on forums because people can add to them or inform you of their special cases. No?
 
Old 09-29-2008, 09:14 PM   #4
simgineer
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
One thing about this particular vnc solution is it works on RHEL3 and RHEL4 as well, however i've noticed that on RHEL4 i get a refresh issue in that i have to continuesly move my mouse to get updates and i'd love to know if there is an easy fix for this. I don't see that on RHEL 3 or 5 boxes at all. :|
 
Old 12-04-2008, 10:50 AM   #5
froidnoid
LQ Newbie
 
Registered: Oct 2005
Location: The Far Far West
Distribution: SuSE 9.*, Ubantu
Posts: 4

Rep: Reputation: 0
When using this setup I get a tightvnc error

When using this setup on RHEL5.1 I get a tightvnc error on my windows box saying "error waiting for server message". The symptom is that the local display on my RHEL machine goes blank for a very short time, then I get the error on my window box, then, when the display comes back on my linux box the user has been logged out and the display is back to the login screen. Any ideas on how to fix this?

Thanks,
 
Old 12-04-2008, 11:40 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
please don't drag up dead threads. your problem = your thread.
 
Old 07-28-2011, 10:19 AM   #7
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
vnc server and viewer setup

hey guys , i want to connect from a windows client system to a linux server remotely, is vnc viewer the right tool to connect remotely . please anybody send me details of what i have to do apart from installing vnc server rpm in linux and installing vnc viewer in windows , especially how to forward ports in the router.
 
Old 07-28-2011, 10:25 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
please don't drag up dead threads. your problem = your thread.
 
Old 07-28-2011, 10:42 AM   #9
mlnm
Member
 
Registered: Jun 2011
Posts: 96

Rep: Reputation: Disabled
sorry dude i didn't see posted dates , i am new to this forum , please help if possible
 
Old 07-28-2011, 01:40 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980Reputation: 1980
please start a new thread. or try searching a little longer before asking.
 
  


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
Enable VNC on RH8 Tom Douglas Red Hat 2 11-05-2007 05:47 AM
RHEL 5: Where to enable X server tcp port 6000? rhugga Linux - Server 6 07-22-2007 11:49 AM
how to enable root login on console when LDAP server is down ldapsky Linux - Networking 0 05-06-2006 07:27 PM
How to enable java for vnc? ragnar86 Red Hat 1 05-25-2005 11:06 PM
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 05:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration