Install Linux: Difference between revisions

From MyLVS
Jump to navigation Jump to search
No edit summary
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Install=
This project is based on Debain 8 (Jessie). <br>
Please get the installation medium to install






==Install==
{| style="width: 60%;"
|style="width:20%; vertical-align: top;"|
Sample for Debian 8:
*Default installation
**Choose package '''Web server'''
**Choose package '''SSh server'''


 
|style="width:33%; vertical-align: top;"|
 
[[image:00-00-00-Debian.png|450px|left]]
 
{| border="0" cellpadding="2" width="500" align="left"
|- valign="top" align="left"
! width="45%" | [[File:01-01-01-Add-Web01.png|400px|thumb|left|List of all server]]
! width="10%" | &nbsp;
! width="45%" |  [[File:01-01-02-Confirm.png|380px|thumb|left|Detailed service view]]
|}
<br><br>
{| border="0" cellpadding="2" width="500" align="left"
|- valign="top" align="left"
! width="45%" |  [[File:01-01-03-ServerMain.png|400px|thumb|left|List of all nodes]]
! width="10%" | &nbsp;
! width="45%" | [[File:01-02-01-Copy-Web01.png|400px|thumb|left|Log view]]
|}
|}


=Packages=
==MySQL==
apt-get install mysql-server-5.5
==Perl Core==
core modules
apt-get install libnet-snmp-perl libxml-simple-perl


{| border="0" cellpadding="2" width="500" align="left"
==Apache Perl CGI==
|- valign="top" align="left"
apt-get install libapache2-mod-fcgid libcgi-fast-perl
! width="45%" | [[File:01-01-01-Add-Web01.png|400px|thumb|left|List of all server]]
  apt-get install libcgi-pm-perl libcgi-session-perl
! width="10%" | &nbsp;
apt-get install libfcgi-perl libfcgi0ldbl
! width="45%" | [[File:01-01-02-Confirm.png|380px|thumb|left|Detailed service view]]
|}
<br><br>
 


{| border="0" cellpadding="2" width="500" align="left"
|- valign="top" align="left"
! width="45%" |
Bla
Bla
<br>
! width="10%" | &nbsp;
! width="45%" |  [[File:01-01-02-Confirm.png|380px|thumb|left|Detailed service view]]
|}


<br><br><br>
===Enable CGI===
a2enmod cgi


{| border="0" cellpadding="2" width="500" align="left"
===Apache additional===
|- valign="top" align="left"
apt-get install libnet-snmp-perl libxml-simple-perl
! width="45%" |


<br><br><br>


Software selection:
*Web server
*SSh server
*Standard system utilities


! width="10%" | &nbsp;
=SUDO=
! width="45%" | [[File:00-00-00-Debian.png|380px|thumb|left|Bla view]]
Sudo is required to run commands from apache
|-
apt-get install sudo
|}
*visudo -f /etc/sudoers
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/script/mkbackup.sh
www-data ALL=NOPASSWD: /var/www/mylvs/script/mkbackupcomment.sh
www-data ALL=NOPASSWD: /usr/bin/mysqldump
www-data ALL=NOPASSWD: /usr/bin/mysql


<br><br><br>
Note: The above commands represents all possible myLVS functions even if the scripts are not setup at this time.
<br><br><br>
 
=Next=
apt-get install mysql-server-5.5
apt-get install libapache2-mod-fcgid libcgi-fast-perl
apt-get install libcgi-pm-perl libcgi-session-perl
apt-get install libfcgi-perl libfcgi0ldbl
apt-get install libnet-snmp-perl libxml-simple-perl
apt-get install sudo

Latest revision as of 17:11, 14 June 2015


Install

Sample for Debian 8:

  • Default installation
    • Choose package Web server
    • Choose package SSh server

Packages

MySQL

apt-get install mysql-server-5.5

Perl Core

core modules

apt-get install libnet-snmp-perl libxml-simple-perl

Apache Perl CGI

apt-get install libapache2-mod-fcgid libcgi-fast-perl 
apt-get install libcgi-pm-perl libcgi-session-perl 
apt-get install libfcgi-perl libfcgi0ldbl


Enable CGI

a2enmod cgi

Apache additional

apt-get install libnet-snmp-perl libxml-simple-perl


SUDO

Sudo is required to run commands from apache

apt-get install sudo
  • visudo -f /etc/sudoers
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/script/mkbackup.sh
www-data ALL=NOPASSWD: /var/www/mylvs/script/mkbackupcomment.sh
www-data ALL=NOPASSWD: /usr/bin/mysqldump
www-data ALL=NOPASSWD: /usr/bin/mysql

Note: The above commands represents all possible myLVS functions even if the scripts are not setup at this time.