Skip to content

Instantly share code, notes, and snippets.

@kpacha
Created April 10, 2015 17:46
Show Gist options
  • Save kpacha/24b536012cd10c329f8e to your computer and use it in GitHub Desktop.
Save kpacha/24b536012cd10c329f8e to your computer and use it in GitHub Desktop.
Provision an up-to-date scala & sbt dev environment
#!/bin/bash
# don't forget to run it as root!!!
apt-get update
apt-get -y install unzip
apt-get -f -y install default-jdk openjdk-7-jdk
mkdir -p /opt
cd /opt
wget -q http://downloads.typesafe.com/scala/2.11.6/scala-2.11.6.deb
dpkg -i scala-2.11.6.deb
scalac -version
wget -q https://dl.bintray.com/sbt/native-packages/sbt/0.13.8/sbt-0.13.8.zip
unzip sbt-0.13.8.zip
ln -s /opt/sbt/bin/sbt /usr/local/bin/sbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment