Cannot start vnc server because the USER environment variable is not set

Isaac Hooft isaach@rocky-mountain.com
Fri Aug 1 17:27:00 2003


We cannot load vnc server on startup. The only way we can get to run is to
stop and start the service once were in KDE. This is unacceptable because we
need to remotely administrate it.
 
 
How do we set the USER environment variable for VNC server?
Startup error looks like this
 
"Starting vncserver: Starting VNC server: 3: root vncserver: The USER
environments variable is not set"
 
Thankyou
 
Log file looks like this
 
01/08/03 08:58:52 Xvnc version 3.3.tight1.2.8
01/08/03 08:58:52 Copyright (C) 1999 AT&T Laboratories Cambridge.
01/08/03 08:58:52 Copyright (C) 2000-2002 Constantin Kaplinsky.
01/08/03 08:58:52 All Rights Reserved.
01/08/03 08:58:52 See http://www.uk.research.att.com/vnc for information on
VNC
01/08/03 08:58:52 See http://www.tightvnc.com for TightVNC-specific
information
01/08/03 08:58:52 Desktop name 'X' (mail:3)
01/08/03 08:58:52 Protocol version supported 3.3
01/08/03 08:58:52 Listening for VNC connections on TCP port 5903
01/08/03 08:58:52 Listening for HTTP connections on TCP port 5803
01/08/03 08:58:52   URL http://mail:5803
/root/.vnc/xstartup: !/bin/sh: No such file or directory
sh: /lib/cpp: No such file or directory
xset:  bad font path element (#37), possible causes are:
    Directory does not exist or has wrong permissions
    Directory missing fonts.dir
    Incorrect font server address or syntax
Xlib:  extension "RENDER" missing on display ":3.0".
DCOPServer up and running.
Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".
There are already artsd objects registered, looking if they are active...
Xlib:  extension "RENDER" missing on display ":3.0".
Server has no DPMS extension
Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".

Error: Can't add object reference (probably artsd is already running).
       If you are sure it is not already running, remove the relevant files:

       /tmp/mcop-root/Arts_SoundServerV2
       /tmp/mcop-root/Arts_SoundServer
       /tmp/mcop-root/Arts_SimpleSoundServer
       /tmp/mcop-root/Arts_PlayObjectFactory
       /tmp/mcop-root/Arts_AudioManager

Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".
Xlib:  extension "RENDER" missing on display ":3.0".

01/08/03 08:59:08 Got connection from client 192.168.4.35
01/08/03 08:59:08 Protocol version 3.3
01/08/03 08:59:11 Full-control authentication passed by 192.168.4.35
01/08/03 08:59:11 Pixel format for client 192.168.4.35:
01/08/03 08:59:11   8 bpp, depth 8
01/08/03 08:59:11   true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
01/08/03 08:59:11 rfbProcessClientNormalMessage: ignoring unknown encoding
16
01/08/03 08:59:11 Using hextile encoding for client 192.168.4.35
01/08/03 08:59:12 Pixel format for client 192.168.4.35:
01/08/03 08:59:12   32 bpp, depth 24, little endian
01/08/03 08:59:12   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
01/08/03 08:59:12   no translation needed
01/08/03 08:59:12 Using hextile encoding for client 192.168.4.35
01/08/03 08:59:12 rfbProcessClientNormalMessage: ignoring unknown encoding
16
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  7 (X_ReparentWindow)
  Resource id in failed request:  0x80000d
  Serial number of failed request:  8251
  Current serial number in output stream:  8534
kdeinit: Fatal IO error: client killed
kdeinit: sending SIGHUP to children.
KLauncher: Exiting on signal 1
kdeinit: sending SIGTERM to children.
kdeinit: Exit.
01/08/03 08:59:46 Client 192.168.4.35 gone
01/08/03 08:59:46 Statistics:
01/08/03 08:59:46   key events received 1, pointer events 1388
01/08/03 08:59:46   framebuffer updates 1076, rectangles 2737, bytes 9409303
01/08/03 08:59:46     copyRect rectangles 90, bytes 1440
01/08/03 08:59:46     hextile rectangles 2647, bytes 9407863
01/08/03 08:59:46   raw bytes equivalent 28585200, compression ratio
3.038437

01/08/03 09:00:06 Got connection from client 192.168.4.35
01/08/03 09:00:06 Protocol version 3.3
01/08/03 09:00:10 Full-control authentication passed by 192.168.4.35
01/08/03 09:00:10 Pixel format for client 192.168.4.35:
01/08/03 09:00:10   8 bpp, depth 8
01/08/03 09:00:10   true colour: