Skip to content

Instantly share code, notes, and snippets.

@jermdw
Created October 29, 2016 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jermdw/328f60842f86f31eefc976b2e5e02bad to your computer and use it in GitHub Desktop.
Save jermdw/328f60842f86f31eefc976b2e5e02bad to your computer and use it in GitHub Desktop.
Vagrant - MISP
# Create an Admin User
sudo adduser admin
# Pull the latest updates
sudo apt update && sudo apt dist-upgrade -y
# install postfix, there will be some questions.
sudo apt install -y postfix
# Postfix Configuration: Satellite system
# change the relay server later with:
#sudo postconf -e 'relayhost = example.com'
#sudo postfix reload
# 1st round of dependencies...
sudo apt-get install curl gcc git gnupg-agent make python openssl redis-server sudo vim zip
# MariaDB of course..
sudo apt-get install mariadb-client mariadb-server
# Secure the MariaDB installation (especially by setting a strong root password)
sudo mysql_secure_installation
# Install Apache2
sudo apt install -y apache2 apache2-doc apache2-utils
# Enable modules, settings, and default of SSL in Apache
sudo a2dismod status \
sudo a2enmod ssl \
sudo a2enmod rewrite \
sudo a2dissite 000-default \
sudo a2ensite default-ssl \
# Install PHP and dependencies
apt install -y libapache2-mod-php php php-cli php-crypt-gpg php-dev php-json php-mysql php-opcache php-readline php-redis
# Apply all changes
sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment