LAUS

LAUS is a Linux automated update service software.
Download

LAUS Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • August Hrandl
  • Publisher web site:
  • http://elina.htlw16.ac.at/~hoerandl/laus.html

LAUS Tags


LAUS Description

LAUS is a Linux automated update service software. 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 tasksDEFINITIONS server name of server laus username on serverFiles: laus.skel script for init runlevel to be called with "start" laus.sh command do get & execute commands from server laus.pl command compiler used to create laus-actions *sample example input for laus.pl laus-actions script copied from server and executed by the clientINSTALLATION: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 laus.pl & copy to a bin directory create an empty ~laus/data/laus-actions file create directory ~laus/.ssh to hold ssh keys (see below) example: DIR=/var/laus 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 EDIT laus.pl cp laus.pl /usr/bin echo "echo LAUS" > ~laus/data/laus-actions2) 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 laus.sh to /usr/sbin and add the file laus.skel to be called adjust servername (LAUSHOST) in laus.sh during startup (with network already running): laus.skel startExample: DIR=/var/laus mkdir $DIR chmod 700 $DIR mkdir $DIR/log mkdir $DIR/state EDIT laus.sh cp laus.sh /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 || ssh-keygen scp $HOME/.ssh/identity.pub root@server:/var/laus/.ssh/authorized_keys # 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/id_dsa.pub or .ssh/id_dsa.pub instead of identity.pub4) check setup create laus-actions on server Call laus.sh 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.pl > ~laus/data/laus-actions on client: laus.shUSAGE:Put everything into the script laus-actions on the server this will be copied and executed by the clients laus.pl helps to create good scripts.COMPILERlaus.pl converts simple commands to shells scripts:all files are copied from ~/laus/data on server using ssh/scp includes logging to log/laus.logUsage:1) laus.pl < actions.laus > /var/laus/data/laus-actions2) you can also translate "on the fly" by calling laus.pl inlaus-actions: use


LAUS Related Software