Last active
August 29, 2015 13:56
-
-
Save michaelbunch/a99a1122e70495d3180a to your computer and use it in GitHub Desktop.
Ubuntu 13.10 setup commands for install a fresh LAMP development environment.
This file contains 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
#!/bin/bash | |
APTOPTIONS="-y" | |
MYSQLPASS="nopass" | |
echo "--------------------------------------------" | |
echo " Ubuntu Development Environment Bootstraper " | |
echo "--------------------------------------------" | |
echo "-> Preparing APT and Updating Ubuntu ..." | |
sudo apt-get $APTOPTIONS update | |
sudo apt-get $APTOPTIONS upgrade | |
#-------------------------- | |
echo "-> Apache HTTP Server ..." | |
sudo apt-get $APTOPTIONS install apache2 | |
sudo a2enmod rewrite | |
sudo a2enmod ssl | |
sudo service apache2 reload | |
sudo service apache2 restart | |
#-------------------------- | |
echo "-> PHP and extentions ..." | |
sudo apt-get $APTOPTIONS install php5 php5-dev php5-gd php5-json | |
sudo apt-get $APTOPTIONS install php5-curl curl | |
sudo apt-get $APTOPTIONS install php5-mcrypt | |
sudo cp /etc/php5/conf.d/mcrypt.ini /etc/php5/mods-available/ | |
sudo php5enmod mcrypt | |
sudo apt-get $APTOPTIONS install php5-xdebug | |
#-------------------------- | |
echo "-> MySQL Server ..." | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password $MYSQLPASS' | |
sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again password $MYSQLPASS' | |
sudo apt-get $APTOPTIONS install mysql-server php5-mysql | |
#-------------------------- | |
echo "-> Git ..." | |
sudo apt-get $APTOPTIONS install git-core | |
#-------------------------- | |
echo "-> ZSH and Oh-My-ZSH ..." | |
sudo apt-get $APTOPTIONS install zsh | |
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh | |
chsh -s /bin/zsh #Log out/in to take affect | |
#-------------------------- | |
echo "-> Node.js, NPM, and Grunt ..." | |
sudo apt-get $APTOPTIONS install nodejs npm | |
sudo npm install -g grunt-cli | |
sudo ln -s /usr/bin/nodejs /usr/bin/node #Fixes Ubuntu specific Grunt bug. | |
#-------------------------- | |
echo "-> Ruby and Gems ..." | |
sudo apt-get $APTOPTIONS install ruby-full rubygems | |
#-------------------------- | |
echo "-> Composer ..." | |
# From https://getcomposer.org/doc/00-intro.md#globally | |
curl -sS https://getcomposer.org/installer | php | |
sudo mv composer.phar /usr/local/bin/composer | |
#-------------------------- | |
echo "-> OpenShift RHC Client installing ..." | |
sudo gem install rhc | |
rhc setup | |
#-------------------------- | |
echo "-> GUI Tools (Sublime Text 2, Vim, MySQL Workbench) ..." | |
sudo add-apt-repository ppa:webupd8team/sublime-text-2 | |
sudo apt-get update | |
sudo apt-get $APTOPTIONS install sublime-text vim mysql-workbench | |
#-------------------------- | |
echo "-> Manual Tasks (stuff you can't automate) ..." | |
echo "sudo echo \"ServerName 127.0.0.1\" >> /etc/apache2/apache.conf" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For RHC updates run
sudo gem update rhc