Friday, October 3, 2008

Startup tweak: Start desktop at login

The X desktop can be set to start as soon as you log in from a tty prompt. Edit your bash profile with

nano -w .profile

and add these lines to the end:

if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then
startx
fi

Save and exit. At next log in, X should start straightaway. This will also work for other programs that you want to start at the console, at login.

No comments:

Blog Archive