Setting up VNC
Posted: Fri Jan 01, 2010 4:47 am
I followed the steps at http://wiki.amahi.org/index.php/VNC and I am able to start the VNC server, be able to access it on another computer and automatically log in. But when the computer restarts (headless or with monitor and keyboard) it would not start the VNC server, on the boot screen it comes up with
I don't know if it would help but these other services fail
I have the server automatically logging into the 'server' user and I only ever have started the VNC server in this account (not root). Here's my /home/server/.vnc/xstartup
When I type in "[server@hda ~]$ vncserver -geometry 1440x900" it starts normally and the /home/server/hda:1.log contains
Code: Select all
Starting VNC server: no displays configured [FAILED]
Code: Select all
Starting openvpn: [FAILED]
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName [OK]
Code: Select all
#!/bin/sh
vncconfig -iconic &
unset SESSION_MANAGER
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 &
Code: Select all
Xvnc TigerVNC 1.0.0 - built Oct 26 2009 10:58:46
Copyright (C) 2002-2005 RealVNC Ltd.
Copyright (C) 2000-2006 Constantin Kaplinsky
Copyright (C) 2004-2009 Peter Astrand for Cendio AB
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 10603901,
Fri Jan 1 19:42:47 2010
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: created VNC server for screen 0
GNOME_KEYRING_SOCKET=/tmp/keyring-vlauki/socket
SSH_AUTH_SOCK=/tmp/keyring-vlauki/socket.ssh
** (gnome-settings-daemon:2639): WARNING **: XKB extension not available
** (gnome-settings-daemon:2639): WARNING **: Neither XKeyboard not Xfree86's keyboard extensions are available,
no way to support keyboard autorepeat rate settings
xmodmap: unable to open file '/usr/share/xmodmap/xmodmap.us' for reading
xmodmap: 1 error encountered, aborting.
Window manager warning: Failed to read saved session file /home/server/.config/metacity/sessions/10e2a67e484d0093ac126234617247791400000025660027.ms: Failed to open file '/home/server/.config/metacity/sessions/10e2a67e484d0093ac126234617247791400000025660027.ms': No such file or directory
xmodmap: unable to open file '/usr/share/xmodmap/xmodmap.us' for reading
Window manager warning: Log level 32: could not find XKB extension.
xmodmap: 1 error encountered, aborting.
(polkit-gnome-authentication-agent-1:2677): GLib-GObject-WARNING **: cannot register existing type `_PolkitError'
(polkit-gnome-authentication-agent-1:2677): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed
** (polkit-gnome-authentication-agent-1:2677): WARNING **: Unable to register authentication agent: Remote Exception invoking org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on /org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for session
Cannot register authentication agent: Remote Exception invoking org.freedesktop.PolicyKit1.Authority.RegisterAuthenticationAgent() on /org/freedesktop/PolicyKit1/Authority at name org.freedesktop.PolicyKit1: org.freedesktop.PolicyKit1.Error.Failed: An authentication agent already exists for session
Failed to play sound: File or data not found
Failure: Module initalization failed
handle_message(member:'NameAcquired')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
Xlib: extension "DPMS" missing on display ":1.0".
handle_message(member:'NameOwnerChanged')
Argument is not int!
Message has no arguments!
** (nm-applet:2693): WARNING **: <WARN> request_name(): Could not acquire the NetworkManagerUserSettings service as it is already taken. Return: 3
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
Initializing nautilus-gdu extension
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')
handle_message(member:'NameOwnerChanged')