BTW - If you want to run more sessions then set /etc/sysconfig/vncservers to:
VNCSERVERS="1:user 2:root 3:root"
then open ports 5901 5902 5903 - you can keep going
The xstartup should look like this:
Main Topics
Browse All TopicsHi All,
I am trying to configure VNC server following instructions below
VNC Server configuration
Setting up VNC server in RHEL or Fedora.
1. up2date vnc-server (RHEL) or yum install vnc-server (Fedora) if you don't have it installed.
2. Edit /etc/sysconfig/vncservers as root.
Uncomment the line:
VNCSERVERS="1:put_the_user
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]="-geometr
3. chkconfig vncserver on
4. su to the user that you will be logging in as.
5. Run vncpasswd and set the password.
6. Now run vncserver. This will create the needed initialization files.
7. Edit /home/user/.vnc/xstartup and uncomment the two lines there to get a normal desktop when you log in.
8. Now kill the Xvnc task and delete the lock files in the .vnc directory
9. service vncserver start (there might be some other lock files you need to delete; I can't remember now - check any error messages here)
10. Unfirewall 5901 tcp to allow remote connections
11. Connect from the remote machine using servername:1
To attach to the session that is running on the monitor of the machine - the session of currently logged in local user, use krfb (on the server) and krdc (on the client) for KDE, and vino for Gnome.
--------------------------
I am unable to execute step 7: Edit /home/user/.vnc/xstartup and uncomment the two lines there to get a normal desktop when you log in.
If I go under /home directory - I do not see any thing their. It is blank.
How will I be able to implement step7. I am totally a windows person and newbie to Linux
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi Mikelfritz,
Thank you for detailed instructions. I was able to see the directory and edit the file. Now I have problem executing "step 8: Now kill the Xvnc task and delete the lock files in the .vnc directory"
How can I kill the Xvnc & how will I know which files are locked?
Just FYI: After following your instructions now I am able to see the normal desktop when I VNC into the server. But, before I accept /award your answer I just want to know above for future reference.
Thanks again!
Business Accounts
Answer for Membership
by: mikelfritzPosted on 2008-02-28 at 19:56:45ID: 21010712
from home do "ls -al" you will see it - the . at the beginning hides it.
just do cd .vnc from roots home