Solved

How to install and configure VNC server on Redhat 6?

Posted on 2011-09-06
9
881 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
 
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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

929 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now