Solved

How to install and configure VNC server on Redhat 6?

Posted on 2011-09-06
9
885 Views
Last Modified: 2012-05-12
Hello I need to install and configure VNC server on Red HAt 6 (64 bit)

First Question : do you guys know where i can find the package rpm of the vnc server?

Second question :  does anyone knows how to install and  configure a VNC server?
0
Comment
Question by:cismoney
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 29

Expert Comment

by:fosiul01
ID: 36492305
I have not tryed Redhat 6


but guess it will not be too different then 5


look at this

http://bobpeers.com/linux/vnc

then package you need is

yum install vnc
0
 
LVL 38

Assisted Solution

by:wesly_chen
wesly_chen earned 125 total points
ID: 36492826
Here is the step-by-step instruction for RHEL6 with screen shots.
http://www.ispexperts.com.np/?page_id=761
0
 
LVL 77

Expert Comment

by:arnold
ID: 36492976
yum install vnc-server might be the explicit to install the server components with the client as dependent packages.
Wesly's step by step ....
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 6

Assisted Solution

by:mohansahu
mohansahu earned 375 total points
ID: 36493694
Hi,

Please find the attached document for detailed vnc server setup in RHEL and earlier accepted answer link for the same is.

http://www.experts-exchange.com/OS/Linux/Q_26897103.html

MS




0
 

Author Comment

by:cismoney
ID: 36494513
after the install, here is the error that i get


[root@svr-03 ~]# vncserver
xauth: (stdin):1:  bad display name "svr-03:9" in "add" command
 
New 'svr-03:9 (root)' desktop is svr-03:9
 
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/svr-03:9.log
 

Open in new window

0
 
LVL 6

Assisted Solution

by:mohansahu
mohansahu earned 375 total points
ID: 36495276
Hi,

My guess is the X session isn't starting on the Redhat  box,

Plz go through the below steps.

su to the user that you will be logging in as.

1.      Run vncpasswd and set the password.

2.      Now run vncserver. This will create the needed initialization files.

3.      Edit /home/user/.vnc/xstartup and uncomment the two lines there to get a normal desktop when you log in.

4.      Now kill the Xvnc task and delete the lock files in the .vnc directory

5.      service vncserver start (there might be some other lock files you need to delete; I can't remember now - check any error messages here)

6.      Unfirewall 5901 tcp to allow remote connections

7.      Connect from the remote machine using servername:1

Note:- uncomment the 2 line in the xstartup file.

MS
0
 

Author Comment

by:cismoney
ID: 36495839
The  /home/user/.vnc/xstartup is emply

all i see is

"/home/user/.vnc/xstartup" [New DIRECTORY]

Open in new window

0
 
LVL 29

Expert Comment

by:fosiul01
ID: 36496357
i here

vi /etc/sysconfig/vncservers


did you typed the user name ??
0
 
LVL 6

Accepted Solution

by:
mohansahu earned 375 total points
ID: 36500751
Hi,

1. Edit /etc/sysconfig/vncservers as root.

Uncomment the line:

VNCSERVERS="1:put_the_user_you_will_log_in_as_here"

The server will default to the resolution of the machine, so if you are going to connect to a desktop with a high resolution monitor from a laptop you will want to uncomment and set the following line also:

VNCSERVERARGS[1]="-geometry 1024x768"

2. restart vcn services


MS

0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question