Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:btilford/setup-scripts

Conflicts:
	android.sh
  • Loading branch information...
commit f11aaff5bc083013b036f1c1514622c93f84b959 2 parents cdbb2ff + d8c1473
@btilford authored
View
1  .gitignore
@@ -0,0 +1 @@
+*~
View
2  android.sh
@@ -82,7 +82,7 @@ sudo update-alternatives --install /usr/bin/zipalign zipalign "/opt/android/late
sudo update-alternatives --install /usr/bin/zipalign zipalign "/opt/android/sdk-$version/android-sdk-linux/tools/zipalign" 2
-echo "Update sdk? [Y/N] Y:"
+echo "Update sdk? (this takes a while) [Y/N] Y:"
read updateSdk
if [ "$updateSdk" != "N" ]
then
View
7 essentials.sh
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+sudo apt-get install git guake multitail
+. google-chrome.sh
+mkdir ~/work
+
+. intellij.sh
View
25 google-chrome.sh
@@ -0,0 +1,25 @@
+#! /bin/bash
+
+defaultChannel="stable"
+echo "Choose a channel [dev,beta,stable] default stable"
+read channel
+url="https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
+
+case "$channel" in
+ "stable")
+ url="https://dl-ssl.google.com/linux/direct/google-chrome-stable_current_amd64.deb"
+ ;;
+ "beta")
+ url="http://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb"
+ ;;
+ "dev")
+ url="http://dl.google.com/linux/direct/google-chrome-unstable_current_amd64.deb"
+ ;;
+esac
+echo "Downloading google-chrome $channel channel from $url"
+wget $url
+debFile=${url##*/}
+echo "Installing $debFile"
+sudo apt-get install libnspr4-0d libcurl3
+sudo dpkg -i $debFile
+rm $debFile
View
38 intellij.sh
@@ -0,0 +1,38 @@
+#! /bin/bash
+
+
+echo "Enter intellij version or hit enter for 10.5.1"
+read version
+if [ "$version" == "" ]
+then
+ version="10.5.1"
+fi
+
+dl="ideaIU-$version.tar.gz"
+url="http://download-ln.jetbrains.com/idea/$dl"
+
+echo "Setting up intellij $version from $url"
+mkdir ~/apps
+mkdir ~/apps/idea
+cd ~/apps/idea
+wget "$url"
+mkdir ~/apps/idea/tmp
+tar xzf "$dl" -C ~/apps/idea/tmp
+rm "$dl"
+dir=~/apps/idea/tmp
+for f in `find $dir -name 'idea-IU-*'`
+do
+ target=`echo $f | sed 's/idea-IU-\(.*\)/idea-/'`$version
+ mv $f $target
+ mv $target ~/apps/idea
+done
+rm -Rf ~/apps/idea/tmp/
+ln -s "/home/$USER/apps/idea/idea-$version" /home/$USER/apps/idea/latest
+
+sudo update-alternatives --install /usr/bin/idea idea "/home/$USER/apps/idea/latest/bin/idea.sh" 1
+sudo update-alternatives --install /usr/bin/idea idea "/home/$USER/apps/idea/idea-$version/bin/idea.sh" 2
+
+
+
+
+
View
24 play.sh
@@ -0,0 +1,24 @@
+#! /bin/bash
+
+
+defaultVersion="1.2.2"
+echo "Enter play version or hit enter for $defaultVersion"
+read version
+if [ "$version" == "" ]
+then
+ version=$defaultVersion
+fi
+
+dl="play-$version.zip"
+url="http://download.playframework.org/releases/$dl"
+
+echo "Setting up maven $version from $url"
+sudo mkdir /opt/play
+cd /opt/play
+sudo wget "$url"
+sudo unzip "$dl"
+sudo rm "$dl"
+sudo ln -s "/opt/play/play-$version" /opt/play/latest
+
+sudo update-alternatives --install /usr/bin/play play "/opt/maven/latest/play" 1
+sudo update-alternatives --install /usr/bin/play play "/opt/play/play-$version/play" 2
View
23 sbt.sh
@@ -0,0 +1,23 @@
+#! /bin/bash
+
+
+echo "Enter sbt version or hit enter for 0.11.0"
+read version
+if [ "$version" == "" ]
+then
+ version="0.11.0"
+fi
+dl="sbt-launch.jar"
+url="http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/$version/$dl"
+
+echo "Setting up sbt $version from $url"
+sudo mkdir /opt/sbt
+cd /opt/sbt
+sudo wget "$url"
+
+echo "#! /bin/bash
+java -Xmx512M -jar /opt/sbt/sbt-launch.jar $@" | sudo sh -c "cat > /opt/sbt/sbt"
+sudo chmod a+x /opt/sbt/sbt
+
+
+sudo update-alternatives --install /usr/bin/sbt sbt "/opt/sbt/sbt" 1
View
11 setup-lang.sh
@@ -0,0 +1,11 @@
+#! /bin/bash
+
+. java.sh
+. maven.sh
+. scala.sh
+. groovy.sh
+. clojure.sh
+. fantom.sh
+. gosu.sh
+. android.sh
+. sbt.sh
View
12 setup.sh
@@ -1,14 +1,6 @@
#! /bin/bash
-sudo apt-get install git guake
ssh-keygen
-mkdir ~/work
+. essentials.sh
-
-. java.sh
-. maven.sh
-. scala.sh
-. groovy.sh
-. clojure.sh
-. fantom.sh
-. gosu.sh
+. setup-lang.sh
Please sign in to comment.
Something went wrong with that request. Please try again.