Sorry, for your 3rd question there is a simpler answer:
Add startx to your .profile:
echo startx >> .profile
Of course, you need to have a .xinitrc file:
echo "exec dbus-launch startxfce4 > .xinitrc"
When you reboot, after logging, X will be automatically initiated
|