LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Lock console? (https://www.linuxquestions.org/questions/linux-general-1/lock-console-38598/)

KaktusKnight 12-17-2002 12:26 AM

Lock console?
 
Without logging out, how do I lock the console and desktop? Is there a way?

thanks in advance

cipher_arg 12-17-2002 12:42 AM

it dependes on what desktop you use
in gnome for example there a specil botton to do it,

KaktusKnight 12-17-2002 12:51 AM

I am using
 
KDE. I have looked at the logout button but I can only choose 'end session'

KaktusKnight 12-17-2002 12:51 AM

Also I have clicked on 'lock screen' but nothing happens

born4linux 12-17-2002 03:13 AM

you can't lock your gui screen as root. u r not logged as root, right?

for the console, in text mode, use vlock.

man vlock

gigsvoo 12-17-2002 03:29 AM

Which distro yuo r using?

KaktusKnight 12-17-2002 03:45 AM

vlock in not working.

"no manual entry for vlock".

And how come I must be logged in as root to lock, I do not want to mess about as root and in SUSE 7.2 the 'lock screen' is working fine without being logged in as root.

help!

thanks in advance

born4linux 12-17-2002 04:03 AM

Quote:

Originally posted by born4linux
you can't lock your gui screen as root. u r not logged as root, right?

for the console, in text mode, use vlock.

man vlock

i said u can't lock the screen in GUI mode as root.

vlock might not be installed:

Searching for vlock (Red Hat Linux 8.0)...
CD-3:vlock-1.3-11.i386.rpm

Check ~/.xsession-errors (it means the file .xsession-errors in your home directory). It would most likely reflect the error messages encountered when you try to gui lock your system.

KaktusKnight 12-17-2002 04:37 AM

Born4linux, sorry about my misunderstanding.

I use SUSE 8.1 and SUSE 7.2, in 7.2 this works fine but in 8.1 it is not working at all.

the .xsession-errors file did not give me much clue. =(

thanks for trying to help..

Flibble 12-17-2002 06:12 AM

xscreensaver-command -lock

should do the trick in GUI mode.

Flibble

gigsvoo 12-17-2002 07:23 PM

If you are using either GNOME or KDE window manager, then the icon should be there, otherwise insert one.

KaktusKnight 12-18-2002 12:15 AM

Gigsvoo, the icon is there but its function is missing....

Flibble, xscreensaver-command -lock -none of this in any order worked. "command not found"

gigsvoo 12-18-2002 12:30 AM

You seems do not installed xscreensaver package, install it and the problem should be solved.

KaktusKnight 12-18-2002 01:42 AM

Gigsvoo, I managed to install the xscreensaver, thanks a lot, but when I try to configure it I get some weird answers:

Xlib: connection to ":=:=" refused by server
Xlib: Invalid AUTHORIZATION-1 key (failed key comparison)
xscreensaver-command: can't open display :0

What does this mean. I run the man xscreensaver and tried to follow the instructions but whatever I do I get this answer..

Can you help again, please?

gigsvoo 12-18-2002 02:23 AM

Try this:

# DISPLAY=<your ip>:0.0; export DISPLAY

then only run configure your xscreensaver. Normally you need to make sure xscreensaver daemon server starts during system bootup, try to reboot and see?


All times are GMT -5. The time now is 04:21 AM.