LAUS 0.21

LAUS is a Linux automated update service software.

  Add it to your Download Basket!

 Add it to your Watch List!


Rate it!
send us
an update
GPL (GNU General Public License) 
3.3/5 15
August Hörandl
ROOT \ System \ System Administration
LAUS is a Linux automated update service software. LAUS helps to admin a lot of workstations by automating updates. LAUS consists of:

· a script which runs during startup and does the hard work
· compiler to ease the definition of tasks


server name of server
laus username on server


laus.skel script for init runlevel
to be called with "start" command do get & execute commands from server command compiler
used to create laus-actions

*sample example input for

laus-actions script copied from server and executed by the client


1) create user laus on server
home is /var/laus or something else but then you have to adjust all scripts
only laus (and root) should be able to access this directory
laus doesn't need to login
create a directory data (~laus/data)
this is the place to put all files to be transfered
adjust servername (LAUSHOST) in & copy to a bin directory
create an empty ~laus/data/laus-actions file
create directory ~laus/.ssh to hold ssh keys (see below)

mkdir $DIR
useradd -c "LAUS admin user" -d $DIR -p "*" -s /bin/false laus
chmod 770 $DIR
chown laus.root $DIR
mkdir $DIR/data
mkdir $DIR/.ssh

cp /usr/bin
echo "echo LAUS" > ~laus/data/laus-actions

2) create files on client
decide where to but the work files - /var/laus is a good place
only root should be able to access this directory
create directory log to hold log file and state to hold flags
copy to /usr/sbin and add the file laus.skel to be called
adjust servername (LAUSHOST) in
during startup (with network already running): laus.skel start


mkdir $DIR
chmod 700 $DIR
mkdir $DIR/log
mkdir $DIR/state

cp /usr/sbin

cd /etc/rc.d
cp ~/laus/laus.skel laus
(cd rc2.d; ln -s ../laus S90laus)
(cd rc3.d; ln -s ../laus S90laus)
(cd rc5.d; ln -s ../laus S90laus)

3) setup ssh

on the client
if you haven't done this by now: create a ssh key and copy it to
user laus on the server
don't use a passphrase (just return)
"ssh laus@server" should work without passwd

[ -e $HOME/.ssh/ ] || ssh-keygen
scp $HOME/.ssh/
# the next command should work without errors
scp laus@server:data/laus-actions .

use rsa/dsa keys for ssh2:
add options to ssh-keygen
-t rsa or
-t dsa
use .ssh/ or .ssh/ instead of

4) check setup

create laus-actions on server
Call on the client. This should copy the laus-actions file
from the server and execute it

on server:
echo "do echo LAUS - nothing to do" | > ~laus/data/laus-actions

on client:


Put everything into the script laus-actions on the server this will be copied and executed by the clients helps to create good scripts.

COMPILER converts simple commands to shells scripts:

all files are copied from ~/laus/data on server using ssh/scp includes logging to log/laus.log


1) < actions.laus > /var/laus/data/laus-actions

2) you can also translate "on the fly" by calling in
laus-actions: use

Last updated on November 21st, 2007

#update service #automatic update #cron job #automatic #update #service #cron

Add your review!