Tuesday, March 5, 2013

Autologin and lock in Ubuntu 12.10

It is very handy to set your computer to log into your account and then lock the screen. And it is very easy to set up in Ubuntu (I am using Ubuntu 12.10 w Unity).

1.- Set your screen saver to lock your station:
Settings > Brightness and lock and set on the lock options:

2.- Set your account to do autologin
Settings > User accounts > Automatic Login (remember to unlock the settings if you cant)

Once it is changed, Lock again the settings.

3.- Add your screen saver to be run on boot
Startup Application Preferences > Add
then add an entry for the screen saver:

Name: (whatever)
Command: /usr/bin/gnome-screensaver-command -l
Comment: (whatever)


For the locking command, I used:
gnome-screensaver-command --lock


xdg-screensaver lock

4.- Bonus: I like to add my email program to the start up, so similarly

Done! Next time your machine boots, the screen will be locked with your screensaver.

No comments:

Post a Comment