this is from (Micked) on the old forum and still works

make you not have to type startx every time you boot, it goes right to desktop.
Using this on backtrack 4 Pre Final persistent changes.

nano /root/.bash_profile
ctrl+o #WriteOut (o=letter, NOT a zero)
enter #save
ctrl+x #Exit

all done!! reboot and try it out.

you can put all kind of things you want to autostart in this file, like me, I have put "start-network" and "wicd-client" so that I have working network every time I boot.