From ace6a758f748161dcb7ba7d30e44c3b80c06b22e Mon Sep 17 00:00:00 2001 From: itsikkes Date: Wed, 25 May 2016 22:51:38 +0300 Subject: [PATCH] update installation process on linux still not final, but improved --- chaos_monkey/readme.txt | 4 ++-- monkey_island/readme.txt | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/chaos_monkey/readme.txt b/chaos_monkey/readme.txt index e39279492..cba0c7c90 100644 --- a/chaos_monkey/readme.txt +++ b/chaos_monkey/readme.txt @@ -24,14 +24,14 @@ Windows: python -m pip install psutil python -m pip install PyInstaller type > C:\Python27\Lib\site-packages\zope\__init__.py -7. Download and extract UPX binary to C:\Code\monkey\chaos_monkey\bin\upx.exe: +7. Download and extract UPX binary to [source-path]\monkey\chaos_monkey\bin\upx.exe: http://upx.sourceforge.net/download/upx391w.zip 8. Run [source-path]\monkey\chaos_monkey\build_windows.bat to build, output is in dist\monkey.exe Linux (Tested on Ubuntu 12.04): 1. Run: sudo apt-get update - apt-get install python-pip python-dev libffi-dev upx + sudo apt-get install python-pip python-dev libffi-dev upx libssl-dev sudo pip install enum34 sudo pip install impacket sudo pip install PyCrypto --upgrade diff --git a/monkey_island/readme.txt b/monkey_island/readme.txt index fd2867c12..b4984c41a 100644 --- a/monkey_island/readme.txt +++ b/monkey_island/readme.txt @@ -40,15 +40,17 @@ How to run: ---------------- On Linux ----------------: 1. Create the following directories: + sudo mkdir /var/monkey_island + sudo chmod 777 /var/monkey_island mkdir -p /var/monkey_island/bin/mongodb mkdir -p /var/monkey_island/db mkdir -p /var/monkey_island/cc/binaries 2. Install the following packages: - python -m pip install flask - python -m pip install Flask-Pymongo - python -m pip install Flask-Restful - python -m pip install python-dateutil + sudo pip install flask + sudo pip install Flask-Pymongo + sudo pip install Flask-Restful + sudo pip install python-dateutil 3. put monkey binaries in /var/monkey_island/cc/binaries monkey-linux-64 - monkey binary for linux 64bit @@ -65,10 +67,13 @@ How to run: /var/monkey_island/bin/mongodb/bin) 5. install OpenSSL - apt-get install openssl + sudo apt-get install openssl 6. Generate SSL Certificate, Run create_certificate.sh +7. Copy monkey island server to /var/monkey_island: + cp -r [monkey_island_source]/cc /var/monkey_island/ + How to run: 1. run run.sh 2. to clear db, run clear.db.sh