DIGIT-ARC read-only archive · snapshot: July 23, 2026

issue: LXDE + vnc = black screen

1 post · originally from https://geek.digit.in/community/threads/issue-lxde-vnc-black-screen.153728/

desai_amogh
desai_amogh Original post #1
Mar 7, 2012 at 12:24 PM
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 ??