Disabling the lock screen in DT Author: John Harris #!/bin/sh # This script disables the screen lock in CDE. It also # disables the system suspend. # # J.K. Harris 18 May 2001 #set -x # Warning: there are TAB characters before all of the ex editor commands. # These tabs may get mangled into spaces in transmission. # Put the locales that are installed on your machine here. Note that # you *will* have the C locale at least. There seems to be some problem # with picking a language from the DTE login screen. locales='C en_US.UTF-8' do_one_locale () { echo $1 mkdir -p /etc/dt/config/$1 if [ ! -f /etc/dt/config/$1/sys.resources ] ; then cp /usr/dt/config/$1/sys.resources /etc/dt/config/$1 fi ex /etc/dt/config/$1/sys.resources <<-'E-O-T' /dtsession\*lockTimeout:/ s/^/#-no screen lock- / a dtsession*lockTimeout: 0 . w! q E-O-T if [ ! -f /etc/dt/config/$1/sys.dtwmrc ] ; then cp /usr/dt/config/$1/sys.dtwmrc /etc/dt/config/$1 fi ex /etc/dt/config/$1/sys.dtwmrc <<-'E-O-T' /LockDisplay/ s/^/#-no screen lock- / /SDTsuspend/ s/^/#-no suspend system- / w! q E-O-T mkdir -p /etc/dt/appconfig/types/$1 if [ ! -f /etc/dt/appconfig/types/$1/dt.dt ] ; then cp /usr/dt/appconfig/types/$1/dt.dt /etc/dt/appconfig/types/$1 fi ex /etc/dt/appconfig/types/$1/dt.dt <<-'E-O-T' /ACTION LockDisplay/ ka /}/ kb 'a,'b s/^/#-no screen lock- / w! q E-O-T if [ ! -f /etc/dt/appconfig/types/$1/dtwm.fp ] ; then cp /usr/dt/appconfig/types/$1/dtwm.fp /etc/dt/appconfig/types/$1 fi ex /etc/dt/appconfig/types/$1/dtwm.fp <<-'E-O-T' /LockDisplay/ /}/ - a DELETE True . w! q E-O-T } for i in ${locales} ; do do_one_locale $i done ex /etc/default/sys-suspend <<-'E-O-T' /PERMS=/ c PERMS=- . w! q E-O-T