I’m sure that many of you are used with the <Win>+<L> key combination in
windows, to lock the screen. In Ubuntu (the distro I use), the
corespondent shortcut is <CTRL>+<ALT>+<L>. But, in many other distros
there is no shortcut for this command. Here is what you can do to assign a shortcut for locking the screen. (In order to do that, you have to activate the Win key. Read “How to use the Win key in Linux” to find out how to do it.)
Open the gconf-editor by typing “gconf-editor” in the terminal.
nongeek@mma:~$ gconf-editor
Go to: apps>metacity>keybinding_commands
Modify one of the commands (e.g. run_command_1). To do that, double-click
on it.
In the Value field of the window that will appear we will type the
gnome
screensaver command for locking the screen. Let’s type
gnome-screensaver-command - -lock and click the OK button.

Go to apps>metacity>global_keybindings.
Look for the “run_command_1″ and double-click on it.
In the Value field type the key combination you want for the lock screen
command. I typed <Mod4>L. Click “Ok”

Restart the Xserver pressing <ALT><Backspace>.After you relog in, try
the new shortcut. If nothing happens, check if you typed right the key
combination gconf-editor. If you get some error message about the
command, check if you typed right the command for gnome screensaver.
In the same way you can change the shortcut for the desktop from
<CTRL><ALT>D to <WIN>D


There is a much simpler way to ‘lock’ the screen for me - Ctrt+Alt+F1
No one here knows the Alt-F7 combination to go back to the graphics mode
:)) Yes, you’re very right. The (virtual) console is a “the scarry linux thing” for most of the people.
Somehow i missed the point. Probably lost in translation
Anyway … nice blog to visit.
cheers, Indivisibly!