I am using BT4.0 installed on my USB drive I have made a persistant partition. Can anyone tell me how can i make x server auto start at startup and make the resolution change permanent i am trying to add the following to rc.local but it doesn't work as it says $HOME not set. Please mention any way i can use to accomplish this in BT4.0 final

Code:
startx
sleep 7s
xrandr -s 1024x768 --refresh 75