Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fluxbox and lock the screen?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zORN
n00b
n00b


Joined: 26 Aug 2002
Posts: 55
Location: Bei Wolfsburg:)

PostPosted: Tue Oct 22, 2002 10:44 am    Post subject: Fluxbox and lock the screen? Reply with quote

howdy...

is it possible to lock the screen under fluxbox like you can do under kde... i mean maybe there is a dockapp out...that starts also a screensaver with password-protection...

thx for any hint...
Back to top
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Tue Oct 22, 2002 12:09 pm    Post subject: Reply with quote

Code:
*  x11-misc/xscreensaver
      Latest version available: 4.05-r3
      Latest version installed: [ Not Installed ]
      Homepage: http://www.jwz.org/xscreensaver/
      Description: a modular screensaver for X11
Back to top
View user's profile Send private message
nmr_spectrometer
n00b
n00b


Joined: 07 Oct 2002
Posts: 55

PostPosted: Tue Oct 22, 2002 12:33 pm    Post subject: Reply with quote

You can emerge xscreensaver, then add the following to your ~/.fluxbox/menu file:
Code:
[submenu] (xscreensaver)
  [exec] (activate) {xscreensaver-command -activate}
  [exec] (lock) {xscreensaver-command -lock}
[end]

This page on the fluxbox site describes where to find dockapps if you want to go that way. Personally I don't like cluttering up the slit too much. To each his own, as they say.
Back to top
View user's profile Send private message
zORN
n00b
n00b


Joined: 26 Aug 2002
Posts: 55
Location: Bei Wolfsburg:)

PostPosted: Tue Oct 22, 2002 8:08 pm    Post subject: Reply with quote

thx a lot... now i can leave my fluxbox... and no girlfriend tries to hack my box :D
Back to top
View user's profile Send private message
zephyr1256
Apprentice
Apprentice


Joined: 10 Mar 2003
Posts: 170
Location: Kingsport, TN

PostPosted: Wed May 14, 2003 4:27 pm    Post subject: Reply with quote

One thing I just noticed, by default using xscreensaver isn't a very secure way to keep people out of your account if you don't logout. I just did a test and after the screensaver came up and the lockout activated, all I had to do was press cntrl-alt-backspace to kill the X server, and I'm at the command line logged in. I would imagine that there is a way to alias the command that kills the X server so that it also logs you out, something like:

Code:

cntrl-alt-backspace-command = cntrl-alt-backspace-command && logout


For whatever command cntrl-alt-backspace invokes. Either that or you could change what command or command sequence that key combination invokes.
Back to top
View user's profile Send private message
SPo0n
Tux's lil' helper
Tux's lil' helper


Joined: 03 May 2003
Posts: 85
Location: England

PostPosted: Wed May 14, 2003 4:29 pm    Post subject: Reply with quote

I have xscreensaver in my .xinitrc - incase i forget to activate it.
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Wed May 14, 2003 4:49 pm    Post subject: Reply with quote

Hmm... you can run X from within Screen, and lock that too. Your X server can still be shut down though.
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
zephyr1256
Apprentice
Apprentice


Joined: 10 Mar 2003
Posts: 170
Location: Kingsport, TN

PostPosted: Wed May 14, 2003 5:07 pm    Post subject: Reply with quote

Ahh, I figured it out, in your .bashrc file:

Code:

alias startx="startx && logout"


X runs and the logout command is deferred until it shuts down. The result of Control-Alt-Backspace is a return to the login console.
Back to top
View user's profile Send private message
Elay
n00b
n00b


Joined: 30 Mar 2003
Posts: 25

PostPosted: Wed May 14, 2003 6:13 pm    Post subject: Reply with quote

There is a utility called vlock. vlock -a will lock all the available consoles.
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Wed May 14, 2003 7:48 pm    Post subject: Reply with quote

zephyr: That's still hackable... all you have to do is switch to the console and hit Ctrl-Z.
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
zephyr1256
Apprentice
Apprentice


Joined: 10 Mar 2003
Posts: 170
Location: Kingsport, TN

PostPosted: Wed May 14, 2003 10:31 pm    Post subject: Reply with quote

Thanks, I thought it was, but hadn't figured out how. I had tried control-alt-F1 to get to the console but I hadn't figured out how to get the command line without killing the process. Of course, stop it instead of killing it.

So I guess you do need somthing like vlock after all, if you really want be secure while running X and leaving your session running.
Back to top
View user's profile Send private message
Odin
Tux's lil' helper
Tux's lil' helper


Joined: 04 Mar 2003
Posts: 92

PostPosted: Thu May 15, 2003 3:31 am    Post subject: Reply with quote

All you gotta do is prevent ctrl-alt-backspace and ctrl-alt-Fn ;)

Maybe a little extreme, but its doable...

Code:

Section "ServerFlags"
    Option    "DontVTSwitch"
    Option    "DontZap"
EndSection


Note- I haven't actually played around with it yet, but it does seem to be a viable option... If you don't mind losing virtual console functionality and being able to kill X. Personally I wouldn't mind, as I have several comps and all the linux boxes are running sshd... So I can ssh in and kill X if I need to.

Vlock is probably a better option.. but then you can't have a pretty screensaver! (at least, I don't think you can.. it doesn't seem to be able to lock from a graphical VC.)
Back to top
View user's profile Send private message
mvr_rennes
Apprentice
Apprentice


Joined: 23 Oct 2002
Posts: 155

PostPosted: Sat May 31, 2003 7:50 am    Post subject: Reply with quote

zephyr1256 wrote:
One thing I just noticed, by default using xscreensaver isn't a very secure way to keep people out of your account if you don't logout. I just did a test and after the screensaver came up and the lockout activated, all I had to do was press cntrl-alt-backspace to kill the X server, and I'm at the command line logged in. I would imagine that there is a way to alias the command that kills the X server so that it also logs you out, something like:

Code:

cntrl-alt-backspace-command = cntrl-alt-backspace-command && logout


For whatever command cntrl-alt-backspace invokes. Either that or you could change what command or command sequence that key combination invokes.


If that bothers you, turn on the "NoZap" switch in your X config...
cheers!
M
Back to top
View user's profile Send private message
jekyl
n00b
n00b


Joined: 02 Aug 2003
Posts: 24
Location: Norway

PostPosted: Tue Jan 13, 2004 12:23 am    Post subject: Reply with quote

Or u guys can use kdm or gdm to login with :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum