LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2002, 03:47 AM   #1
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Rep: Reputation: 30
Automatically run screensaver - auto locking screen?


Hi,

In windows i can schedule a screensaver to activate if the system has been idled for a set time. In linux how do i do that? And can i set a time limit, and when the system has been idled for that time limit, a locking program will lock up the screen so no body can open it excpet when i come back the the computer? It doesn't matter if the screensaver solution can also solve the locking issue.

thnx
 
Old 02-26-2002, 05:46 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you're asking a fair few very basic questions, the answers to which you can easily find out yourself. i really don't want to sound rude and i'm very sorry if i appear so. i'd recommend buying a linux book to help you get a decent grip on the many little things the linux does. alternatively, there's a number of entire linux books on teh link in my sig. have a flick through the redhat unleashed on for a start.

either way, xscreensaver should load automatically as a "daemon" when you load xwindows, assuming you're using kde or gnome. if not, just add a line such as

xscreensaver &

to end start of your .xinitrc of .Xclients file. There's probably a way to do that with a gui config thing in kde or gnome, but i don't use them, so i couldn't say!
 
Old 02-26-2002, 07:11 AM   #3
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
Can you or anyone explain more thoroughly? I'm new, i'm sorry. But how do u edit the fileS? Any easier way?

thnx
 
Old 02-26-2002, 07:33 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's precisely WHY i said you shuold get a book...

just open a console and use an editor such as

gedit
kedit
pico
jove
vi
emacs

or a million others to edit the file i mentioned. try running the program directly first tho. just type "xscreensaver &" into a console prompt.
 
Old 02-27-2002, 12:57 AM   #5
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
What do i edit? How to set time limit?

I wanna learn off the net, but couldn't find any info on this subject.
 
Old 02-27-2002, 02:28 AM   #6
Syncrm
Member
 
Registered: Aug 2001
Location: Lansing, Michigan
Distribution: slackware8+
Posts: 472

Rep: Reputation: 30
not to sound condencending, but...... *sigh*

emacs ~/.xscreensaver

edit the times you see in that file. will be in this format: hh:mm:ss.

emacs ~/.xinitrc

add "xscreensaver &" right before the line that initiates your WM. i'm running windowmaker, so my two lines look like this:

xscreensaver &
exec /usr/sbin/wmaker

Last edited by Syncrm; 02-27-2002 at 02:30 AM.
 
Old 02-27-2002, 03:13 AM   #7
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
Thnx thnx

just one more question. What's the use of the ampersand (&) ?
I see them used in some commands but had no idea what they do.

thnx
 
Old 02-27-2002, 04:00 AM   #8
marlaina1
Member
 
Registered: Jun 2001
Location: Houston
Distribution: CentOS 5.3
Posts: 139

Rep: Reputation: 15
& makes it run in the background so your terminal is not tied up with it and you can get a new prompt at the same terminal. If you have gnome all the options you are looking for are in the control center. xscreensaver manual at http://www.jwz.org/xscreensaver/man1.html
 
Old 02-27-2002, 04:08 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
CLICK THE LINK ON MY SIGNATURE. READ SOMETHING THERE.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to stop screensaver automatically when play videos? wuqso Linux - Software 1 10-31-2005 09:07 PM
Making screensaver run when screen is locked akurtis Fedora 2 06-04-2005 09:15 PM
Screen automatically locking gurfrip Linux - Newbie 1 05-31-2005 03:46 AM
Locking the screen? fackamato Linux - Software 1 03-08-2004 03:54 AM
Auto Logon and Auto Run OKCHelpDesk Linux - General 0 05-03-2002 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration