From 48bc5e2d4547276d888939fa0830ab83055423fe Mon Sep 17 00:00:00 2001 From: Isaac <46466538+ikoas@users.noreply.github.com> Date: Tue, 5 Sep 2023 15:43:08 -0600 Subject: [PATCH 1/2] Update README.md to improve Linux and macOS installation. Added steps explaining how to use python virtual environments to use Loki due to some Linux distros locking the python global installation of modules. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cd7723f0..36c61979 100644 --- a/README.md +++ b/README.md @@ -229,9 +229,11 @@ To include the msvcr100.dll to improve the target os compatibility change the li # Use LOKI on Mac OS X (Or later) or Linux -- Install libraries ```sudo pip install colorama yara-python psutil rfc5424-logging-handler netaddr``` -- Run loki-upgrader.py ```sudo python loki-upgrader.py``` -- Run loki ```sudo python loki.py``` +- Initialize a python virtual enviroment for loki. To do this you have to make sure you have the python module `venv` then run `sudo python -m venv path/to/venv` where `path/to/venv` is the path to your virtual enviroment. Test your virtual enviroment by running `sudo path/to/venv/bin/python --version`. +- Upgrade your virtual enviroment modules for `pip`, `setuptools` and `wheel` by running `sudo path/to/venv/bin/python -m pip install --upgrade pip setuptools wheel`. +- Install libraries ```sudo path/to/venv/bin/python -m pip install colorama yara-python psutil rfc5424-logging-handler netaddr``` +- Run loki-upgrader.py ```sudo path/to/venv/bin/python path/to/loki/loki-upgrader.py``` where `path/to/loki` is the path of the Loki repository. +- Run loki ```sudo path/to/venv/bin/python loki.py``` # Yara sources From 7aa977b87322b7974b8cb8bc78c5be7a80def069 Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Wed, 30 Oct 2024 17:01:27 +0100 Subject: [PATCH 2/2] Update README.md Co-authored-by: Christian Clauss --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 36c61979..8d78c39f 100644 --- a/README.md +++ b/README.md @@ -229,10 +229,10 @@ To include the msvcr100.dll to improve the target os compatibility change the li # Use LOKI on Mac OS X (Or later) or Linux -- Initialize a python virtual enviroment for loki. To do this you have to make sure you have the python module `venv` then run `sudo python -m venv path/to/venv` where `path/to/venv` is the path to your virtual enviroment. Test your virtual enviroment by running `sudo path/to/venv/bin/python --version`. -- Upgrade your virtual enviroment modules for `pip`, `setuptools` and `wheel` by running `sudo path/to/venv/bin/python -m pip install --upgrade pip setuptools wheel`. -- Install libraries ```sudo path/to/venv/bin/python -m pip install colorama yara-python psutil rfc5424-logging-handler netaddr``` -- Run loki-upgrader.py ```sudo path/to/venv/bin/python path/to/loki/loki-upgrader.py``` where `path/to/loki` is the path of the Loki repository. +- Initialize a Python virtual environment for loki. To do this you have to make sure you have the Python module `venv` then run `python -m venv path/to/venv` where `path/to/venv` is the path to your virtual environment. Test your virtual environment by running `path/to/venv/bin/python --version`. +Upgrade your virtual environment modules for `pip`, `setuptools`, and `wheel` by running `path/to/venv/bin/python -m pip install --upgrade pip setuptools wheel`. +- Install libraries ```path/to/venv/bin/python -m pip install colorama yara-python psutil rfc5424-logging-handler netaddr``` +- Run loki-upgrader.py ```path/to/venv/bin/python path/to/loki/loki-upgrader.py``` where `path/to/loki` is the path of the Loki repository. - Run loki ```sudo path/to/venv/bin/python loki.py``` # Yara sources