Install OS: Difference between revisions

From MyLVS
Jump to navigation Jump to search
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:


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


==Install==
==Install==
{| style="width: 60%;"
{| style="width: 60%;"
|style="width:20%; vertical-align: top;"|
|style="width:20%; vertical-align: top;"|
Sample for Debian 8:<br>
Sample for Debian 8.1 (Jessie) netinst amd64:<br>
The installation goes quick and easy, it can be <br>
The installation goes quick and easy, it can be <br>
done in less then 10 minutes for experienced users
done in less then 10 minutes for experienced users
*Choose Default installation
*Choose Install
**Choose package '''Web server'''
**Software packages:
**Choose package '''SSh server'''
***Choose package '''SSH server'''
***Choose package '''Standard utilities'''


|style="width:33%; vertical-align: top;"|
|style="width:33%; vertical-align: top;"|
Line 18: Line 19:


=Packages=
=Packages=
On Debian always consider to update your repository first before you begin
root@mylvs01:/# '''apt-get update'''
==MySQL==
==MySQL==
  root@mylvs01:/# '''apt-get install mysql-server-5.5'''
Note: On Debian Jessie the package is called mysql-server-5.5 while on Debian Stretch the package mysql-server is used.
  root@mylvs01:/# '''apt-get install mysql-server'''
 
==Perl Core==
==Perl Core==
core modules
core modules
  root@mylvs01:/# '''apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl'''
  root@mylvs01:/# '''apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl libnet-whois-raw-perl libsoap-lite-perl '''


libnet-whois-raw-perl


for monitoring purposes:
for monitoring purposes:
  root@mylvs01:/# '''apt-get install nagios-plugins-standard nagios-nrpe-plugin'''
  root@mylvs01:/# '''apt-get install nagios-plugins-standard nagios-nrpe-plugin'''


other
other required packages
  root@mylvs01:/# '''apt-get install libdatetime-perl'''
  root@mylvs01:/# '''apt-get install ipvsadm libdatetime-perl libnet-snmp-perl libxml-simple-perl libnet-ip-perl sudo nmap'''


==Apache Perl CGI==
==Apache Perl CGI==
  root@mylvs01:/# '''apt-get install libapache2-mod-fcgid libcgi-fast-perl'''  
  root@mylvs01:/# '''apt-get install apache2 libapache2-mod-fcgid libcgi-fast-perl'''  
  root@mylvs01:/# '''apt-get install libcgi-pm-perl libcgi-session-perl'''  
  root@mylvs01:/# '''apt-get install libcgi-pm-perl libcgi-session-perl'''  
  root@mylvs01:/# '''apt-get install libfcgi-perl libfcgi0ldbl'''
  root@mylvs01:/# '''apt-get install libfcgi-perl libfcgi0ldbl'''
Line 40: Line 46:
===Enable CGI===
===Enable CGI===
  root@mylvs01:/# '''a2enmod cgi'''
  root@mylvs01:/# '''a2enmod cgi'''
 
  root@mylvs01:/# '''service apache2 restart'''
===Apache additional===
  root@mylvs01:/# '''apt-get install libnet-snmp-perl libxml-simple-perl'''


=SUDO=
=SUDO=
Sudo is required to run commands from apache
Edit sudo:
  apt-get install sudo
  root@mylvs01:/# '''visudo -f /etc/sudoers'''
*visudo -f /etc/sudoers
Add to sudo:
  www-data ALL=NOPASSWD: /sbin/ipvsadm
  www-data ALL=NOPASSWD: /sbin/ipvsadm
  www-data ALL=NOPASSWD: /usr/bin/nmap
  www-data ALL=NOPASSWD: /usr/bin/nmap
Line 60: Line 64:
  www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkrestore.sh
  www-data ALL=NOPASSWD: /var/www/mylvs/scripts/mkrestore.sh
  www-data ALL=NOPASSWD: /var/www/mylvs/scripts/reboot.sh
  www-data ALL=NOPASSWD: /var/www/mylvs/scripts/reboot.sh
Note: The above commands represents all possible myLVS functions even if the scripts are not setup at this time.


=Where to go next=
=Where to go next=
<br>
<br>
*Go here: [[Setup MyLVS]]
*Go here: [[Setup MyLVS]]

Latest revision as of 19:54, 25 July 2017

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

Packages

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

root@mylvs01:/# 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.

root@mylvs01:/# apt-get install mysql-server

Perl Core

core modules

root@mylvs01:/# apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl libnet-whois-raw-perl libsoap-lite-perl 


for monitoring purposes:

root@mylvs01:/# apt-get install nagios-plugins-standard nagios-nrpe-plugin

other required packages

root@mylvs01:/# apt-get install ipvsadm libdatetime-perl libnet-snmp-perl libxml-simple-perl libnet-ip-perl sudo nmap

Apache Perl CGI

root@mylvs01:/# apt-get install apache2 libapache2-mod-fcgid libcgi-fast-perl 
root@mylvs01:/# apt-get install libcgi-pm-perl libcgi-session-perl 
root@mylvs01:/# apt-get install libfcgi-perl libfcgi0ldbl


Enable CGI

root@mylvs01:/# a2enmod cgi
root@mylvs01:/# service apache2 restart

SUDO

Edit sudo:

root@mylvs01:/# 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