Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Fixup initial setup docs (#1629)
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnbus committed May 11, 2020
1 parent 3fbd959 commit ae17a0a
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions docs/source/installation/manual/initial_setup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,30 @@ Initial Setup
System Setup
************

Create the user::
Install required software (as root user)::

yum install -y epel-release
yum install -y python36 python36-devel python3-pip libcurl-devel gcc git
pip3 install virtualenv

Create the mozdef user (as root user)::

adduser mozdef -d /opt/mozdef
mkdir /opt/mozdef/envs
chown -R mozdef:mozdef /opt/mozdef


Python Setup
************

Clone repository::

yum install -y git
su mozdef
cd ~/
git clone https://github.com/mozilla/MozDef.git /opt/mozdef/envs/mozdef

Setting up a Python 3.6 virtual environment (as mozdef user)::

Python Setup
************

Setting up a Python 3.6 virtual environment (as root)::

yum install -y epel-release
yum install -y python36 python36-devel python3-pip libcurl-devel gcc
pip3 install virtualenv
su mozdef
cd /opt/mozdef/envs
/usr/local/bin/virtualenv -p /bin/python3 /opt/mozdef/envs/python

Expand All @@ -41,18 +42,18 @@ Install MozDef python requirements (as mozdef user)::
Syslog Setup
************

Copy over mozdef syslog file (as root)::
Copy over mozdef syslog file (as root user)::

cp /opt/mozdef/envs/mozdef/config/50-mozdef-filter.conf /etc/rsyslog.d/50-mozdef-filter.conf


Ensure log directory is created::
Ensure log directory is created (as root user)::

mkdir -p /var/log/mozdef/supervisord
chown -R mozdef:mozdef /var/log/mozdef


Restart rsyslog::
Restart rsyslog (as root user)::

systemctl restart rsyslog

0 comments on commit ae17a0a

Please sign in to comment.