Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Locking the Screen in XFCE (help)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Fejimush
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 101

PostPosted: Thu Feb 09, 2006 6:29 pm    Post subject: Locking the Screen in XFCE (help) Reply with quote

I am trying to get the "Lock Screen" function to work in xfce4. Initially, I noticed that I needed to emerge xscreensaver. Which I did and it is in my path.

Although, it still isn't working. Do I need to specify a screensaver to run or something?

I found the xflock4 script and it is trying to run xscreensaver-command.

Any help would be appreciated. I have a feeling this is something really simple that I am overlooking.

Oh, I did look at this as well... http://gentoo-wiki.com/HOWTO_xfce4

I can bring up the xscreensaver-demo to configure it but when I try to use the lock button it says:
"xscreensaver-command: locking not enabled"

Thanks,

Fej
Back to top
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Thu Feb 09, 2006 7:03 pm    Post subject: Reply with quote

If you currently run xfce4, check if you run the xscreensaver daemon in your terminal, e.g.
Code:
ps aux  <pipe I just can't type it, with this *#@ keyboard> grep xscreensaver
.
If not, then start it via Alt+F2 (which is xfrun).
Then try Ctrl+Alt+Del -> normally in xfce4 it just locks the screen. Or you can add the logout/lock applet to your panel, and try the lock button.
If you're usin' xfce4 with sessions enabled, next time it should start up automatically.
BTW, here is the great doc:
http://www.jwz.org/xscreensaver/man1.html
HTH
_________________
Do not believe that Guru thing under my nickname.
Back to top
View user's profile Send private message
Fejimush
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 101

PostPosted: Fri Feb 10, 2006 2:13 am    Post subject: Reply with quote

Thanks zsoltika...

What xfce4 applet contains the logout/lock feature? That's pretty much what I am looking for.

I did a few emerge searches and didn't come up with anything and I also looked here:
http://developer.berlios.de/project/showfiles.php?group_id=910

Fej
Back to top
View user's profile Send private message
zsoltika
l33t
l33t


Joined: 13 Nov 2003
Posts: 634
Location: Budapest, Hungary

PostPosted: Fri Feb 10, 2006 7:40 am    Post subject: Reply with quote

Check if you can add "System buttons" to your panel. Probably it's a fefault applet.
_________________
Do not believe that Guru thing under my nickname.
Back to top
View user's profile Send private message
eminenz
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2006
Posts: 95

PostPosted: Fri Feb 12, 2010 7:57 pm    Post subject: Reply with quote

hi!

You may be lucky, i guess.
I currently play(ed) around with xscreensaver permissions a.s.o. because i had some rendering problems (and sonar screensaver did(does) not work).

The point is, i had xscreensaver running under xfce4 and it just worked (with locking) until recent changes.

Besides some other effects my recent problem returns the message
Code:
eminenz@exitus ~/Documents/Fotos/Kunst $ xflock4
xscreensaver-command: locking not enabled.

and in the xscreensaver-debug-log:
Code:
xscreensaver: 19:01:15: locking is disabled (error getting password).
xscreensaver: 19:01:15: does xscreensaver need to be setuid?  consult the manual.


et voila
Code:
# chmod a+s /usr/bin/xscreensaver
# exit
eminenz@exitus ~/Documents xflock4
xscreensaver-command: activating and locking.


the point is
openGL-Rendering works only if /usr/bin/xscreensaver does NOT have the setuid bit set
Locking works only if /usr/bin/xscreensaver HAS the setuid bit set.


i played around with the suid use flag of the xscreensaver ebuild, but it did not have any effect on my installation. the setuid bit of the daemon, does though.
If you do test, please do not forget to restart the xscreensaver daemon after each change!
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Fri Feb 12, 2010 8:09 pm    Post subject: Reply with quote

USE="suid" is for screensavers that need setuid bit, not the daemon itself. Because it's controlled by USE="pam", if that's enabled, it doesn't need setuid...
Back to top
View user's profile Send private message
eminenz
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2006
Posts: 95

PostPosted: Fri Feb 12, 2010 9:33 pm    Post subject: Reply with quote

Ah, that makes sense. I think i once set the setuid bit on the screensaver that needed it myself when it was needed. I didn't realize that this was a consequence of playing with the use flags, especially suid :D

@ssuominen:
as you seem to have thorough knowledge of the xscreensaver rights structure, would you mind having a look over the problem i posted in https://forums.gentoo.org/viewtopic-p-6170203.html#6170203
I don't have a clue where to continue looking
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Feb 13, 2010 1:41 pm    Post subject: Reply with quote

Did it fix your problem? (I'm can't really conclude that from your last post). If not, could you please post the output of:

emerge -pv xfce-base/xfce-utils
Back to top
View user's profile Send private message
eminenz
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2006
Posts: 95

PostPosted: Sat Feb 13, 2010 3:22 pm    Post subject: Reply with quote

well, as I said:
i can switch between having GL-screensavers (/usr/bin/xscreensaver setuid bit off) or having a lockable screen. (setuid bit on)

here's the output you requested (yes, i enabled locking support :) )
Code:
eminenz@exitus ~ $ emerge -pv xfce-base/xfce-utils
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild   R   ] xfce-base/xfce-utils-4.6.1  USE="dbus lock -debug" 600 kB
Total: 1 package (1 reinstall), Size of downloads: 600 kB
eminenz@exitus ~ $
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sat Feb 13, 2010 4:02 pm    Post subject: Reply with quote

I don't know if you *like* this answer, *but* I use the gnome screensaver (gnome-screensaver) package which works without a problem.
It's just that, if you have a as much as gnome free setup then this little bugger will probably pull in like 30+ packages...
Back to top
View user's profile Send private message
eminenz
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2006
Posts: 95

PostPosted: Sun Feb 14, 2010 6:38 pm    Post subject: Reply with quote

gnome-free setup :)
plus, xscreensaver has some security advantages, at least its author claims that.
Back to top
View user's profile Send private message
Rexilion
Veteran
Veteran


Joined: 17 Mar 2009
Posts: 1044

PostPosted: Sun Feb 14, 2010 7:44 pm    Post subject: Reply with quote

Logout and back in, try to activate the screensaver as it should (CTRL+ALT+DELETE) and check the contents of ~/.xsession-errors and post it here.
Back to top
View user's profile Send private message
eminenz
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2006
Posts: 95

PostPosted: Tue Feb 16, 2010 12:42 pm    Post subject: Reply with quote

hi!

ctrl+alt+delete does not work, since it's a shortcut for xflock4, which reports "locking not enabled". an .xsession-error file is not generated.
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