VNC to Fedora from Windows 7

Associate
Joined
26 Mar 2003
Posts
1,194
Location
UK
Hi experts!!

I am trying to configure my Fedora box to be accessible via VNC, I have got half way I think, in the sense that the VNC service is running and when I open vncviewer on my Windows machine I can enter the IP of my linux box and also authenticate with the chosen password.

However, I can't get a GUI to appear, once I authenticate the VNC dialogue disappears and that's the last I see of it.

I am assuming I remain connected to the Linux box though as if I kill the vncserver in Linux I get a disconnect error on the Windows box.

Any advice would be gratefully received,

MW
 
Do you have these options uncommented in your /home/[username]/.vnc/xstartup file?

unset SESSION_MANAGER
exec /usr/local/lib/X11/xinit/xinitrc

If you do then it may be worth posting your vnc config.
 
Thanks for the response, I had something similar to that in my vnc config file, "exec /etc/X11/xinit/xinitrc"

When I removed this and replaced with the line you suggested I could no longer connect at all the the VNC server (I tried stopping / restarting a number of times but no luck). As soon as I replaced it with the original line I could log back in, but still no GUI.

Here's my VNC config file:

----

#!/bin/sh

vncconfig -iconic &
unset SESSION_MANAGER
#exec /usr/local/lib/X11/xinit/xinitrc
#exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startx &


-----
Many thanks,

MW
 
That was my mistake on the previous post the path was incorrect.
Here is my xstartup file from one of my RHEL servers:

----

#!/bin/sh

# Uncomment the following two lines for normal desktop:
vncconfig -iconic -nowin &
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" &
twm &
---

It may be worth trying the "twm &" command instead of "startx &"

Out of curiosity which Fedora version are you using?
 
Hmmm, still no luck :(

I'm running Fedora 12 (Constantine)

I've read somewhere that xinit might be running at the wrong rc level.... a bit beyond me, how would I verify / change this if it could be the cause?

Thanks in advance

/MW
 
Thanks again for the reply. I've just managed to solve it myself! :) I decided to turn off iptables momentarily and check whether the firewall was blocking, and surprise surprise, it worked!! Add a few lines to iptables and result!

Thanks a lot for your time

/MW
 
Back
Top Bottom