From 844786b71641753b2a4e7f4d057ebf3fb2c0922d Mon Sep 17 00:00:00 2001 From: "Sergey G. Brester" Date: Fri, 16 Jun 2023 16:54:08 +0200 Subject: [PATCH] 2to3, python2 only for old versions --- How-to-install-or-upgrade-fail2ban-manually.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/How-to-install-or-upgrade-fail2ban-manually.md b/How-to-install-or-upgrade-fail2ban-manually.md index 893d5ce..87a9160 100644 --- a/How-to-install-or-upgrade-fail2ban-manually.md +++ b/How-to-install-or-upgrade-fail2ban-manually.md @@ -60,19 +60,29 @@ Manual install/upgrade is very similar to aforementioned [testing of standalone
Read more ... -Firstly download fail2ban from [releases](https://github.com/fail2ban/fail2ban/releases) or from [source](https://github.com/fail2ban/fail2ban) (select branch master or 0.10, 0.11 and click "clone or download" button) and unpack it (or clone it with git) into some temporary directory (e. g. `/tmp/f2b`). +Firstly download fail2ban from [releases](https://github.com/fail2ban/fail2ban/releases) or from [source](https://github.com/fail2ban/fail2ban) (select branch master or 1.0, 0.11, 0.10 and click "clone or download" button) and unpack it (or clone it with git) into some temporary directory (e. g. `/tmp/f2b`). In order to install it, you have to execute several of following commands as root (or sudoer), so you can start shell as root (e. g. `sudo -s`) or use `sudo` before corresponding command that expecting administrator permissions. -- install prerequirements you need (see [README.md](https://github.com/fail2ban/fail2ban/blob/0.11/README.md)); +
- for fail2ban versions before or equal 1.0 + +- install prerequirements you need (see [README.md](https://github.com/fail2ban/fail2ban/blob/1.0/README.md)); for example: * for `python2`:
`apt install python-pyinotify python-systemd` * for `python3`:
`apt install python3-pyinotify python3-systemd 2to3` +- if you want to use `python3`, enter `cd /tmp/f2b` and execute `./fail2ban-2to3` (and then use `python3` in command below) +
+
- for fail2ban versions 1.1 or higher + +- install prerequirements you need (see [README.md](https://github.com/fail2ban/fail2ban/blob/master/README.md)); +for example: + `apt install python3-pyinotify python3-systemd` +
+ - enter your (cloned) interim fail2ban directory:
`cd /tmp/f2b` -- if you want to use `python3` execute `./fail2ban-2to3` (and then use `python3` in command below) - now install it:
`sudo python setup.py install --without-tests` - note that the system init/service script is not automatically installed, so you have to copy it and enable the service manually; for example with init.d-script see readme, to install systemd-unit file use: