LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure VNCserver for accessing linux machine in windows system (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-vncserver-for-accessing-linux-machine-in-windows-system-742168/)

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

Regards,

Akram

EricTRA 07-23-2009 03:03 AM

Hello,

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:
Code:

#!/bin/sh

# Uncomment the following two lines for normal desktop:
 unset SESSION_MANAGER
 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,

Eric

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.


Regards,

Akram.

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,

Eric


All times are GMT -5. The time now is 10:04 AM.