-
Notifications
You must be signed in to change notification settings - Fork 67
INSTALL in Virtual Environment
Paulino Calderon edited this page Oct 25, 2016
·
1 revision
#INSTALLATION #Prerequisites
- virtual-env:
pip install virtualenv
##Linux/OSX
- Download the code from this repository.
git clone https://github.com/cldrn/rainmap-lite
- Create a new virtual environment inside the project's folder:
virtualenv rainmaplite
- Active the new virtual environment:
source rainmaplite/bin/activate
- Install Django (Tested on django 1.9.x and 1.10.x):
pip install django
- Install lxml:
pip install lxml
- Update BASE_URL, SMTP_USER, SMTP_PASS, SMTP_SERVER and SMTP_PORT in nmaper-cronjob.py with your base URL and SMTP credentials to receive email alerts.
- Create the database schema
python manage.py migrate
- Load the default scanning profiles data
python manage.py loaddata nmapprofiles
- Add a cron task to execute nmaper-cronjob.py periodically. For example:
*/5 * * * * cd <App path> && <App to your virtual environment>/bin/python nmaper-cronjob.py >> /var/log/nmaper.log 2>&1
- Run the app (Or install it):
python manage.py runserver 0.0.0.0:8080
##Adding the first admin user For security RainmapLite does not have any default administrative user out of box. You need to create one by running the following command:
python manage.py createsuperuser
The administrative console URL is '/console/'.