-
Notifications
You must be signed in to change notification settings - Fork 12
/
installer.sh
executable file
·107 lines (93 loc) · 3.52 KB
/
installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# General Tools
sudo apt-get update
sudo apt-get install -y xchat curl
sudo apt-get install -y ubuntu-restricted-extras vlc
sudo apt-get install -y libcurl3 gthumb trash-cli
sudo apt-get install -y mlocate && sudo updatedb
sudo apt-get install -y lm-sensors
# Apache and PHP
sudo apt-get install -y apache2 php5-mysql libapache2-mod-php5 mysql-client-5.5 mysql-server php-pear mailutils postfix
sudo apt-get install -y php5-xsl php5-gd php5-curl php5-json
echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn
sudo service apache2 restart
# Programming tools
sudo pear channel-update pear.php.net
sudo pear install PHP_Debug
# Git
sudo apt-get install -y git-core
git config --global color.branch auto
git config --global color.diff auto
git config --global color.status auto
git config --global user.name "Juampy"
git config --global user.email juampy72@gmail.com
git config --global alias.st status
git config --global alias.duff 'diff --cached'
wget https://raw.githubusercontent.com/git/git/8976500cbbb13270398d3b3e07a17b8cc7bff43f/contrib/completion/git-prompt.sh
mv git-prompt.sh ~/.git-prompt.sh
cat <<EOT>> ~/.bashrc
# Show the current Git branch in the command prompt.
source ~/.git-prompt.sh
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
EOT
# PHP tools
sudo apt-get install -y php5-dev
sudo pear install -y PHP_CodeSniffer-1.3.0RC1
sudo pear channel-discover pear.phing.info
sudo pear install phing/phing
sudo cp ~/projects/Ubuntu-Installer/php-settings/apache/* /etc/php5/apache2/conf.d/
sudo cp ~/projects/Ubuntu-Installer/php-settings/cli/* /etc/php5/cli/conf.d/
sudo apt-get install php5-xdebug
# PECL & extensions
sudo apt-get install php-pear php5-dev
sudo pecl install uploadprogress
sudo pecl install oauth
sudo pecl install -f xhprof
echo 'extension=oauth.so' | sudo tee -a /etc/php5/apache2/conf.d/settings.ini
echo 'extension=oauth.so' | sudo tee -a /etc/php5/cli/conf.d/settings.ini
echo 'extension=xhprof.so' | sudo tee -a /etc/php5/apache2/conf.d/settings.ini
echo 'extension=xhprof.so' | sudo tee -a /etc/php5/cli/conf.d/settings.ini
echo 'extension=uploadprogress.so' | sudo tee -a /etc/php5/apache2/conf.d/settings.ini
sudo service apache2 restart
# phpunit
wget https://phar.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
phpunit --version
# Editing Tools
sudo apt-get -y install vim vim-gnome exuberant-ctags
cp ~/projects/Ubuntu-Installer/.ctags ~/
curl http://j.mp/spf13-vim3 -L -o - | sh
cp ~/projects/Ubuntu-Installer/.vimrc.local ~/
cp ~/projects/Ubuntu-Installer/.vimrc.before.local ~/
# Composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
# Drush
git clone https://github.com/drush-ops/drush.git
chmod u+x drush/drush
sudo mv drush /usr/share/
sudo ln -s /usr/share/drush/drush /usr/bin/drush
drush status
# Drupal Console
curl https://drupalconsole.com/installer -L -o drupal.phar
sudo mv drupal.phar /usr/local/bin/drupal
chmod +x /usr/local/bin/drupal
drupal
# Apache Solr
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java7-installer
wget http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2.tgz
mkdir ~/software
tar -xvzf apache-solr-3.6.2.tgz -C ~/software/
# Hub for Github
sudo apt-get install golang
git clone https://github.com/github/hub.git
cd hub
./script/build
cp hub /usr/local/bin/
# Compass
sudo apt-get -y install ruby
sudo gem install compass
# Virtual Box IE test machines (needs VB set up first)
# curl -s https://raw.github.com/xdissent/ievms/master/ievms.sh | bash