Install OS

From mylvs
Jump to: navigation, search

Introduction

This page with all descriptions are tested with Debian and Ubuntu Linux. The below package selection has been recently tested with Debian Stretch.

Install

Sample for Debian 8.1 (Jessie) netinst amd64:
The installation goes quick and easy, it can be
done in less then 10 minutes for experienced users

  • Choose Install
    • Software packages:
      • Choose package SSH server
      • Choose package Standard utilities
00-00-00-Debian.png

Packages

On Debian always consider to update your repository first before you begin

[email protected]:/# apt-get update

MySQL

Note: On Debian Jessie the package is called mysql-server-5.5 while on Debian Stretch the package mysql-server is used.

[email protected]:/# apt-get install mysql-server

Perl Core

core modules

[email protected]:/# apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl libnet-whois-raw-perl libsoap-lite-perl 


for monitoring purposes:

[email protected]:/# apt-get install nagios-plugins-standard nagios-nrpe-plugin

other required packages

[email protected]:/# apt-get install ipvsadm libdatetime-perl libnet-snmp-perl libxml-simple-perl libnet-ip-perl sudo nmap

Apache Perl CGI

[email protected]:/# apt-get install apache2 libapache2-mod-fcgid libcgi-fast-perl 
[email protected]:/# apt-get install libcgi-pm-perl libcgi-session-perl 
[email protected]:/# apt-get install libfcgi-perl libfcgi0ldbl


Enable CGI

[email protected]:/# a2enmod cgi
[email protected]:/# service apache2 restart

SUDO

Edit sudo:

[email protected]:/# visudo -f /etc/sudoers

Add to sudo:

www-data ALL=NOPASSWD: /sbin/ipvsadm
www-data ALL=NOPASSWD: /usr/bin/nmap
www-data ALL=NOPASSWD: /var/wwwl/mylvs/repl.sh
www-data ALL=NOPASSWD: /usr/local/nagios/libexec/check_nrpe
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkbackup.sh
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkbackupcomment.sh
www-data ALL=NOPASSWD: /usr/bin/mysqldump
www-data ALL=NOPASSWD: /usr/bin/mysql
www-data ALL=NOPASSWD: /bin/echo
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkbackup.sh
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkrestore.sh
www-data ALL=NOPASSWD: /var/www/mylvs/scripts/reboot.sh

Where to go next