Skip to content

Instantly share code, notes, and snippets.

@BransonGitomeh
Last active November 5, 2016 11:15
Show Gist options
  • Save BransonGitomeh/c208c30120c377e5d81c493f29252333 to your computer and use it in GitHub Desktop.
Save BransonGitomeh/c208c30120c377e5d81c493f29252333 to your computer and use it in GitHub Desktop.
installs latest cassandra , java8 , latest node
# run chmod +x ./setup-droplet.sh to make the file executable
#install java8 and latest stable cassandra then install latest node
#kill the started cassandra process
#open the cassandra.yaml file and replace *localhost* with the server's ip address
sudo add-apt-repository ppa:webupd8team/java && sudo apt-get update && sudo apt-get install oracle-java8-installer && sudo apt-get install oracle-java8-set-default && echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list && curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add - && sudo apt-get update && sudo apt-get install cassandra && curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - && sudo apt-get install -y nodejs && ps -ef | grep cassandra | grep -v grep | awk '{print $2}' | xargs kill && ex -s +%s/localhost/192.241.151.182/ge -cwq /etc/cassandra/cassandra.yaml && ex -s +%s/12.0.0.17/192.241.151.182/ge -cwq /etc/cassandra/cassandra.yaml
@BransonGitomeh
Copy link
Author

i use this a lot on Ubuntu 14.04
works like magic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment