Install OS: Difference between revisions
Jump to navigation
Jump to search
(→SUDO) |
|||
Line 20: | Line 20: | ||
=Packages= | =Packages= | ||
On Debian alwasy cosider to update your repository first before you begin | |||
root@mylvs01:/# '''apt-get update''' | |||
==MySQL== | ==MySQL== | ||
root@mylvs01:/# '''apt-get install mysql-server-5.5''' | root@mylvs01:/# '''apt-get install mysql-server-5.5''' |
Revision as of 18:25, 4 September 2015
Introduction
This page with all descriptions are tested with Debian and Ubuntu Linux.
Install
Sample for Debian 8.1 (Jessie) netinst amd64:
|
Packages
On Debian alwasy cosider to update your repository first before you begin
root@mylvs01:/# apt-get update
MySQL
root@mylvs01:/# apt-get install mysql-server-5.5
Perl Core
core modules
root@mylvs01:/# apt-get install libnet-snmp-perl libxml-simple-perl libmail-sendmail-perl libnet-whois-raw-perl
for monitoring purposes:
root@mylvs01:/# apt-get install nagios-plugins-standard nagios-nrpe-plugin
other
root@mylvs01:/# apt-get install ipvsadm libdatetime-perl libnet-snmp-perl libxml-simple-perl sudo
Apache Perl CGI
root@mylvs01:/# apt-get install 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
- Go here: Setup MyLVS