Skip to content

Manual Install (Detailed)

Kenn edited this page Jan 15, 2020 · 1 revision

Manual Install (Detailed)

This section describes in a very detailed way the manual installation method (Tested on Ubuntu 18.04, 16.04 and Kali)

In any directory you decide, which we will call $WORKING_DIRECTORY, perform the following steps

Update your system

sudo apt update
sudo apt upgrade
sudo apt install build-essential

Install python3.7

sudo apt install libffi-dev build-essential libbz2-dev libssl-dev libreadline-dev libsqlite3-dev tk-dev libxml2-dev libxslt1-dev git
sudo apt install software-properties-common
sudo add-apt-repository -y ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.7 python3.7-dev

Install redis

cd $WORKING_DIRECTORY
wget -q http://download.redis.io/redis-stable.tar.gz -O redis-stable.tar.gz
tar xvfz redis-stable.tar.gz
cd redis-stable
make
sudo make install

Install Node

In Ubuntu 18.04 and its flavors (Kali included)

sudo apt install curl software-properties-common

In Ubuntu 16.04 and its flavors (Kali included)

sudo apt install curl python-software-properties

And the rest of the commands

cd $WORKING_DIRECTORY
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs

Clone Repo

Some previous operations

cd $WORKING_DIRECTORY
sudo apt install python3-testresources
curl -O https://bootstrap.pypa.io/get-pip.py
sudo python3.7 get-pip.py
python3.7 -m pip install --upgrade pip

Now, to clone

cd $WORKING_DIRECTORY
git clone https://gitlab.com/kennbroorg/iKy.git

Install backend dependencies

cd $WORKING_DIRECTORY
cd iKy
python3.7 -m pip install --user -r requirements.txt

Install frontend dependencies

cd $WORKING_DIRECTORY
cd iKy/frontend
npm install 
npm audit fix

If you want to install the frontend to listen on all interfaces run this command sed -i -e 's/ng serve/ng serve --host 0.0.0.0/g' package.json

Turn on everything

With everything installed, we turn on the processes

Turn on Redis in a terminal

cd $WORKING_DIRECTORY
redis-server

Turn on Celery in another terminal

cd $WORKING_DIRECTORY
cd backend
./celery.sh

Turn on APP in another terminal

cd $WORKING_DIRECTORY
cd backend
python3.7 app.py -i 127.0.0.1 # or -i 0.0.0.0 to listen in all interfaces

Turn on frontend in another terminal

cd $WORKING_DIRECTORY
cd frontend
npm start

Enjoy

Open the browser in this url (Preferably Chrome and flavors)