Setting up VNC

parody
Posts: 6
Joined: Thu Dec 17, 2009 2:34 am
Location: Perth, WA

Setting up VNC

Postby parody » 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

Code: Select all

Starting VNC server: no displays configured [FAILED]
I don't know if it would help but these other services fail

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]
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

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 &
When I type in "[server@hda ~]$ vncserver -geometry 1440x900" it starts normally and the /home/server/hda:1.log contains

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')
Amahi 6, x86_64 Fedora 14, Zotac IONITX-B-E min-ITX
Nvidia Ion, Intel Atom N230 1.6GHz, DDR2 1024MB 800MHz, 1TB WD Carviar Green 7200rpm.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Setting up VNC

Postby cpg » Fri Jan 15, 2010 3:20 am

hmm .... when you start it by hand, it starts it as a user, so it's configured already.

i think there is the need to install at the system-level.

i am not familiar how to do that, others may know - though the wiki should have it, as many people used it - are you sure you did not skip a step acceidentally?
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

andy1878
Posts: 3
Joined: Fri Feb 05, 2010 1:33 am

Re: Setting up VNC

Postby andy1878 » Fri Feb 05, 2010 2:14 am

Does your file /etc/sysconfig/vncservers contain the start up code?

Example

VNCSERVERS="2:myusername"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -nohttpd -localhost"

The switches are optional, this is the example code from /etc/sysconfig/vncservers


Also as myusername you need

# vncpasswd

this webpage helped me alot first time I tried
http://www.g-loaded.eu/2005/11/10/confi ... in-fedora/

TigerVNC seems easier to setup than TightVNC, but that might be practice on my part!

HTH

andy1878

Who is online

Users browsing this forum: No registered users and 19 guests