You are not logged in.

#1 2007-07-08 13:36:30

evol
Member
From: Ireland
Registered: 2007-06-27
Posts: 53
Website

xscreensaver / startx / locking screen

quick blurb; i've been using arch for the last month or so now and i really love the distro.

anyway i'm using fluxbox as my wm and xscreensaver to lock the screen. there's just one problem:

xscreensaver of course asks you for your password, but typing "ctrl + alt + f1" throws you right back to your bash where you've already logged in and typed startx... and bam someone has control of your session.

is there anyway of fixing this short of using GDM/KDM?

(i know this isn't an arch specific problem and of course a locked screen wont keep anybody determined out)


-//------------------/------>

Offline

#2 2007-07-08 14:52:05

kel_p
Member
From: De Kwakel
Registered: 2007-05-10
Posts: 65

Re: xscreensaver / startx / locking screen

Offline

#3 2007-07-08 14:54:51

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: xscreensaver / startx / locking screen

In your xorg.conf:

Section ServerFlags
Option "DontVTSwitch" "true" # Does not let you switch to the Virtual Terminal
Option "DontZap" "true" # Does not let you kill the X-Server with C-A-Backspace
EndSection

Since I use slim, I have only DontZap on.


Todays mistakes are tomorrows catastrophes.

Offline

#4 2007-07-08 15:23:10

evol
Member
From: Ireland
Registered: 2007-06-27
Posts: 53
Website

Re: xscreensaver / startx / locking screen

Thanks for both replies, I'll edit xorg.conf now.

mucknert would you recommend slim?


-//------------------/------>

Offline

#5 2007-07-08 15:47:49

mucknert
Member
From: Berlin // Germany
Registered: 2006-06-27
Posts: 510

Re: xscreensaver / startx / locking screen

As a matter of fact I would. It relatively lightweight compared to kdm and gdm and unlike xdm it still looks good. You should give it a spin.


Todays mistakes are tomorrows catastrophes.

Offline

#6 2007-07-09 01:51:11

PenguinFlavored
Member
From: Chicago, IL, USA
Registered: 2006-06-06
Posts: 66
Website

Re: xscreensaver / startx / locking screen

I threw this little piece of code in my .bashrc as well as using DontZap in Xorg.conf, works like a charm. You can subsitute vlock for logout if you like

startx() {
        nohup startx "$@" > /dev/null 2&>1 &
        disown
        vlock
}

Edit: Forgot to mention, it lets you change VT's for other logins, for multiple accounts, or in case something goes wrong, and you can't kill X.

Last edited by PenguinFlavored (2007-07-09 01:52:46)

Offline

#7 2007-07-09 08:08:24

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: xscreensaver / startx / locking screen

What about starting X with telinit?
Something like telinit 5 & exit should not have this kind of problems...

Offline

#8 2007-11-26 18:07:10

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: xscreensaver / startx / locking screen

Just lock your session with vlock -n


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB