Question : Problem: connecting to fedora 9 through realvnc

Installed Fedora 9 yesterday on a remote machine.  SELinux is disabled.  The router has ports 5900-5910 pushed to the box.  I have the server running, and have made a couple changes to the xstartup as recommended in forums I've read.  See below for the current file.

Connecting from WinXP SP3 using RealVNC viewer, I receive:

"unable to connect to host: A socket operation was attempted on an unreachable host. (10065)"

How can I resolve this?
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
[root@fedora-backup .vnc]# cat xstartup
#!/bin/sh
 
vncconfig -iconic &
# 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
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
#startx &
exec gnome-session &
Open in New Window Select All

Answer : Problem: connecting to fedora 9 through realvnc

This was resolved by editing the /etc/sysconfig/vncservers to include a display.  The username in the configuration indicates the user under which vncserver will run.  I found it is not recommended to run as the root user (duh!).  Once the config is done, connecting from a WinXP client should use :.  By default, the viewer will attempt to connect to display :0, which causes many issues.  In my case, I used "mydomain.com:1", and it worked fine.  

Be aware that the password request is not the password of the user account, but the password set by vncpasswd.  It is stored encrypted in ~/.vnc/passwd.  

Finally, gnome-settings-daemon seems to have some known issues with RealVNC.  Disable/uninstall the package to make things run more smoothly.  I was still able to connect OK, but there are many reports of keyboard failures attributed to the daemon.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
[root@fedora-backup .vnc]# cat /etc/sysconfig/vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the lines below to start a VNC server on display :2
# as my 'myusername' (adjust this to your own).  You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted!  For a secure way of using VNC, see
# .
 
# Use "-nolisten tcp" to prevent X connections to your VNC server via TCP.
 
# Use "-nohttpd" to prevent web-based VNC clients connecting.
 
# Use "-localhost" to prevent remote VNC clients connecting except when
# doing so through a secure tunnel.  See the "-via" option in the
# `man vncviewer' manual page.
 
# VNCSERVERS="2:myusername"
# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"
VNCSERVERS="1:username"
VNCSERVERARGS[1]="-geometry 1024x768"
Open in New Window Select All
Random Solutions  
 
programming4us programming4us