mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-01-31 12:04:24 +01:00
Update Install Instructions (#388)
* Updated supervisor instructions to use bin/cowrie with XARGS instead of a dedicated DAEMONIZE setting * Updated install instructions Added apt-get command for Ubuntu and updated instructions when using a different virtual environment name
This commit is contained in:
committed by
Michel Oosterhof
parent
dc6872dafc
commit
62dc8f563b
20
INSTALL.md
20
INSTALL.md
@@ -18,6 +18,12 @@
|
||||
First we install support for Python virtual environments and other dependencies.
|
||||
The actual Python packages are installed later.
|
||||
|
||||
On Ubuntu based systems (tested on Ubuntu 14.04 and 16.04, 2016-12-28):
|
||||
```
|
||||
$ sudo apt-get install git python-virtualenv libmpfr-dev libssl-dev libmpc-dev libffi-dev build-essential libpython-dev python2.7-minimal
|
||||
```
|
||||
Note: On Ubuntu 16.04 and later, the virtualenv package exists, but it will install the Python 3 version while Cowrie requires Python 2.
|
||||
|
||||
On Debian based systems (tested on Debian 8, 2016-08-30):
|
||||
```
|
||||
$ sudo apt-get install git virtualenv libmpfr-dev libssl-dev libmpc-dev libffi-dev build-essential libpython-dev python2.7-minimal
|
||||
@@ -102,10 +108,10 @@ $ cd ..
|
||||
If you use a virtual environment and it uses the default name of
|
||||
'cowrie-env' it will be activated automatically.
|
||||
|
||||
If you use another virtual environment activate it first:
|
||||
If you use another virtual environment, set the COWRIE_VENV environment variable to the name of the virtual environment:
|
||||
|
||||
```
|
||||
$ source venv/bin/activate
|
||||
$ export COWRIE_VENV=your-venv-name
|
||||
```
|
||||
|
||||
To start Cowrie:
|
||||
@@ -151,20 +157,12 @@ $ sudo chmod 770 /etc/authbind/byport/23
|
||||
On Debian, put the below in /etc/supervisor/conf.d/cowrie.conf
|
||||
```
|
||||
[program:cowrie]
|
||||
command=/home/cowrie/cowrie/start.sh cowrie-env
|
||||
command=/home/cowrie/cowrie/bin/cowrie start -n
|
||||
directory=/home/cowrie/cowrie/
|
||||
user=cowrie
|
||||
autorestart=true
|
||||
redirect_stderr=true
|
||||
```
|
||||
Update the start.sh script, change:
|
||||
```
|
||||
DAEMONIZE=""
|
||||
```
|
||||
to:
|
||||
```
|
||||
DAEMONIZE="-n"
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
|
||||
Reference in New Issue
Block a user