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 Fri 05 Feb 2016, 23:20
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 1 [6 Posts]  
Author Message
Subito Piano


Joined: 27 May 2007
Posts: 519
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: 917
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: 519
Location: UPSTATE New York

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

(see below)
Last edited by Subito Piano on Tue 17 Nov 2015, 21:36; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Subito Piano


Joined: 27 May 2007
Posts: 519
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: 917
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: 519
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 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
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.0291s ][ Queries: 11 (0.0030s) ][ GZIP on ]