Skip to content

Commit

Permalink
chg: [doc] Updated docs and removed obsolete refs.
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveClement committed Dec 25, 2021
1 parent 30104a7 commit 9cff980
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 1,103 deletions.
2 changes: 1 addition & 1 deletion docs/INSTALL.rhel7.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ configWorkersRHEL () {

{!generic/MISP_CAKE_init.md!}

{!generic/misp-modules-centos.md!}
{!generic/misp-modules-rhel.md!}

{!generic/misp-modules-cake.md!}

Expand Down
27 changes: 8 additions & 19 deletions docs/INSTALL.rhel8.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# INSTALLATION INSTRUCTIONS for RHEL 8.x based distros
-------------------------

### -2/ RHEL8/CentOS8/CentOS_Stream(8/9)/Rocky8.4/Rocky8.5/Fedora34/Fedora35 - status
### -2/ RHEL8/Rocky8.4/Rocky8.5/Fedora34/Fedora35 - status
-------------------------
!!! notice
Tested fully working without SELinux by [@SteveClement](https://twitter.com/SteveClement) on 20210702

!!! notice
TODO: Fix SELinux permissions, *pull-requests welcome*.
TODO: Test CentOS Stram 9, misp-core works approximately.

{!generic/manual-install-notes.md!}

Expand All @@ -19,8 +18,6 @@

### 0/ Overview and Assumptions

{!generic/rhelVScentos.md!}

!!! warning
The core MISP team cannot easily verify if this guide is working or not. Please help us in keeping it up to date and accurate.
Thus we also have difficulties in supporting RHEL issues but will do a best effort on a similar yet slightly different setup.
Expand All @@ -32,8 +29,8 @@

{!generic/manual-install-notes.md!}

This document details the steps to install MISP on Red Hat Enterprise Linux 8.x (RHEL 8.x) and CentOS 8.x.
This is a joint RHEL/CentOS install guide. The authors tried to make it contextually evident what applies to which flavor.
This document details the steps to install MISP on Red Hat Enterprise Linux 8.x (RHEL 8.x) and Rocky Linux 8.x.
This is a joint RHEL/Rocky install guide. The authors tried to make it contextually evident what applies to which flavor.

The following assumptions with regard to this installation have been made.

Expand All @@ -59,7 +56,7 @@ The following assumptions with regard to this installation have been made.

### 1/ OS Install and additional repositories

## 1.1/ Complete a minimal RHEL/CentOS installation, configure IP address to connect automatically.
## 1.1/ Complete a minimal RHEL/Rocky installation, configure IP address to connect automatically.

## 1.2/ Configure system hostname (if not done during install)
```bash
Expand Down Expand Up @@ -127,14 +124,6 @@ enableEPEL_REMI_8 () {
([[ ${DISTRI} == "centos8stream" ]] || [[ ${DISTRI} == "centos8" ]] || [[ ${DISTRI} == "rocky8.4" ]] || [[ ${DISTRI} == "rocky8.5" ]]) && sudo dnf config-manager --set-enabled powertools
}

enableEPEL_REMI_9 () {
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y
sudo dnf install http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y
sudo dnf install dnf-utils -y
sudo dnf module enable php:remi-7.4 -y
([[ ${DISTRI} == "centos9stream" ]]) && sudo dnf config-manager --set-enabled powertools
}

enableREMI_fedora () {
[[ "${DISTRI%??}" == "fedora" ]] && sudo dnf install http://rpms.remirepo.net/fedora/remi-release-${DISTRI:6}.rpm -y
dnf list installed mod_lua && sudo dnf remove mod_lua -y
Expand Down Expand Up @@ -321,7 +310,7 @@ installCoreRHEL8 () {

# If you umask is has been changed from the default, it is a good idea to reset it to 0022 before installing python modules
([[ ${DISTRI} == 'fedora33' ]] || [[ ${DISTRI} == 'fedora34' ]] || [[ ${DISTRI} == 'rhel8.3' ]]) && sudo dnf install cmake3 -y && CMAKE_BIN='cmake3'
([[ ${DISTRI} == 'centos8stream' ]] || [[ ${DISTRI} == 'centos8' ]] || [[ ${DISTRI} == 'rocky8.4' ]] || [[ ${DISTRI} == 'rocky8.5' ]] || [[ ${DISTRI} == 'centos9stream']]) && sudo dnf install cmake -y && CMAKE_BIN='cmake'
([[ ${DISTRI} == 'centos8stream' ]] || [[ ${DISTRI} == 'centos8' ]] || [[ ${DISTRI} == 'rocky8.4' ]] || [[ ${DISTRI} == 'rocky8.5' ]]) && sudo dnf install cmake -y && CMAKE_BIN='cmake'

UMASK=$(umask)
umask 0022
Expand All @@ -345,7 +334,7 @@ installCoreRHEL8 () {
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install -U .

# FIXME: Remove libfaup etc once the egg has the library baked-in
# BROKEN: This needs to be tested on RHEL/CentOS
# BROKEN: This needs to be tested on RHEL/Rocky
sudo dnf install libcaca-devel -y
cd /tmp
[[ ! -d "faup" ]] && $SUDO_CMD git clone https://github.com/stricaud/faup.git faup
Expand Down Expand Up @@ -729,11 +718,11 @@ configWorkersRHEL () {

{!generic/MISP_CAKE_init.md!}

{!generic/misp-modules-centos.md!}
{!generic/misp-modules-rhel.md!}

{!generic/misp-modules-cake.md!}

{!generic/misp-dashboard-centos.md!}
{!generic/misp-dashboard-rhel.md!}

{!generic/misp-dashboard-cake.md!}

Expand Down
2 changes: 1 addition & 1 deletion docs/UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ cd /var/www/MISP/PyMISP
python3 setup.py install
```

# 6. For RHEL/CentOS: enable python3 for php-fpm
# 6. For RHEL: enable python3 for php-fpm
```bash
echo 'source scl_source enable rh-python36' >> /etc/opt/rh/rh-php71/sysconfig/php-fpm
sed -i.org -e 's/^;\(clear_env = no\)/\1/' /etc/opt/rh/rh-php71/php-fpm.d/www.conf
Expand Down
Loading

0 comments on commit 9cff980

Please sign in to comment.