Skip to content
This repository has been archived by the owner on May 12, 2019. It is now read-only.
/ activity Public archive

[ABANDONED PROJECT] Both this script and the bash version once served us very well in my first company

License

Notifications You must be signed in to change notification settings

sayanarijit/activity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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