Perform bulk server command execution and validations over ssh in an organised and efficient way.
- Python 3.6 (with python-devel)
- virtualenv
- sshpass
- phpMyAdmin & Apache server configured for codeigniter installation
- Password less sudo access to 'apache'/'www-data' user
- 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
- Access website at http://localhost/activity
- Interactive command-line view
- Executing command over ssh via command-line interactive mode
- Command execution output in interactive command-line view
- Web GUI - all in one view
- Web GUI - individual reports view
- Web GUI - OS validation
- Web GUI - Disk check
- Web GUI - Raw outputs
- Web GUI - Perform validations with mouse clicks