<commit_before>#!/usr/bin/env bash
#INSTALLATION INSTRUCTIONS
#------------------------- for Debian Flavored Linux Distributions
#
#0/ Quick MISP Instance on Debian Based Linux - Status
#-----------------------------------------------------
#
# 20190205: Kali Linux tested and working.
#
#1/ For Kali, download and run Installer Script
#----------------------------------------------
# To install MISP on Kali copy paste the following to your r00t shell:
# wget -O /tmp/misp-kali.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.debian.sh && bash /tmp/misp-kali.sh
# /!\ Please read the installer script before randomly doing the above.
# The script is tested on a plain vanilla Kali Linux Boot CD and installs quite a few dependencies.
#
#2/ For other Debian based Linux distributions, download script and run as unprivileged user
#-------------------------------------------------------------------------------------------
# wget -O ~/INSTALL.debian.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.debian.sh && bash ~/INSTALL.debian.sh -C
#
#3/ The following script has been partially autogenerated
#--------------------------------------------------------
# To generate this script yourself, the following steps need to be taken.
# $ git clone https://github.com/SteveClement/xsnippet.git
# Make sure xsnippet resides somewhere in your $PATH
# $ git clone https://github.com/MISP/MISP.git
# $ cd MISP/INSTALL ; mkdir installer ; cd installer
# $ for f in `echo INSTALL.ubuntu1804.md INSTALL.debian9.md INSTALL.kali.md xINSTALL.debian_testing.md xINSTALL.tsurugi.md xINSTALL.debian9-postgresql.md xINSTALL.ubuntu1804.with.webmin.md`; do
# $   xsnippet . ../../docs/${f}
# $ done
#
# $ 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`; do
# $   xsnippet . ../../docs/generic/${f}
# $ done
#
# $ for f in `echo ls [0-9]*`; do
# $   cat $f >> INSTALL.debian.sh
# $ done
#
# This will populate the 'installer' directory with a bunch of shell scripts that can be stitched together.

### BEGIN AUTOMATED SECTION ###

# ToC:
#

## 0_suport-functions.sh ##
## 0_sudoKeeper.sh ##
## 0_global-vars.sh ##
## 0_misp-dashboard.sh ##
## 0_misp-dashboard-cake.sh ##
## core-cake.sh ##
## gnupg.sh ##
## misp-modules.sh ##
## viper.sh ##
## mail_to_misp.sh ##

### END AUTOMATED SECTION ###

installMISPcore () {
  space
  echo "Proceeding with the installation of MISP core"
  space
}

# Main Kalin Install function
installMISPonKali () {
  # Set custom Kali only variables
  space
  debug "Disabling sleep etc…"
  gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 2> /dev/null
  gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0 2> /dev/null
  gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing' 2> /dev/null
  xset s 0 0 2> /dev/null
  xset dpms 0 0 2> /dev/null
  xset s off 2> /dev/null

  debug "Installing dependencies"
  installDepsPhp73<commit_msg>chg: [doc] Added more details on how to stitch the file together.<commit_after>#!/usr/bin/env bash
#INSTALLATION INSTRUCTIONS
#------------------------- for Debian Flavored Linux Distributions
#
#0/ Quick MISP Instance on Debian Based Linux - Status
#-----------------------------------------------------
#
# 20190205: Kali Linux tested and working.
#
#1/ For Kali, download and run Installer Script
#----------------------------------------------
# To install MISP on Kali copy paste the following to your r00t shell:
# wget -O /tmp/misp-kali.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.debian.sh && bash /tmp/misp-kali.sh
# /!\ Please read the installer script before randomly doing the above.
# The script is tested on a plain vanilla Kali Linux Boot CD and installs quite a few dependencies.
#
#2/ For other Debian based Linux distributions, download script and run as unprivileged user
#-------------------------------------------------------------------------------------------
# wget -O ~/INSTALL.debian.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.debian.sh && bash ~/INSTALL.debian.sh -C
#
#3/ The following script has been partially autogenerated
#--------------------------------------------------------
# To generate this script yourself, the following steps need to be taken.
# $ git clone https://github.com/SteveClement/xsnippet.git
# Make sure xsnippet resides somewhere in your $PATH
# $ git clone https://github.com/MISP/MISP.git
# $ cd MISP/INSTALL ; mkdir installer ; cd installer
# $ for f in `echo INSTALL.ubuntu1804.md INSTALL.debian9.md INSTALL.kali.md xINSTALL.debian_testing.md xINSTALL.tsurugi.md xINSTALL.debian9-postgresql.md xINSTALL.ubuntu1804.with.webmin.md`; do
# $   xsnippet . ../../docs/${f}
# $ done
#
# $ 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`; do
# $   xsnippet . ../../docs/generic/${f}
# $ done
#
# $ for f in `echo ls [0-9]_*`; do
# $   echo $f
# $   sed -e "s/$f/$(sed 's:/:\\/:g' $f)/" INSTALL.debian.sh
# $ done

### BEGIN AUTOMATED SECTION ###

# ToC:
#

### Dev Note: In theory the order does not matter as everything is a self-contained function.
### That said, ideally leave the order as is and do NOT change the lines as they are place-holders.
### Script files that do NOT have a #_name.sh are scripts that have NO functions. This is by design.

## 0_global-vars.sh ##
## 0_suport-functions.sh ##
## 0_sudoKeeper.sh ##
## 2_core-cake.sh ##
## 2_gnupg.sh ##
## 3_misp-modules.sh ##
## 4_misp-dashboard.sh ##
## 4_misp-dashboard-cake.sh ##
## 5_mail_to_misp.sh ##
## 6_viper.sh ##

# No functions scripts:
## apt-upgrade.sh ##
## postfix.sh ##
## interfaces.sh ##

### END AUTOMATED SECTION ###

installMISPcore () {
  space
  echo "Proceeding with the installation of MISP core"
  space
}

# Main Kalin Install function
installMISPonKali () {
  # Set custom Kali only variables
  space
  debug "Disabling sleep etc…"
  gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0 2> /dev/null
  gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 0 2> /dev/null
  gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type 'nothing' 2> /dev/null
  xset s 0 0 2> /dev/null
  xset dpms 0 0 2> /dev/null
  xset s off 2> /dev/null

  debug "Installing dependencies"
  installDepsPhp73
{'fraction_non_alphanumeric': 0.19576640144122504, 'fraction_numerical': 0.015463143672121303, 'mean_word_length': 2.6786305908337935, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5183970', 'n_tokens_mistral': 2312, 'n_tokens_neox': 2112, 'n_words': 627}