gconftools-2 --set -type int /apps/preenv/<Name_of_executable>/screen_rotation <X>
PDL: You are root. Don't do this unless you know what you're doing!