Solved

How to install and configure VNC server on Redhat 6?

Posted on 2011-09-06
9
886 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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

839 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