Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Created July 30, 2012 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasramy/3207869 to your computer and use it in GitHub Desktop.
Save nicolasramy/3207869 to your computer and use it in GitHub Desktop.
Installation script for debian / ubuntu
# First step
apt-get update
apt-get upgrade
# Error
# W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
# W: mdadm: no arrays defined in configuration file.
>> Need a solution to solve this problem
# Install first tools
apt-get install vim htop tree
# Add dotdeb repositories
vim /etc/apt/sources.list
deb http://packages.dotdeb.org squeeze all
deb-src http://packages.dotdeb.org squeeze all
# Get dotdeb Key
cd /tmp
wget http://www.dotdeb.org/dotdeb.gpg
cat dotdeb.gpg | apt-key add -
apt-get update
# Nginx
apt-get install nginx
# Nginx + PHP5-FPM
apt-get install nginx php5-common php5-curl php5-fpm php5-gd php5-imap php5-mcrypt php5-mysql php5-suhosin
# Apache2
apt-get install apache2
# Apache2 + PHP5
apt-get install apache2 libapache2-mod-php5 php5-common php5-curl php5-fpm php5-gd php5-imap php5-mcrypt php5-mysql php5-suhosin
# MySQL
apt-get install mysql-server
# Jenkins
vim /etc/apt/sources.list
deb http://pkg.jenkins-ci.org/debian binary/
cd /tmp
wget http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key
cat jenkins-ci.org.key | apt-key add -
apt-get update
apt-get install jenkins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment