LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2002, 10:34 AM   #1
DVation
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Rep: Reputation: 15
lock desktop


since im originally a windows user, i really grew used to being able to lock my computer without logging off and without shutting down my program by hitting WINDOWS+L ... is there any equivelant to this in slackware? im running enlightenment. i would just like to be able to leave my computer and lock it without having to log out. anybody know how to do this?
 
Old 11-08-2002, 10:56 AM   #2
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
It's called xscreensaver. Put a line such as:
exec xscreensaver -no-splash &
in your .xinitrc and the computer will automatically lock after a specified time period. To adjust settings run xscreensaver-demo once you are in X and adjust it to your needs.
HTH
-NSKL
 
Old 11-08-2002, 01:03 PM   #3
DVation
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Original Poster
Rep: Reputation: 15
what if somebody comes along and kills x? wont i still be logged in?
 
Old 11-08-2002, 01:32 PM   #4
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
What do you mean if someone kills X, only root could do that, because in the new version of xscreensaver you cannot ctrl-alt-backspace and kill X that way, it was a bug in previous releases.
Then it also depends how you start X, with startx or by means of a login manager? If you start X from console with startx then you will stay logged in, even if X crashes/is killed, but if you use a login manager and X dies then it will return back to login screen, and of course you will be logged out.
HTH
-NSKL
 
Old 11-08-2002, 01:51 PM   #5
DVation
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Original Poster
Rep: Reputation: 15
ok i did not realize only root could kill x with ctrl alt backspace...and since i dont run x as root that shouldnt be a problem. however my initial login is not into the gui. i start x with the startx command, and it looks like ill still be logged in, if say, x crashes. i came across a post that said something about using the command 'startx & exit' ... would that solve my problem? im not clear as to what that does exactly. thank you very much for all your help btw
 
Old 11-08-2002, 03:58 PM   #6
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
I never heard about startx & exit and doubt it works since & sign after startx would mean put startx in background and "exit" would be ignored, speaking in Bash shell's language. If you want check the man page just to make sure (man startx).
Then i dont know of any way to lock X right away, just by pressing a button, like pressing "lock workstation" in windows, but im sure there is a way, try googling for it, or check freshmeat for a program that will do that.
-NSKL
 
Old 11-08-2002, 07:03 PM   #7
DVation
LQ Newbie
 
Registered: Nov 2002
Posts: 22

Original Poster
Rep: Reputation: 15
just thought id let you know that the command doesn indeed work perfectly. i can run 'startx & exit" and it will start up x and right before it jumps to the gui i can see myself logged out...when i exit x windows i am still logged out. perfect. thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) phreakshew Linux - Newbie 17 07-12-2016 03:50 AM
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 11:40 AM
desktop lock babyphil Linux - Newbie 2 11-16-2004 11:32 PM
Making programs lock to one desktop linux-nerd Linux - Software 1 09-16-2004 04:42 PM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration