Skip to content

Instantly share code, notes, and snippets.

@karminski
Last active January 18, 2016 15:27
Show Gist options
  • Save karminski/9448236 to your computer and use it in GitHub Desktop.
Save karminski/9448236 to your computer and use it in GitHub Desktop.
ubuntu develop environment deploy script
#!/bin/bash
# Ubuntu 12.04 precise software env init shell scripts.
# @author karminski <code.karminski@outlook.com>
# @version 140729:2
#init dir
sudo mkdir /home/apps
cd /home/apps
# install python-software-properties
sudo aptitude install python-software-properties
# add apt repository
sudo add-apt-repository ppa:ondrej/php5
sudo add-apt-repository ppa:nginx/stable
sudo add-apt-repository ppa:chris-lea/node.js
# update
sudo aptitude update
# install git, php, nginx, mariadb and some utils
sudo aptitude install systemtap systemtap-sdt-dev tcl default-jdk libreadline6 libreadline6-dev libexpat1-dev gettext libz-dev libssl-dev build-essential libncurses5-dev libssl-dev autoconf automake cmake m4 unixodbc unixodbc-dev freeglut3-dev libwxgtk2.8-dev xsltproc fop tk8.5 git-core git nmon htop iftop iotop nginx build-essential php7.0-cli php7.0-common php7.0-curl php7.0-dev php7.0-fpm php7.0-gd php7.0-intl php7.0-json php7.0-mcrypt php7.0-mysql php7.0-opcache php7.0-pgsql php7.0-readline php7.0-tidy php7.0-xmlrpc php7.0-xsl pkg-php-tools
sudo pecl install pecl_http
wget http://www.lua.org/ftp/lua-5.2.3.tar.gz
wget http://download.redis.io/releases/redis-2.8.6.tar.gz
wget https://github.com/nicolasff/phpredis/archive/2.2.4.tar.gz
wget http://www.erlang.org/download/otp_src_17.0-rc2.tar.gz
tar zxf lua-5.2.3.tar.gz
cd lua-5.2.3
make linux && make install
cd /home/apps
cd phpredis-2.2.4
phpize
./configure
make -j && make install
cd /home/apps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment