mirror of https://github.com/fail2ban/fail2ban
2to3, python2 only for old versions
parent
3d6846ac78
commit
844786b716
|
@ -60,19 +60,29 @@ Manual install/upgrade is very similar to aforementioned [testing of standalone
|
|||
|
||||
<details><summary>Read more ...</summary>
|
||||
|
||||
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));
|
||||
<details><summary>- for fail2ban versions before or equal 1.0</summary>
|
||||
|
||||
- install prerequirements you need (see [README.md](https://github.com/fail2ban/fail2ban/blob/1.0/README.md));
|
||||
for example:
|
||||
* for `python2`:<br/>
|
||||
`apt install python-pyinotify python-systemd`
|
||||
* for `python3`:<br/>
|
||||
`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)
|
||||
</details>
|
||||
<details><summary>- for fail2ban versions 1.1 or higher</summary>
|
||||
|
||||
- install prerequirements you need (see [README.md](https://github.com/fail2ban/fail2ban/blob/master/README.md));
|
||||
for example:
|
||||
`apt install python3-pyinotify python3-systemd`
|
||||
</details>
|
||||
|
||||
- enter your (cloned) interim fail2ban directory:<br/>
|
||||
`cd /tmp/f2b`
|
||||
- if you want to use `python3` execute `./fail2ban-2to3` (and then use `python3` in command below)
|
||||
- now install it:<br/>
|
||||
`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:
|
||||
|
|
Loading…
Reference in New Issue