Skip to content

Instantly share code, notes, and snippets.

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 acuppy/bef0938a927384660ac2 to your computer and use it in GitHub Desktop.
Save acuppy/bef0938a927384660ac2 to your computer and use it in GitHub Desktop.
Install Ruby, Imagemagick, Redis-server and Elasticsearch onto the development environment
#!/usr/bin/env bash
cd ~
sudo apt-get update
sudo apt-get install curl wget
# install ruby
curl -sSL https://get.rvm.io | bash -s stable --ruby="2.0.0-p353"
# install imagemagick
sudo apt-get install imagemagick -y
# install Redis
sudo apt-get install redis-server -y
# install java
sudo apt-get install openjdk-7-jre-headless -y
### Expecting the argument for version to represent the elasticsearch version
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-$1.deb
sudo dpkg -i elasticsearch-$1.deb
# start elasticsearch
sudo service elasticsearch start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment