Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

2 Answers 2

up vote 4 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
1  
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

 
discard

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.