How to set the screensaver timeout on Red Hat?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to set the screensaver timeout on Red Hat?
# 1  
Old 06-18-2015
How to set the screensaver timeout on Red Hat?

How is it possible to set the screensaver timeout on red hat.

For solaris I understand it is :

Code:
for file in /usr/dt/config/*/sys.resources; do
dir=`dirname $file | sed s/usr/etc/`
mkdir -p $dir
echo 'dtsession*saverTimeout: 10' >>$dir/sys.resources
echo 'dtsession*lockTimeout: 10' >>$dir/sys.resources
chown root:sys $dir/sys.resources
chmod 444 $dir/sys.resources
done

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ?

how to know if i use "Red Hat Enterprise Linux" or "Red Hat Desktop" ? (2 Replies)
Discussion started by: ahmedamer12
2 Replies

2. Shell Programming and Scripting

set Net:SSH:Expect timeout and set it again.

SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies

3. UNIX for Dummies Questions & Answers

Is it possible to set a timeout for rpcinfo?

I've created a script that checks the health of a piece of equipment out in the field by first establishing that it is pingable, and then parsing log files to gather information. Today I realized that there are times where the equipment may be pingable, and will not show any immediate issues in... (1 Reply)
Discussion started by: DeCoTwc
1 Replies

4. Shell Programming and Scripting

how to set timeout?

When I run a script where the 1st parameter is ip address ftp -n -i -v $1 I hang here if the ip is wrong how to set a timeout something like if (20s not complete "ftp -n -i -v $1") then echo "error" fi Thanks a lot. (14 Replies)
Discussion started by: uativan
14 Replies

5. Shell Programming and Scripting

set timeout for ssh prompt

Hi all, I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell. How can this be achieved ?? I am using Linux RHEL 5 and Solaris 10. Pls help. Thanks in adv. VIKAS (3 Replies)
Discussion started by: vikas027
3 Replies

6. Programming

How to set the timeout for the client

The scenerio is: 1. A server listens on a port number 2. If the server is down and the Client tries to connect 3. How to set the timeout for the client Detailed explaination: In a client server architecture over a TCP/IP, normally the server is started first which waits and listens for the... (1 Reply)
Discussion started by: shilpi_gup
1 Replies

7. UNIX for Dummies Questions & Answers

Red Hat 9 help

please help me how to install softwares in linux.i have a ethernet internet connection.i try to open the site on LAN to download internet client.but i cannot as our lan supports only internet explorer....i downloaded the linux client by booting thru XP......but i cannot c my NTFS partition thru... (0 Replies)
Discussion started by: shobhit143
0 Replies

8. Linux

Red Hat?

I have a Red Hat upgrade disk. I installed it and it corrupted my entire hard drive! I had gotten the disks out of a Dummy's book at my local library. Trying to install 'Red Hat', has cost me $100.00 in damages. (The cool part is my friend gave me that $100.00 part) Ah...A 120gig Hard Drive. Just... (3 Replies)
Discussion started by: hdk_mkr
3 Replies

9. UNIX for Dummies Questions & Answers

how to set timeout for aix?

if a user login and never shutdown or exit...how do you set an automatic shutdown or timeout if the user leave the session on for 20 minutes? thanks (3 Replies)
Discussion started by: ichiro
3 Replies
Login or Register to Ask a Question
gnome-screensaver-command(1)				      General Commands Manual				      gnome-screensaver-command(1)

NAME
gnome-screensaver-command - controls GNOME screensaver SYNOPSIS
gnome-screensaver-command [OPTION...] DESCRIPTION
gnome-screensaver-command is a tool for controlling an already running instance of gnome-screensaver. OPTIONS
--exit Causes the screensaver to exit gracefully -q, --query Query the state of the screensaver -t, --time Query the length of time the screensaver has been active -l, --lock Tells the running screensaver process to lock the screen immediately -c, --cycle If the screensaver is active then switch to another graphics demo -a, --activate Turn the screensaver on (blank the screen) -d, --deactivate If the screensaver is active then deactivate it (un-blank the screen) -p, --poke Poke the running screensaver to simulate user activity -i, --inhibit Inhibit the screensaver from activating. Command blocks while inhibit is active. -n, --application-name The calling application that is inhibiting the screensaver -r, --reason The reason for inhibiting the screensaver -V, --version Version of this application AUTHORS
gnome-screensaver-command is written by William Jon McCann <mccann@jhu.edu>. This manual page was written by Sven Arvidsson <sa@whiz.se>. SEE ALSO
gnome-screensaver(1) GNOME
2007-09-27 gnome-screensaver-command(1)