-   Linux - Newbie (
-   -   How to configure VNCserver for accessing linux machine in windows system (

akram 07-23-2009 02:49 AM

How to configure VNCserver for accessing linux machine in windows system
Dear All

I have a installed fedora 8 in my system, and want access my linux desktop in windows xp machine through a vncserver, I have installed vncserver, when I executed the vncserver in gnome terminal, it gives me the

New 'localhost.localdomain:2 (akram)' desktop is localhost.localdomain:2

in my windows xp machine when I try to access my linux GUI session, its only gives me the terminal screen session

when I restart my vncserver service, it gives me the error message that"display is not configured".

I also edit my xstartup file using
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & gnome-session &

but still the problem is same, plz guide me how to configure the vncserver for access full interactive gnome desktop session.

Thanks in Advanced



EricTRA 07-23-2009 03:03 AM


In the user's home directory (the user you are using to connect to vncserver) there should be a directory .vnc with an xstartup file in it.

Put the following in that file and it should do the trick:


# Uncomment the following two lines for normal desktop:
 exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
startx &

The last line tells the terminal to which you are connecting to launch startx and you'll get your GUI.

Kind regards,


akram 07-23-2009 06:20 AM

Dear EricTRA,

Thanks, for help, now GUI of my fedora system is accessible through a windows machine, again thanks, for help.



EricTRA 07-23-2009 06:29 AM

No problem Akram. I'm glad I'm able to help someone since I myself have received help on various occasions. Just keeping the 'chain' of help going where I can.

Kind regards,


All times are GMT -5. The time now is 10:42 PM.