mirror of https://github.com/MISP/MISP
chg: [doc] Updated Debian testing install docs
parent
7c3466f934
commit
dcbffa4c9e
|
@ -56,9 +56,7 @@ sudo postfix reload
|
|||
|
||||
#### Install all the dependencies (some might already be installed)
|
||||
|
||||
You need to update python3.5 to python3.7 for [PyMISP](https://github.com/MISP/PyMISP) to work properly.
|
||||
|
||||
FIXME: The below breaks redis-server and mariadb-server
|
||||
You need to use at least Python3.6 for [PyMISP](https://github.com/MISP/PyMISP) to work properly.
|
||||
|
||||
```bash
|
||||
# Manual Python3.7.3 install in $HOME
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
!!! notice
|
||||
This is mostly the install [@SteveClement](https://twitter.com/SteveClement)
|
||||
uses for testing, qc and random development.
|
||||
Maintained and tested by @SteveClement on 20190405
|
||||
Maintained and tested by @SteveClement on 20190702
|
||||
|
||||
!!! warning
|
||||
PHP 7.3.0RC4 is not working at the moment with the packaged composer.phar<br />
|
||||
|
@ -18,6 +18,9 @@
|
|||
```bash
|
||||
PHP_ETC_BASE=/etc/php/7.3
|
||||
PHP_INI=${PHP_ETC_BASE}/apache2/php.ini
|
||||
|
||||
sudo adduser $MISP_USER staff
|
||||
sudo adduser $MISP_USER $WWW_USER
|
||||
```
|
||||
|
||||
### 1/ Minimal Debian install
|
||||
|
@ -34,7 +37,7 @@ PHP_INI=${PHP_ETC_BASE}/apache2/php.ini
|
|||
#### Make sure your system is up2date
|
||||
```bash
|
||||
sudo apt update
|
||||
sudo apt -y dist-upgrade
|
||||
sudo apt dist-upgrade -y
|
||||
```
|
||||
|
||||
#### install postfix, there will be some questions. (optional)
|
||||
|
@ -67,10 +70,10 @@ jq ntp ntpdate jupyter-notebook imagemagick tesseract-ocr \
|
|||
libxml2-dev libxslt1-dev zlib1g-dev -y
|
||||
|
||||
# Start haveged to get more entropy (optional)
|
||||
sudo apt install haveged -y
|
||||
sudo apt install haveged -qqy
|
||||
sudo service haveged start
|
||||
|
||||
sudo apt install expect -y
|
||||
sudo apt install expect -qqy
|
||||
|
||||
# Add your credentials if needed, if sudo has NOPASS, comment out the relevant lines
|
||||
pw="Password1234"
|
||||
|
@ -99,7 +102,7 @@ expect -f - <<-EOF
|
|||
send -- "y\r"
|
||||
expect eof
|
||||
EOF
|
||||
sudo apt-get purge -y expect ; sudo apt autoremove -y
|
||||
sudo apt purge -qqy expect ; sudo apt autoremove -qqy
|
||||
|
||||
# Enable modules, settings, and default of SSL in Apache
|
||||
sudo a2dismod status
|
||||
|
@ -149,11 +152,29 @@ cd $PATH_TO_MISP/app/files/scripts/python-stix
|
|||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
cd $PATH_TO_MISP/app/files/scripts/python-maec
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
# install STIX2.0 library to support STIX 2.0 export:
|
||||
cd ${PATH_TO_MISP}/cti-python-stix2
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install PyMISP
|
||||
cd $PATH_TO_MISP/PyMISP
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install .
|
||||
|
||||
# install pydeep
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install git+https://github.com/kbandla/pydeep.git
|
||||
|
||||
# install lief
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install https://github.com/lief-project/packages/raw/lief-master-latest/pylief-0.9.0.dev.zip
|
||||
|
||||
# install zmq needed by mispzmq
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install zmq
|
||||
|
||||
# install python-magic
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install python-magic
|
||||
|
||||
# install plyara
|
||||
$SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install plyara
|
||||
|
||||
# Install Crypt_GPG and Console_CommandLine
|
||||
sudo pear install ${PATH_TO_MISP}/INSTALL/dependencies/Console_CommandLine/package.xml
|
||||
sudo pear install ${PATH_TO_MISP}/INSTALL/dependencies/Crypt_GPG/package.xml
|
||||
|
@ -378,8 +399,8 @@ $SUDO_WWW sh -c "gpg --homedir $PATH_TO_MISP/.gnupg --export --armor $GPG_EMAIL_
|
|||
sudo chmod +x $PATH_TO_MISP/app/Console/worker/start.sh
|
||||
|
||||
echo "[Unit]
|
||||
Description=MISP's background workers
|
||||
After=rh-mariadb102-mariadb.service rh-redis32-redis.service rh-php72-php-fpm.service
|
||||
Description=MISP background workers
|
||||
After=mariadb.service redis-server.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
|
@ -445,7 +466,8 @@ $SUDO_WWW ${PATH_TO_MISP}/venv/bin/pip install pyzmq
|
|||
|
||||
#### MISP has a feature for publishing events to Kafka. To enable it, simply run the following commands
|
||||
```bash
|
||||
sudo apt-get install librdkafka-dev php-dev
|
||||
sudo apt install librdkafka-dev php-dev
|
||||
sudo pecl channel-update pecl.php.net
|
||||
sudo pecl install rdkafka
|
||||
echo "extension=rdkafka.so" | sudo tee ${PHP_ETC_BASE}/mods-available/rdkafka.ini
|
||||
sudo phpenmod rdkafka
|
||||
|
|
Loading…
Reference in New Issue