Installation
Prerequisites
CIDS-Sim requires Python >=3.10
Note
Python == 3.10.15 is strongly recommended.
Note
The creation of a virtual environment is strongly recommended. CIDS-Sim using miniconda to create the virtual environment.
Note
Miniconda Instalation
Create folder to download miniconda installation
mkdir -p ~/miniconda3
Download miniconda installation
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
Run miniconda installation
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
Remove miniconda instalation folder
rm -rf ~/miniconda3/miniconda.sh
Load miniconda
~/miniconda3/bin/conda init bash
~/miniconda3/bin/conda init zsh
After that, close the terminal and open again, then you can continue to Prepare Environment using Miniconda part.
Prepare Environment using Miniconda
Create environment with python 3.10 and install libraries
conda create --name cids_env python=3.10
Then activate the environment
conda activate cids_env
After that, install jupyter notebook
conda install notebook
Note
This research using jupyter notebook to run the simulator.
Clone Repositories
Now you need to clone this repositories. Run the command below, make sure that git is already installed.
git clone https://github.com/aulwardana/CIDS-Sim.git
Then open the cloned repositories
cd CIDS-Sim
Next, you need to install the requirement for the library.
Download The Dataset
Please download the dataset at this link. After download, you can put all the dataset files in dataset folder.
Run Jupyter Notebook
Run this command to open Jupyter Notebook in browser.
jupyter notebook
Note
This will display information about the notebook server in your terminal, including the URL for the web application, which is typically http://localhost:8888 by default.
After all the setup done, you can open src folder in github page for the next instruction.
To run the simulator, you can open CIDS-Sim_Non-IID.ipynb and CIDS-Sim_Heterogeneous.ipynb in jupyter notebook.