additional_packages
additional_packages(){
clear
f_banner
echo -e "\e[34m---------------------------------------------------------------------------------------------------------\e[00m"
echo -e "\e[93m[+]\e[00m Installing Additional Packages"
echo -e "\e[34m---------------------------------------------------------------------------------------------------------\e[00m"
echo ""
echo "Install tree............."; apt-get install tree
echo "Install Python-MySQLdb..."; apt-get install python-mysqldb
echo "Install WSGI............."; apt-get install libapache2-mod-wsgi
echo "Install PIP.............."; apt-get install python-pip
echo "Install Vim.............."; apt-get install vim
echo "Install Nano............."; apt-get install nano
echo "Install pear............."; apt-get install php-pear
echo "Install DebSums.........."; apt-get install debsums
echo "Install apt-show-versions"; apt-get install apt-show-versions
echo "Install PHPUnit..........";
pear config-set auto_discover 1
mv phpunit-patched /usr/share/phpunit
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php5/apache2/php.ini
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php5/cli/php.ini
service apache2 restart
say_done
}
La función additional_packages instala algunos paquetes que pueden asistir al desarrollador y al administrador de sistemas, otros son para cuestiones de seguridad. Vamos a ver en detalle cada uno.
echo "Install tree............."; apt-get install tree
Nos da una visión estructurada de los archivos y directorios.
echo "Install Python-MySQLdb..."; apt-get install python-mysqldb
Interfaz de Python para MySQL
echo "Install PIP.............."; apt-get install python-pip
Para instalación de módulos de Python
echo "Install pear............."; apt-get install php-pear
Framework y sistema de distribución para componentes de PHP reutilizables.
echo "Install DebSums.........."; apt-get install debsums
Revisa el checksum de paquetes instalados
echo "Install apt-show-versions"; apt-get install apt-show-versions
Muestra las versiones de los paquetes
echo "Install PHPUnit..........";
pear config-set auto_discover 1
mv phpunit-patched /usr/share/phpunit
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php5/apache2/php.ini
echo include_path = ".:/usr/share/phpunit:/usr/share/phpunit/PHPUnit" >> /etc/php5/cli/php.ini
PHPUnit es un framework de pruebas para detectar fallas.