How to configure VNC display

Posted on 2005-03-03
Medium Priority
Last Modified: 2013-12-27
I want to try to use VNC from Windows XP to remote control a RedHat Linux ES server.
I am able to connect to the Linux server through VNC. After I get connected, it does not show the desktop of the lLinux server and just a terminal window. I was told the xstart script file need to be modified in order to show the desktop.
Could anyone help on this?

The xstart script file is as follow:

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
 setroot -solid grey
 vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

Question by:csyrich
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
LVL 38

Accepted Solution

wesly_chen earned 2000 total points
ID: 13462353
> [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
> setroot -solid grey
> vncconfig -iconic &
>xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
>twm &

   Change the last line from "twm &" to "gnome-session &".
And restart vncerver.

LVL 38

Expert Comment

ID: 13462364
By the way, if you use KDE, then use
"startkde &"


Author Comment

ID: 13463996
It works just fine.
Thank you!

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
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.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

770 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