Linux SoftwareSystemSystem AdministrationSystem Upgrade Manager 0.4.1

System Upgrade Manager 0.4.1


System Upgrade Manager is a PHP application that will allow sysadmins to monitor and upgrade multiple remote Unix/Linux machines.
Developer:   Dave Seff
      more software by author →
Price:  0.00
License:   GPL (GNU General Public License)
File size:   148K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


System Upgrade Manager is a PHP application that will allow sysadmins to monitor and upgrade multiple remote Unix/Linux machines.

A while ago I was in the middle of trying to figure out how to keep track of package updates on all of my servers. I have around 300 servers of various platforms (Debian, Redhat, Solaris) and periodically I'd have to shell around and figure out which machines needed updates and which didn't.

I then decided that a neat thing to have was a way to do this from one central location. So with my limited html/php skills, I have whipped up a web-based System Package Manager, "sysmgr", where I can see all of my servers and an indication as to which ones need updates.

Here are some key features of "System Upgrade Manager":
  • Ability to check RHES 3 servers

    TODO/Wishlist:

  • Create an authentication/login page
  • A PHP installer method.
  • Sun Solaris upgrade support
  • cron-based update
  • support for apt-get based distros

    Installation instructions:

    Setting up communication between apache and the remote servers:

    Configuring the Directories

    First, we are going to setup some directories. Let's assume that your super private admin-only password protected, Apache DENY protected website resides at: /var/www (referred to as DOCUMENT ROOT throughout this tutorial) where nobody can access it except you on your internal network's IP address and you have to use a 24 character length password to get into.

    NOTE: This directory does not have to be in the DOCUMENT ROOT but is does need to be somewhere that the apache user can get to it. My system is not on an internet-facing system. Not that that was an excuse, but I felt it was adequite for what I needed to do.

    First, we need to create a "working directory". This is where Apache will create its virtual environment for SSH. Essentially, this is going to be the same as the user directory of a standard system user, however we are not going to create a user for this. Go ahead and make a directory under your DOCUMENT ROOT named ssh
    mkdir /var/www/ssh

    Remember this directory because later on, you will be using it to to define some values in the live_update.php file

    Now that we have our working directory setup, you need to generate a private and public key pair for SSH.

    Creating the Private / Public SSH Key Pair

    The key pair is basically a method of authenticating with a remote server using a key exchange. In other words, you do not have to type a password on the remote machine to login via SSH.

    First, we need to generate the keys. So, login to your system as the user that the web server runs as, which is typically "apache", you only need to run this command:
    ssh-keygen -t dsa -f ~/.ssh/id_dsa

    WHEN PROMPTED FOR A PASSWORD, HIT ENTER TWICE. DO NOT ENTER A PASSWORD!

    Now, let's assumed your username was 'apache' when you ran that command. In your HOME Directory, under a special directory named '.ssh', you will see two newly created files:

    /var/www/.ssh/id_dsa
    This is your identity file, or your private key.

    /var/www/.ssh/id_dsa.pub

    This is your public key file that you will install into the remote user's profile to authenticate against your local private key.

    Now that you have those two files generated, you are ready to install the public key.

    Installing the Pubilc Key on the Remote System
    The next step is to install the public key into a profile of the user that resides on the remote system. You do this by running this command:
    cat ~USER/.ssh/id_dsa.pub | ssh REMOTE_USER@REMOTE_HOST 'sh -c "cat - >>~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"'
    In the previous command USER is the local username such as 'apache' and the REMOTE_USER is the username on the remote machine and the REMOTE_HOST is the host name or the IP address of the remote machine.

    For example, if I wanted to install this on machine "jupiter" under a user named 'foo', I would run:

    cat ~sysmgr/.ssh/id_dsa.pub | ssh root@jupiter 'sh -c "cat - >>~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"'

    When you run this command for the first time, you will need to enter the remote root password because you have no keys installed yet, so there's nothing to authenticate against. I have chosen root because I am going to want the ability to actually perform the upgrades from the browser, which was the whole point of this application anyways.

    After your key is installed, PLEASE test it out! You want to make sure this works as advertised before you start pulling your hair out in PHP wondering why it does not work!. All you have to do is try to SSH into the remote box with the user.

    ssh root@jupiter

    If you are logged in without a password, then your key pair works and you're ready to start trying to SSH with PHP.

    If the Key Pair Does Not Work

    If it does not work, there are a few reasons why. The most common problem is that the remote user has never tried to SSH out of the box before. Therefore, there is no '.ssh' profile for that user. Simply login on that box as that user and try to SSH to another system. After that, repeat the key installation again and try to see if that works.

    The other possiblity is that the SSH daemon configuration file is not properly configured for key authentication and you'll need to enable that!

    What's New in This Release:
  • This release fixes a stupid bug that prevented adding new systems.
  • There are other bugfixes.
    tags the remote  key pair  public key  that the  you have  var www  does not  authorized keys  ssh authorized  you will  the user  this command  not work  

    Download System Upgrade Manager 0.4.1


     http://www.solar1.net/index.php?ind=downloads&op=download_file&ide=82&file=sysmgr-0.4.1.tar.gz


    Authors software

    System Upgrade Manager 0.4.1 (by Dave Seff)
    System Upgrade Manager is a PHP application that will allow sysadmins to monitor and upgrade multiple remote Unix/Linux machines.


    Similar software

    System Upgrade Manager 0.4.1 (by Dave Seff)
    System Upgrade Manager is a PHP application that will allow sysadmins to monitor and upgrade multiple remote Unix/Linux machines.

    pam_imap 0.3.7 (by Cal Heldenbrand)
    pam_imap is a PAM module that authenticates against a remote IMAP or IMAPS server.

    pam_imap program supports multiple servers, SSL

    Hydra Backup System 0.3.1 (by Hydra Team)
    Hydra Backup System is a full backup system for UNIX-like systems.


    Here are some key features of "Hydra Backup System":
    Archi

    mod_auth_user_dir 1.0 (by Genos)
    mod_auth_user_dir is a module for Apache 2, you can create private user folders using WebDAV protocol

    SSH Filesystem 1.7 (by Miklos Szeredi)
    SSH Filesystem is a filesystem client based on the SSH File Transfer Protocol

    Template::Tutorial 2.15 (by Andy Wardley)
    Template::Tutorial are template toolkit tutorials.

    This section includes tutorials on using the Template Toolkit

    pam_usb 0.3.3 (by Andrea Luzzardi)
    pam_usb is a PAM modules that enables either two-factor or password-less authentication using an USB storage device (such as an USB F

    Passwordless remote logins 1.02 (by SOHO IT Solutions llc.)
    Passwordless remote logins script can be used to:

    1: Create 1024 bit passwordless dsa keys.
    2: Send key to remote server via scp.

    XULTech Firelinks Remote Server File Manager 1.0 (by XulTech)
    XULTech Firelinks Remote Server File Manager is a remote file manager/control panel that lets you manage your web server using an eas

    Agatha 0.7.2 (by JimmyDigital)
    Agatha is a Web-based MP3 playing system that allows the home user or office group to stream music, create, manage, and share play li


    Other software in this category

    Linuxconf 1.35r1 (by Solucorp)
    Linuxconf project is a sophisticated administration system for the Linux operating system

    Webmin 1.310 (by Jamie Cameron)

    ChangePassword 0.9 (by Vinicius M. Souza)
    ChangePassword modifies the passwords of passwd, Samba, and Squid through the Web

    AlternC Hosting Software 0.9.5 (by Sonntag Benjamin)
    AlternC is a set of user-friendly hosting software

    eL DAPo 1.18 (by keysd)
    eL DAPo is a PHP-based application for managing and querying LDAP servers

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags