Installation
Prerequisites
- mongodb 4.2+ - How to install
- python3 - How to install
- python3-pip
Quick Start
Our quick start script will build a deploy jimi to a Ubuntu server including systemd service install.
wget https://raw.githubusercontent.com/z1pti3/jimi-setup/main/install.sh
bash install.sh
Manural
- Clone repository
git clone https://github.com/z1pti3/jimi.git
- Change directory into jimi
cd jimi
- Install dependencies from requirements.txt
pip install -r requirements.txt
- Make a log and plugins directory
mkdir log mkdir plugins
- Make a data directory
mkdir data
- Change directory into data
cd data mkdir temp
- Generate an rsa public private key pair
openssl genrsa -des3 -out private.pem 2048 openssl rsa -in private.pem -outform PEM -pubout -out sessionPub.pem openssl rsa -in private.pem -out sessionPriv.pem -outform PEM rm private.pem
- Create a settings.json
nano settings.json
{
{
"system" : {
"systemID" : 0,
"accessAddress" : "127.0.0.1",
"accessPort" : 5000,
"secure" : false,
"max_workers" : 1
},
"mongodb": {
"hosts" : ["127.0.0.1:27017"],
"db" : "jimi",
"username" : null,
"password" : null
},
"api": {
"base" : "api/1.0",
"core" : {
"bind" : "127.0.0.1",
"port" : 5000
},
"worker" : {
"bind" : "127.0.0.1",
"startPort" : 5001
},
"web" : {
"bind" : "0.0.0.0",
"port" : 5015
}
}
}
- Navigate to jimi/ directory
cd ..
- Run jimi_core.py
python3 jimi_core.py
-
Pay careful attention to the install output as the root password is generated and output only on first run
- Run jimi_web.py
python3 jimi_web.py
If all has gone well then jimi should now be up and running and browsing to http://127.0.0.1:5015 should display the login page.