Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I lock Ubuntu server screen without installing gnome screensaver?

I'm running the server with only the console without desktop installed.

share|improve this question
up vote 5 down vote accepted

vlock does the trick.

apt-get install vlock.

share|improve this answer
Wow! vlock does it in a sec. Thanks a lot for all your input! – Creems Oct 25 '12 at 18:55
If this is the answer you was looking for, you should mark it as such. That's also a way of saying thank you. ;-) – Anders Oct 26 '12 at 9:31
You know I was looking for where to do that but can't find it. Just found it. Thanks – Creems Oct 26 '12 at 10:46

If you mean a basic X screen, you could install and run xlock to accomplish screen lock. If you mean in a virtual terminal, then you need to just logout, with Ctrl+D, or running the exit command. If you need to keep some processes running while logged out, you should look at using byobu, tmux (which byobu uses for the terminal management), or screen.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.