issue: LXDE + vnc = black screen

desai_amogh

In the zone
Hi Guys,

I have a fedora 15 server, and it was consuming too much resources (ram, processor). I decided to remove gnome and install lxde. check online and removing gnome creates problems.. so i dint do groupremve "gnome desktop environment" but removed loats of gnome related unwanted packages. installed LXDE and vncserver.

now when I connect to vnc i get a black screen with no icons, no background, nothing.
this is my /root/.vnc/xstartup
Code:
#!/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 &

I am sure this problem is related to gdm.. as i have lxde installed and vnc is searching for gnome login screen.. how can I fix this ??
 
Top Bottom