LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   1:root vncserver: The USER environment variable is not set. (http://www.linuxquestions.org/questions/linux-software-2/1-root-vncserver-the-user-environment-variable-is-not-set-448263/)

Niceman2005 05-24-2006 10:20 PM

1:root vncserver: The USER environment variable is not set.
 
Dear friends,

I get this error when I tried to start vncserver.

1:root vncserver: The USER environment variable is not set.

Any idea how to solve this problem, it cannot start and stop vncserver now....pls help..thanks a lot...

Regards
Y

Niceman2005 05-24-2006 11:13 PM

In my /etc/sysconfig/vncserver I have the following settings:

VNCSERVERS="1:root"

And in my /root/.vnc/xstartup

#!/bin/sh

# 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
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &


....


All times are GMT -5. The time now is 12:53 PM.