Created
February 2, 2014 20:36
-
-
Save wyanez/8774533 to your computer and use it in GitHub Desktop.
Instalación del Ambiente LAMP en Ubuntu 13.10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instalación del Ambiente LAMP en Ubuntu 13.10 | |
# William Yanez - [email protected] - Febrero 2014 | |
# | |
#Git | |
echo " *** Instalando Git ***" | |
aptitude install -y git git-gui gitk git-flow | |
#Apache2 | |
echo " *** Instalando Apache ***" | |
aptitude install -y apache2 apache2-doc | |
#Php5 | |
echo " *** Instalando Php5 ***" | |
aptitude install -y php5 php5-cli php5-common php5-dev php5-gd | |
aptitude install -y php5-mysql php5-pgsql php5-sqlite | |
aptitude install -y php5-json php5-mcrypt php5-intl | |
#MySQL | |
aptitude install -y mysql-server mysql-workbench phpmyadmin | |
#Postgres 9.1 y pgAdmin | |
echo " *** Instalando Postgres 9.1 ***" | |
aptitude install -y postgresql-9.1 postgresql-contrib-9.1 postgresql-doc-9.1 postgresql-server-dev-9.1 | |
aptitude install -y pgadmin3 | |
su postgres -c "psql template1 -c \"ALTER USER postgres WITH PASSWORD '123456';\"" | |
echo "*** ATENCION: Actualizado el usuario postgres con password 123456 ***" | |
#Composer para php5 | |
echo " *** Instalando Composer..." | |
aptitude install -y curl | |
curl -sS https://getcomposer.org/installer | php | |
mv composer.phar /usr/local/bin/composer | |
composer --version | |
#zftool | |
echo " *** Instalando ZF2 Tool (zftool.phar)" | |
wget http://packages.zendframework.com/zftool.phar | |
mv zftool.phar /usr/local/bin/zftool.phar | |
chmod a+x /usr/local/bin/zftool.phar | |
zftool.phar --version | |
#Editor Sublime Text2 | |
COUNT=$(dpkg -l | grep sublime-text | wc -l) | |
if [ $COUNT -eq 0 ]; then | |
echo ">>> Instalando Editor SublimeText 2" | |
add-apt-repository -y ppa:webupd8team/sublime-text-2 | |
apt-get update | |
apt-get install -y sublime-text | |
else | |
echo "Editor SublimeText2 ya instalado..." | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment