Last active
October 5, 2015 07:57
-
-
Save dchapman1988/2774919 to your computer and use it in GitHub Desktop.
Just some common apt packages needed for RoR development
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
#!/bin/bash | |
# Version: 1.0.1 | |
# Author: David Chapman | |
# Description: A quick script to get a Ubuntu machine up and running. | |
# The commands we'll be using are here | |
CURL="curl" | |
APT="apt-get" | |
# Checks that the system has apt | |
if ! $APT -v>/dev/null; then | |
echo "You must have apt installed for this script to work." | |
exit 1; | |
fi | |
# Checks if curl is installed, installs it if not | |
if ! $CURL --version>/dev/null; then | |
echo "Installing curl..." | |
sudo $APT install curl -y | |
fi | |
# Make sure you do this from time to time: | |
sudo $APT update && sudo $APT upgrade -y | |
# Here are the actual packages (feel free to contribute): | |
sudo $APT install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev nodejs libssl-dev libreadline6-dev libreadline-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev ncurses-term automake libtool bison subversion libcurl4-openssl-dev mysql-client mysql-server postgresql postgresql-contrib imagemagick libmagickwand-dev apache2-mpm-prefork apache2-prefork-dev libapr1-dev libaprutil1-dev redis-server vim -y | |
# Make default editor vim :) | |
echo "export EDITOR=vim" >> ~/.bashrc | |
# Install RVM | |
$CURL -L https://get.rvm.io | bash -s stable --rails --autolibs=enabled | |
# Source rvm | |
source ~/.rvm/scripts/rvm | |
# Source .bashrc | |
source ~/.bashrc | |
# Reload RVM | |
rvm reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment