localhost ryan # cat startxgl.sh Xgl :$1 -ac -accel xv:fbo -accel glx:pbuffer & # replace with # Xgl -br -ac -accel glx:pbuffer -accel xv:pbuffer # for ATI DISPLAY=:$1 beryl-xgl --replace & DISPLAY=:$1 dbus-launch emerald & # If you are not using be beryl , but using compiz (vanilla) , this is the part where you launch it . Try # compiz --replace gconf & # sleep 3 # gtk-window-decorator --replace & DISPLAY=:$1 startkde & # This is where you start KDE # KWin will detect that another window manager is already running so it will not start. DISPLAY=:$1 xterm & # you should always keep an xterm open # Feel free to comment the lines that you don't approve