title: Linux Red Hat 5.6 and VNC: KDE & Gnome
body: <p>I am using Red Hat 5.6 and I have configured VNC for my Unix user with no issues. I am able to log into it and it defaults to Gnome. KDE is installed on the machine and I would like to use it. Below is my ~/.vnc/xstartup file.</p>
  
  <p>I tried replacing twm below with "startkde &amp;" but it didn't work. Gnome seems to be the default desktop even though twm is shown below and even once I change it, it doesn't work. Even with no desktop listed, Gnome still starts.</p>
  
  <p>Does anyone know why this is happening and how I can start other desktops?</p>
  
  <pre><code>#!/bin/sh
  
  # Uncomment the following two lines for normal desktop:
  unset SESSION_MANAGER
  vncconfig -nowin &amp;
  exec /etc/X11/xinit/xinitrc
  
  [ -x /etc/vnc/xstartup ] &amp;&amp; exec /etc/vnc/xstartup
  [ -r $HOME/.Xresources ] &amp;&amp; xrdb $HOME/.Xresources
  xsetroot -solid grey
  vncconfig -iconic &amp;
  xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &amp;
  twm &amp;
  </code></pre>