mirror of https://github.com/MISP/MISP
Merge pull request #7278 from SteveClement/guides
commit
45a2e0606d
|
@ -88,6 +88,7 @@
|
|||
## 2_logRotation.sh ##
|
||||
## 2_backgroundWorkers.sh ##
|
||||
## 3_misp-modules.sh ##
|
||||
## 3_misp-modules-cake.sh ##
|
||||
## 4_misp-dashboard.sh ##
|
||||
## 4_misp-dashboard-cake.sh ##
|
||||
## 5_mail_to_misp.sh ##
|
||||
|
@ -147,12 +148,12 @@ generateInstaller () {
|
|||
cp ../INSTALL.tpl.sh .
|
||||
|
||||
# Pull code snippets out of Main Install Documents
|
||||
for f in `echo INSTALL.ubuntu2004.md INSTALL.ubuntu1804.md xINSTALL.debian9.md INSTALL.kali.md xINSTALL.debian10.md xINSTALL.tsurugi.md xINSTALL.debian9-postgresql.md xINSTALL.ubuntu1804.with.webmin.md INSTALL.rhel7.md`; do
|
||||
for f in `echo INSTALL.ubuntu2004.md INSTALL.ubuntu1804.md xINSTALL.debian10.md xINSTALL.tsurugi.md INSTALL.rhel7.md INSTALL.rhel8.md`; do
|
||||
xsnippet . ../../docs/${f}
|
||||
done
|
||||
|
||||
# Pull out code snippets from generic Install Documents
|
||||
for f in `echo globalVariables.md mail_to_misp-debian.md MISP_CAKE_init.md misp-dashboard-debian.md misp-modules-debian.md gnupg.md ssdeep-debian.md sudo_etckeeper.md supportFunctions.md viper-debian.md misp-modules-centos.md`; do
|
||||
for f in `echo globalVariables.md mail_to_misp-debian.md MISP_CAKE_init.md misp-dashboard-debian.md misp-dashboard-centos.md misp-dashboard-cake.md misp-modules-debian.md misp-modules-centos.md misp-modules-cake.md gnupg.md ssdeep-debian.md sudo_etckeeper.md supportFunctions.md viper-debian.md`; do
|
||||
xsnippet . ../../docs/generic/${f}
|
||||
done
|
||||
|
||||
|
@ -181,6 +182,7 @@ generateInstaller () {
|
|||
perl -pe 's/^## 2_logRotation.sh ##/`cat 2_logRotation.sh`/ge' -i INSTALL.tpl.sh
|
||||
perl -pe 's/^## 2_backgroundWorkers.sh ##/`cat 2_backgroundWorkers.sh`/ge' -i INSTALL.tpl.sh
|
||||
perl -pe 's/^## 2_core-cake.sh ##/`cat 2_core-cake.sh`/ge' -i INSTALL.tpl.sh
|
||||
perl -pe 's/^## 3_misp-modules-cake.sh ##/`cat 3_misp-modules-cake.sh`/ge' -i INSTALL.tpl.sh
|
||||
perl -pe 's/^## 3_misp-modules.sh ##/`cat 3_misp-modules.sh`/ge' -i INSTALL.tpl.sh
|
||||
perl -pe 's/^## 4_misp-dashboard-cake.sh ##/`cat 4_misp-dashboard-cake.sh`/ge' -i INSTALL.tpl.sh
|
||||
perl -pe 's/^## 4_misp-dashboard.sh ##/`cat 4_misp-dashboard.sh`/ge' -i INSTALL.tpl.sh
|
||||
|
@ -661,7 +663,7 @@ installMISPRHEL () {
|
|||
fi
|
||||
|
||||
debug "Enabling Extras Repos (SCL)"
|
||||
if [[ "${FLAVOUR}" == "rhel" ]]; then
|
||||
if [[ "${DISTRI}" == "rhel7" ]]; then
|
||||
sudo subscription-manager register --auto-attach
|
||||
enableReposRHEL
|
||||
enableEPEL
|
||||
|
@ -782,13 +784,19 @@ fi
|
|||
SUPPORT_MAP="
|
||||
x86_64-centos-7
|
||||
x86_64-rhel-7
|
||||
x86_64-fedora-30
|
||||
x86_64-centos-8
|
||||
x86_64-rhel-8
|
||||
x86_64-fedora-33
|
||||
x86_64-debian-stretch
|
||||
x86_64-debian-buster
|
||||
x86_64-ubuntu-bionic
|
||||
x86_64-ubuntu-focal
|
||||
x86_64-ubuntu-hirsute
|
||||
x86_64-kali-2020.4
|
||||
x86_64-kali-2021.1
|
||||
x86_64-kali-2021.2
|
||||
x86_64-kali-2021.3
|
||||
x86_64-kali-2021.4
|
||||
armv6l-raspbian-stretch
|
||||
armv7l-raspbian-stretch
|
||||
armv7l-debian-jessie
|
||||
|
@ -893,7 +901,7 @@ if [[ "${FLAVOUR}" == "kali" ]]; then
|
|||
fi
|
||||
|
||||
# If RHEL/CentOS is detected, run appropriate script
|
||||
if [[ "${FLAVOUR}" == "rhel" ]] || [[ "${FLAVOUR}" == "centos" ]]; then
|
||||
if [[ "${FLAVOUR}" == "rhel" ]] || [[ "${FLAVOUR}" == "centos" ]] || [[ "${FLAVOUR}" == "fedora" ]]; then
|
||||
installMISPRHEL
|
||||
echo "Installation done !"
|
||||
exit
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
../docs/xINSTALL.centos6.md
|
|
@ -1 +0,0 @@
|
|||
../docs/xINSTALL.debian9-postgresql.md
|
|
@ -1 +0,0 @@
|
|||
../docs/xINSTALL.debian9.md
|
|
@ -1 +0,0 @@
|
|||
../docs/xINSTALL.ubuntu1804.with.webmin.md
|
|
@ -1,7 +1,7 @@
|
|||
# INSTALLATION INSTRUCTIONS for RHEL 8.x, CentOS8/Stream
|
||||
-------------------------
|
||||
|
||||
### -2/ RHEL8/CentOS8 - status
|
||||
### -2/ RHEL8/CentOS8/CentOS_Stream/Fedora33 - status
|
||||
-------------------------
|
||||
!!! notice
|
||||
MISP-core and misp-modules Tested working by [@SteveClement](https://twitter.com/SteveClement) on 20210326
|
||||
|
@ -14,7 +14,7 @@
|
|||
### -1/ Installer and Manual install instructions
|
||||
|
||||
!!! warning
|
||||
In the **future**, to install MISP on a fresh RHEL 8 install all you need to do is:
|
||||
In the **future**, to install MISP on a fresh RHEL 8 or CentOS 8 install all you need to do is:
|
||||
|
||||
```bash
|
||||
# Please check the installer options first to make the best choice for your install
|
||||
|
@ -116,13 +116,18 @@ yumUpdate () {
|
|||
## 1.6/ Install the EPEL and remi repo
|
||||
```bash
|
||||
# <snippet-begin 0_EPEL_REMI.sh>
|
||||
enableEPEL_REMI () {
|
||||
enableEPEL_REMI_8 () {
|
||||
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
|
||||
sudo yum install http://rpms.remirepo.net/enterprise/remi-release-8.rpm -y
|
||||
sudo yum install yum-utils -y
|
||||
sudo dnf module enable php:remi-7.4 -y
|
||||
[[ ${DISTRI} == "centos8stream" ]] &&sudo dnf config-manager --set-enabled powertools
|
||||
[[ ${DISTRI} == "centos8" ]] &&sudo dnf config-manager --set-enabled powertools
|
||||
[[ ${DISTRI} == "centos8stream" ]] && sudo dnf config-manager --set-enabled powertools
|
||||
[[ ${DISTRI} == "centos8" ]] && sudo dnf config-manager --set-enabled powertools
|
||||
}
|
||||
enableREMI_f33 () {
|
||||
sudo yum install http://rpms.remirepo.net/fedora/remi-release-33.rpm
|
||||
sudo yum install yum-utils -y
|
||||
sudo dnf module enable php:remi-7.4 -y
|
||||
}
|
||||
# <snippet-end 0_EPEL_REMI.sh>
|
||||
```
|
||||
|
@ -218,7 +223,8 @@ installCoreRHEL () {
|
|||
$SUDO_WWW git config core.filemode false
|
||||
|
||||
# Create a python3 virtualenv
|
||||
$SUDO_WWW virtualenv-3 -p python3 $PATH_TO_MISP/venv
|
||||
[[ -e $(which virtualenv-3 2>/dev/null) ]] && $SUDO_WWW virtualenv-3 -p python3 $PATH_TO_MISP/venv
|
||||
[[ -e $(which virtualenv 2>/dev/null) ]] && $SUDO_WWW virtualenv -p python3 $PATH_TO_MISP/venv
|
||||
sudo mkdir /usr/share/httpd/.cache
|
||||
sudo chown $WWW_USER:$WWW_USER /usr/share/httpd/.cache
|
||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install -U pip setuptools
|
||||
|
@ -263,7 +269,7 @@ installCoreRHEL () {
|
|||
|
||||
# lief needs manual compilation
|
||||
sudo yum groupinstall "Development Tools" -y
|
||||
[[ ${DISTRI} == 'rhel8.3' ]] && sudo yum install cmake3 -y && CMAKE_BIN='cmake3'
|
||||
[[ ${DISTRI} == 'fedora33' ]] || [[ ${DISTRI} == 'rhel8.3' ]] && sudo yum install cmake3 -y && CMAKE_BIN='cmake3'
|
||||
[[ ${DISTRI} == 'centos8stream' ]] && sudo yum install cmake -y && CMAKE_BIN='cmake'
|
||||
[[ ${DISTRI} == 'centos8' ]] && sudo yum install cmake -y && CMAKE_BIN='cmake'
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ mispmodulesRHEL () {
|
|||
[[ "${DIST_VER}" =~ ^[7].* ]] && sudo yum install openjpeg-devel gcc-c++ poppler-cpp-devel pkgconfig python-devel redhat-rpm-config -y
|
||||
|
||||
# some misp-modules dependencies for RHEL8
|
||||
[[ "${DIST_VER}" =~ ^[8].* ]] && sudo yum install openjpeg2-devel gcc-c++ poppler-cpp-devel pkgconfig python2-devel redhat-rpm-config -y
|
||||
([[ "${DISTRI}" == "fedora33" ]] || [[ "${DIST_VER}" =~ ^[8].* ]]) && sudo yum install openjpeg2-devel gcc-c++ poppler-cpp-devel pkgconfig python2-devel redhat-rpm-config -y
|
||||
|
||||
sudo chmod 2777 /usr/local/src
|
||||
sudo chown root:users /usr/local/src
|
||||
|
@ -19,7 +19,7 @@ mispmodulesRHEL () {
|
|||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install -U .
|
||||
${SUDO_WWW} ${PATH_TO_MISP}/venv/bin/pip install pyfaup censys
|
||||
# some misp-modules dependencies for RHEL<8
|
||||
[[ "${DIST_VER}" =~ ^[7].* ]] && sudo yum install rubygem-rouge rubygem-asciidoctor zbar-devel opencv-devel -y
|
||||
([[ "${DISTRI}" == "fedora33" ]] || [[ "${DIST_VER}" =~ ^[7].* ]]) && sudo yum install rubygem-rouge rubygem-asciidoctor zbar-devel opencv-devel -y
|
||||
# some misp-modules dependencies for RHEL8
|
||||
[[ "${DIST_VER}" =~ ^[8].* ]] && sudo dnf install https://packages.endpoint.com/rhel/8/main/x86_64/endpoint-repo-8-1.ep8.noarch.rpm -y && sudo yum install zbar-devel opencv-devel -y
|
||||
|
||||
|
|
|
@ -155,12 +155,13 @@ checkFlavour () {
|
|||
fi
|
||||
echo "${FLAVOUR} support is experimental at the moment"
|
||||
;;
|
||||
rhel|ol|sles)
|
||||
rhel|ol|sles|fedora)
|
||||
if [ -z "$dist_version" ] && [ -r /etc/os-release ]; then
|
||||
# FIXME: On fedora the trimming fails
|
||||
dist_version="$(. /etc/os-release && echo "$VERSION_ID")"
|
||||
dist_version=${dist_version:0:1} # Only interested about major version
|
||||
dist_version=${dist_version:0:1} # Only interested about major version
|
||||
fi
|
||||
# Only tested for RHEL 7 so far
|
||||
# FIXME: Only tested for RHEL 7 so far
|
||||
echo "${FLAVOUR} support is experimental at the moment"
|
||||
;;
|
||||
*)
|
||||
|
@ -230,7 +231,7 @@ EOF
|
|||
|
||||
checkInstaller () {
|
||||
# Workaround: shasum is not available on RHEL, only checking sha512
|
||||
if [[ "${FLAVOUR}" == "rhel" ]] || [[ "${FLAVOUR}" == "centos" ]]; then
|
||||
if [[ "${FLAVOUR}" == "rhel" ]] || [[ "${FLAVOUR}" == "centos" ]] || [[ "${FLAVOUR}" == "fedora" ]]; then
|
||||
INSTsum=$(sha512sum ${0} | cut -f1 -d\ )
|
||||
/usr/bin/wget --no-cache -q -O /tmp/INSTALL.sh.sha512 https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.sh.sha512
|
||||
chsum=$(cat /tmp/INSTALL.sh.sha512)
|
||||
|
|
Loading…
Reference in New Issue