#!/usr/bin/env bash
export DISPLAY=locahost:0
metacity & #start the window manager. You could use compiz, openbox etc. instead
gnome-panel & #run the panel. You could use avant-window-navigator, docky etc. instead
nautilus & #show your desktop background and icons