Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > System > System Administration

    LAUS 0.21

    Download button

    No screenshots available
    Downloads: 652  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.2/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    August Hörandl | More programs
    GPL / FREE
    November 21st, 2007, 17:37 GMT
    ROOT / System / System Administration

     Read user reviews (0)  Refer to a friend  Subscribe

    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 tasks

    DEFINITIONS

    server name of server
    laus username on server

    Files:

    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 client

    INSTALLATION:

    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-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 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 start

    Example:

    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

    [ -e $HOME/.ssh/identity.pub ] || 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.pub

    4) 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.sh

    USAGE:

    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.

    COMPILER

    laus.pl converts simple commands to shells scripts:

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

    Usage:

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

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

    Product's homepage

      


    TAGS:

    update service | automatic update | cron job | automatic | update | service

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM