Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 01 Jun 2016, 01:51
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
auto-locking screensaver
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Author Message
Subito Piano


Joined: 27 May 2007
Posts: 551
Location: UPSTATE New York

PostPosted: Mon 16 Nov 2015, 22:59    Post subject:  auto-locking screensaver
Subject description: how to lock screen after a period of inactivity
 

Puppy packages are tiny and surprisingly well designed. One example of this is Xlock. However, for years I wanted a screensaver to automatically lock the screen after a few minutes of inactivity. I tried xscreensaver (won't work as root user) and slock (too erratic), and i didn't want all the bloat of Gnome or KDE screensavers. This post showed me how to adapt Xlock to do this, with no bloat:
    1. First, run xlock and set your password
    2. Download xautolock from Puppy Package Manager (61KB!)
    3. Create a script as follows (i.e., copy and paste the following into a text editor):
    Code:
    #!/bin/bash
    xautolock -locker xlock -time 5

    (5 = 5 minutes inactivity before xlock starts and locks the screen; use whatever number you please)
    4 Save your new script as "autolock" or whatever, and place it in an appropriate directory such as /usr/bin or /usr/local/bin
    5. Make it executable
    6. Symlink your new "autolock" script to ~/Startup
    7. That's it! It will start working after restarting X.
Similarly, while you can't require a login password in Puppy, you can achieve the same result by symlinking xlock to your startup folder. As soon as X starts, the xlock screensaver kicks in, requiring you to enter the password to unlock the screen.

Comments/critiques welcome. Hope this helps someone!
Back to top
View user's profile Send private message Visit poster's website 
slavvo67

Joined: 12 Oct 2012
Posts: 1041
Location: The other Mr. 305

PostPosted: Tue 17 Nov 2015, 20:21    Post subject:  

Thank you, Subito Piano. I've wanted to do something like this for a while. I suppose one can still get in my alt-control-backspace and play in terminal.
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 551
Location: UPSTATE New York

PostPosted: Tue 17 Nov 2015, 21:18    Post subject:  

I tried it out...you are right! BUT if you symlink xlock to your startup folder, the problem is solved. Anyone smart enough to use ctrl+alt+backspace to get to the commandline and type "xwin" at the prompt simply restarts the x server....and xlock kicks right back in, locking the would-be hacker into an endless loop.

Of course, for total security, one must also encrypt his/her pupsave file.
Back to top
View user's profile Send private message Visit poster's website 
slavvo67

Joined: 12 Oct 2012
Posts: 1041
Location: The other Mr. 305

PostPosted: Tue 17 Nov 2015, 22:29    Post subject:  

Actually, the alt control backspace froze my Quirky April so it looks like a pretty safe screen lock.

Confirmed your instructions work in Quirky April. - Thanks

Slavvo67
Back to top
View user's profile Send private message 
Subito Piano


Joined: 27 May 2007
Posts: 551
Location: UPSTATE New York

PostPosted: Wed 18 Nov 2015, 22:57    Post subject:  

Ahh, yes....i meant to mention i'm using TahrPup 6. Glad it works for you. Smile
Back to top
View user's profile Send private message Visit poster's website 
PetRose

Joined: 19 Jan 2016
Posts: 4

PostPosted: Sat 19 Mar 2016, 11:03    Post subject: Hi, as newbie on Puppy (Slacko)
Subject description: I can't really get this fine tip working for me
 

I made a Symlink to Xlock, in Startup folder, did not work.
Tried a ROX file to symlink copy, by dragging, did not work

Neither way (they were noted as executables), nothing happened after Restart (tried X restart, and also full Puppy restart)

I did not find the Puppy Package xautolock, so I tried the tip using the Xlock app alone.

Cheers
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 7620
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 14:24    Post subject:  

Hello subito_piano.

About your title : "auto-locking screensaver".

Yeah, that is e-x-a-c-t-l-y what screen savers are supposed to do :
lock your screen automatically after x minutes of inactivity.

You got a problem with that? Twisted Evil

Why you would need an extra script to do that, I do not understand.
Puppies already have one.

BFN.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
Subito Piano


Joined: 27 May 2007
Posts: 551
Location: UPSTATE New York

PostPosted: Sat 19 Mar 2016, 17:17    Post subject:  

PetRose: Not sure which Puppy you are using -- slackware-based or ubuntu-based? I've got ubuntu-based Tahr-Pup. That might make a difference. Anyway, i found xautolock just by using the Puppy Package Manager and choosing to search all repositories. You might have to update the database, though. Lemmeknow if you can't find it, i can upload it and post the link.

As far as symlinking Xlock, i first set up xlock by clicking on it and setting a password, then i symlinked it. I'd try clicking on it now to set a password, then restarting X to see if it kicks in when X starts. Again, post your results...

musher0 - Xlock is a manual screenlocking device -- it doesn't run automatically after a delay. The screensaver in Puppy kicks in automatically but it's not a screenlocking device.
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 7620
Location: Gatineau (Qc), Canada

PostPosted: Sat 19 Mar 2016, 21:40    Post subject:  

Yes it is. You need a proper password, that's all.
_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
Subito Piano


Joined: 27 May 2007
Posts: 551
Location: UPSTATE New York

PostPosted: Sat 19 Mar 2016, 22:39    Post subject:  

interesting -- it's never worked for me, but i checked just before replying...hit xlock, set up a password, entered the password a second time, set time to 60 seconds, the screen went blank, i moved the mouse...and i was back in X-land, no password required.

I'd be interested to find out if i've been needlessly frustrated all these years. Very Happy
Back to top
View user's profile Send private message Visit poster's website 
ebisu

Joined: 25 Sep 2013
Posts: 160

PostPosted: Sat 19 Mar 2016, 23:49    Post subject:  

I am confused now.
musher0 wrote:
Yes it is. You need a proper password, that's all.
What is "it"? The screensaver included in Puppy does not accept a password. This would solve the problem. Are you using a different screensaver?

Subito Piano wrote:
hit xlock, set up a password, entered the password a second time, set time to 60 seconds, the screen went blank, i moved the mouse...and i was back in X-land, no password required
No password required? But you set up a password. A bug? And how did you set time? xlock has different parameters to set different kinds of timeouts. What exactly did you use? There is also a possibility to delay the start of xlock, but this is a fixed time and does not depend on mouse/keyboard inactivity.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 7620
Location: Gatineau (Qc), Canada

PostPosted: Sun 20 Mar 2016, 00:17    Post subject:  

Hi.

I use the run-of-the-mill XLock at /usr/local/apps/Xlock, and it does indeed accept
and implement a password. It will most certainly shut you out of your own computer
if you forget your d... password! Wink

BFN.
Xlock_config_2016-03-20.jpg
 Description   To see and use this config menu, right-click on the padlock icon on your desktop.
Items #2 and #3 in this menu are the ones to use to configure XLock.
(Sorry for the French, but I'm sure you get the idea.)
 Filesize   42.1 KB
 Viewed   105 Time(s)

Xlock_config_2016-03-20.jpg


_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
ebisu

Joined: 25 Sep 2013
Posts: 160

PostPosted: Sun 20 Mar 2016, 00:38    Post subject:  

This proves that Subito Pianos remark was right ("Xlock is a manual screenlocking device -- it doesn't run automatically after a delay. The screensaver in Puppy kicks in automatically but it's not a screenlocking device.")

Your screenshot shows the screenlocker xlock. Look at the dialog text: "Xlock is a privacy system that you can invoke manually". It surely looks like a screensaver, but this is no the main purpose. And it is manual. A real screensaver would run after a period of mouse/keyboard inactivity. Xlock can not do this.

The screensaver in Puppy is ScreenSaver Control, which lacks a password function.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 7620
Location: Gatineau (Qc), Canada

PostPosted: Sun 20 Mar 2016, 01:35    Post subject:  

You're right, ebizu. My apologies.

Where is that xautolock, exactly? Would you or SubitoPiano have an URL for it?
It doesn't show in the PPM for the WheezyPup I'm on. Thanks in advance.

_________________
musher0
~~~~~~~~~~
"The greatest of minds are the ones that never close." | "Les plus grands esprits sont ceux qui ne se ferment jamais."
(starhawk, Resident Philosopher | philosophe en résidence) Wink
Back to top
View user's profile Send private message Visit poster's website 
ebisu

Joined: 25 Sep 2013
Posts: 160

PostPosted: Sun 20 Mar 2016, 02:28    Post subject:  

musher0 wrote:
Where is that xautolock, exactly? Would you or SubitoPiano have an URL for it?
See the link in Subito Pianos initial post and find the pet made by goingnuts..
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [16 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0710s ][ Queries: 12 (0.0051s) ][ GZIP on ]