Howto: Extend Autologin without a Display Manager

August 28, 2006 at 5:03 pm | Posted in tips and tricks, xubuntu | Leave a comment

Following this guide, you can set up Bash to re-start X after you log out, just like a display manager.

Edit .bash_profile (mousepad .bash_profile), and replace the lines

# autologin tty2
if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty2 ];
exec startxfce4


ps ax|grep -q "[ ]`which X`" || exec xinit >/dev/null 2>&1

Save and exit. Now when you use Ctrl+Alt+Backspace, X will restart. You can use killall Xorg as a logout command.

The only downside to this is that you won’t have any extra tty’s (Ctrl+Alt+2, Ctrl+Alt+3, etc, etc).


Leave a Comment »

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Blog at
Entries and comments feeds.

%d bloggers like this: