Skip to content
This repository has been archived by the owner. It is now read-only.
[ABANDONED PROJECT] Both this script and the bash version once served us very well in my first company
PHP CSS Python JavaScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
screenshots
website
LICENSE
README.md
activity.py
activity.sql
requirements.txt

README.md

activity

Perform bulk server command execution and validations over ssh in an organised and efficient way.

Demo

Watch demo in youtube

Requirements

  • Python 3.6 (with python-devel)
  • virtualenv
  • sshpass
  • phpMyAdmin & Apache server configured for codeigniter installation
  • Password less sudo access to 'apache'/'www-data' user

Install, configure and run on localhost

  • Download and setup main script
mkdir -p /script/virtualenv
cd /script
git clone https://github.com/sayanarijit/activity
cd activity
virtualenv -p $(which python3.6) /script/virtualenv/py3.6
/script/virtualenv/py3.6/bin/pip install -r requirements.txt
cp -var website/* /var/www/html/
mkdir -p /var/www/html/activity/application/logs
vim activity.py
  • Import database
mysql -u root -p < activity.sql
  • Configure website
vim /var/www/html/activity/application/config/database.php
  • Give passwordless sudo access to web user by making the following entry in /etc/sudoers
Defaults:apache !requiretty
apache ALL=(ALL) NOPASSWD:ALL     # For Fedora based system

Defaults:www-data !requiretty
www-data ALL=(ALL) NOPASSWD:ALL   # For Debian based system
  • Run script
sudo ./activity.py

Screenshots

  • Interactive command-line view

a

  • Executing command over ssh via command-line interactive mode

b

  • Command execution output in interactive command-line view

c

  • Web GUI - all in one view

d

  • Web GUI - individual reports view

e

  • Web GUI - OS validation

f

  • Web GUI - Disk check

g

  • Web GUI - Raw outputs

h

  • Web GUI - Perform validations with mouse clicks

i

You can’t perform that action at this time.