mirror of https://github.com/MISP/MISP
chg: [doc] Added Tsurugi Linux to Index and changed some minor issue.
parent
4e16943d6d
commit
a5402dc9b9
|
@ -8,7 +8,14 @@
|
||||||
#1/ Prepare Tsurugi with a MISP User
|
#1/ Prepare Tsurugi with a MISP User
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
# You will need a working OpenSSH server, reconfigure as follows:
|
# You will need a working OpenSSH server, reconfigure as follows:
|
||||||
|
# sudo update-rc.d -f ssh remove
|
||||||
|
# sudo update-rc.d -f ssh defaults
|
||||||
# sudo dpkg-reconfigure openssh-server
|
# sudo dpkg-reconfigure openssh-server
|
||||||
|
# sudo systemctl restart ssh
|
||||||
|
# If you installed tsurugi the locale is a little all over the place. I assume en_US to be default unless you know what you're doing.
|
||||||
|
# sudo sed -i 's/ja_JP/en_US/g' /etc/default/locale
|
||||||
|
# sudo sed -i 's/ja_JP.UTF/# ja_JP.UTF/g' /etc/locale.gen
|
||||||
|
# sudo dpkg-reconfigure locales
|
||||||
# To install MISP on Tsurugi copy paste this in your r00t shell:
|
# To install MISP on Tsurugi copy paste this in your r00t shell:
|
||||||
# wget -O /tmp/misp-tsurugi.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.tsurugi.txt && bash /tmp/misp-tsurugi.sh
|
# wget -O /tmp/misp-tsurugi.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/INSTALL.tsurugi.txt && bash /tmp/misp-tsurugi.sh
|
||||||
# /!\ Please read the installer script before randomly doing the above.
|
# /!\ Please read the installer script before randomly doing the above.
|
||||||
|
@ -137,13 +144,13 @@ function installMISPonTsurugi() {
|
||||||
|
|
||||||
$SUDO_WWW git config core.filemode false
|
$SUDO_WWW git config core.filemode false
|
||||||
|
|
||||||
cp -p /etc/lsb_release /etc/lsb_release.tmp
|
cp -p /etc/lsb-release /etc/lsb-release.tmp
|
||||||
sudo sed -i 's/TSURUGI/Ubuntu/g' /etc/lsb_release
|
sudo sed -i 's/TSURUGI/Ubuntu/g' /etc/lsb-release
|
||||||
sudo sed -i 's/bamboo/xenial/g' /etc/lsb_release
|
sudo sed -i 's/bamboo/xenial/g' /etc/lsb-release
|
||||||
sudo add-apt-repository ppa:jonathonf/python-3.6
|
sudo add-apt-repository ppa:jonathonf/python-3.6 -y
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install python3.6 python3.6-dev
|
sudo apt-get install python3.6 python3.6-dev -y
|
||||||
mv /etc/lsb_release.tmp /etc/lsb_release
|
mv /etc/lsb-release.tmp /etc/lsb-release
|
||||||
$SUDO_WWW virtualenv -p python3.6 $PATH_TO_MISP/venv
|
$SUDO_WWW virtualenv -p python3.6 $PATH_TO_MISP/venv
|
||||||
|
|
||||||
cd $PATH_TO_MISP/app/files/scripts
|
cd $PATH_TO_MISP/app/files/scripts
|
||||||
|
@ -151,6 +158,9 @@ function installMISPonTsurugi() {
|
||||||
$SUDO_WWW git clone https://github.com/STIXProject/python-stix.git
|
$SUDO_WWW git clone https://github.com/STIXProject/python-stix.git
|
||||||
$SUDO_WWW git clone https://github.com/CybOXProject/mixbox.git
|
$SUDO_WWW git clone https://github.com/CybOXProject/mixbox.git
|
||||||
|
|
||||||
|
mkdir /var/www/.cache
|
||||||
|
chown www-data:www-data /var/www/.cache
|
||||||
|
|
||||||
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
cd $PATH_TO_MISP/app/files/scripts/python-stix
|
||||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install .
|
||||||
|
|
||||||
|
@ -255,6 +265,7 @@ function installMISPonTsurugi() {
|
||||||
chown www-data:www-data misp-dashboard
|
chown www-data:www-data misp-dashboard
|
||||||
$SUDO_WWW git clone https://github.com/MISP/misp-dashboard.git
|
$SUDO_WWW git clone https://github.com/MISP/misp-dashboard.git
|
||||||
cd misp-dashboard
|
cd misp-dashboard
|
||||||
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install zmq
|
||||||
/var/www/misp-dashboard/install_dependencies.sh
|
/var/www/misp-dashboard/install_dependencies.sh
|
||||||
sed -i "s/^host\ =\ localhost/host\ =\ 0.0.0.0/g" /var/www/misp-dashboard/config/config.cfg
|
sed -i "s/^host\ =\ localhost/host\ =\ 0.0.0.0/g" /var/www/misp-dashboard/config/config.cfg
|
||||||
sed -i -e '$i \sudo -u www-data bash /var/www/misp-dashboard/start_all.sh\n' /etc/rc.local
|
sed -i -e '$i \sudo -u www-data bash /var/www/misp-dashboard/start_all.sh\n' /etc/rc.local
|
||||||
|
@ -513,7 +524,7 @@ function installMISPonTsurugi() {
|
||||||
# pip3 install
|
# pip3 install
|
||||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install -I -r REQUIREMENTS
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install -I -r REQUIREMENTS
|
||||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install -I .
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install -I .
|
||||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install maec lief python-magic wand yara
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install maec python-magic wand lief yara-python
|
||||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install git+https://github.com/kbandla/pydeep.git
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install git+https://github.com/kbandla/pydeep.git
|
||||||
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install stix2
|
$SUDO_WWW $PATH_TO_MISP/venv/bin/pip install stix2
|
||||||
gem install pygments.rb
|
gem install pygments.rb
|
||||||
|
|
|
@ -0,0 +1,37 @@
|
||||||
|
# INSTALLATION INSTRUCTIONS
|
||||||
|
## for Tsurugi Linux
|
||||||
|
# 0/ Quick MISP Instance on Tsurugi Linux - Status
|
||||||
|
|
||||||
|
This has been tested by @SteveClement on 20181105
|
||||||
|
|
||||||
|
# 1/ Prepare Tsurugi with a MISP User
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
# openssh-server
|
||||||
|
|
||||||
|
It seems there are issues with the **openssh-server** package, thus we need to reconfigure to re-create the keys. (Only if ssh is NOT working)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo update-rc.d -f ssh remove
|
||||||
|
sudo update-rc.d -f ssh defaults
|
||||||
|
sudo dpkg-reconfigure openssh-server
|
||||||
|
sudo systemctl restart ssh
|
||||||
|
```
|
||||||
|
|
||||||
|
If you installed Tsurugi to your disk, the locale is a little all over the place.
|
||||||
|
We assume **en_US** to be default unless you know what you're doing, go with that default.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sudo sed -i 's/ja_JP/en_US/g' /etc/default/locale
|
||||||
|
sudo sed -i 's/ja_JP.UTF/# ja_JP.UTF/g' /etc/locale.gen
|
||||||
|
sudo dpkg-reconfigure locales
|
||||||
|
```
|
||||||
|
|
||||||
|
To install MISP on Tsurugi copy paste this in your r00t shell:
|
||||||
|
```bash
|
||||||
|
wget -O /tmp/misp-tsurugi.sh https://raw.githubusercontent.com/MISP/MISP/2.4/INSTALL/xINSTALL.tsurugi.txt && bash /tmp/misp-tsurugi.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
!!! warning
|
||||||
|
Please read the installer script before randomly doing the above.
|
||||||
|
The script is tested on a plain vanilla Tsurugi Linux Boot CD and installs quite a few dependencies.
|
|
@ -77,6 +77,7 @@ nav:
|
||||||
- 'Centos 7': 'xINSTALL.centos7.md'
|
- 'Centos 7': 'xINSTALL.centos7.md'
|
||||||
- 'Debian testing': 'xINSTALL.debian_testing.md'
|
- 'Debian testing': 'xINSTALL.debian_testing.md'
|
||||||
- 'Debian 9 \w postgresql': 'xINSTALL.debian9-postgresql.md'
|
- 'Debian 9 \w postgresql': 'xINSTALL.debian9-postgresql.md'
|
||||||
|
- 'Tsurugi Linux': 'INSTALL.tsurugi.md'
|
||||||
- 'OpenBSD 6.4': 'xINSTALL.OpenBSD.md'
|
- 'OpenBSD 6.4': 'xINSTALL.OpenBSD.md'
|
||||||
- 'Redhat Enterprise Linux 7.6 (BETA)': 'xINSTALL.rhel7.md'
|
- 'Redhat Enterprise Linux 7.6 (BETA)': 'xINSTALL.rhel7.md'
|
||||||
- Config Guides:
|
- Config Guides:
|
||||||
|
|
Loading…
Reference in New Issue