Setting Up SBT on Ubuntu

So I have had to re-install my OS several times over the past month mainly due to my impatience (installing 11.10 beta and not having it working properly) and I have found that my SBT configurations generally evaporate with every re-installation so I wrote a little script to automate the whole process. A bit like my previous get Scala script so once again just copy and paste this into a text file, make it executable with chmod +x <filename> and run it

#!/bin/bash

cd ~

echo --------------------------------------------------------------------------------------------
echo - Getting SBT Launcher
echo --------------------------------------------------------------------------------------------
wget http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-tools.sbt/sbt-launch/0.11.0/sbt-launch.jar

printf 'java -Xmx512M -jar `dirname $0`/sbt-launch.jar "$@"' > sbt

chmod +x ./sbt

echo --------------------------------------------
echo - Move sbt and sbt-lauch to share
echo --------------------------------------------

sudo mv sbt /usr/share/sbt
sudo mv sbt /usr/share/sbt-launch.jar

echo --------------------------------------------------------------------------------------------
echo - symlinking sbt and sbt-lauch to /usr/bin/{sbt, sbt-lanch.jar}
echo --------------------------------------------------------------------------------------------
sudo ln -s /usr/share/sbt /usr/bin/sbt
sudo ln -s /usr/share/sbt-launch.jar /usr/bin/sbt-launch.jar

I suppose, when I get time I can make this accept parameters so you can specify the version of SBT you want and the file name you want to use etc but for now this should suffice…
comments welcome.

Installing Scala on Debian Based Systems (e.g Ubuntu)

Having followed instructions from here, which I thought was really easy, I put together a little bash script to do exactly that. And being a sucker for the latest I went with the 2.9.0.1 installation. I am honestly not sure why Ubuntu still has 2.7.7 in its repository. Ubuntu 11.10 (oneiric)  now has scala 2.9.x so you may want to use that instead of this script but if you want to keep up to date with the latest Scala release then:

Simply copy this and paste into a file, name it whatever you want, and make it executable with chmod +x

#!/bin/bash

cd ~

echo --------------------------------------------------------------------------------------------
echo - Getting Scala 2.9.0.1
echo --------------------------------------------------------------------------------------------
wget http://www.scala-lang.org/downloads/distrib/files/scala-2.9.0.1.tgz

echo --------------------------------------------------------------------------------------------
echo - Decompressing
echo --------------------------------------------------------------------------------------------
tar zxf scala-2.9.0.1.tgz

echo --------------------------------------------------------------------------------------------
echo - moving scala to /usr/share/scala
echo --------------------------------------------------------------------------------------------
sudo mv scala-2.9.0.1 /usr/share/scala

echo --------------------------------------------------------------------------------------------
echo - Symlinking executables
echo --------------------------------------------------------------------------------------------
sudo ln -s /usr/share/scala/bin/scala /usr/bin/scala
sudo ln -s /usr/share/scala/bin/scalac /usr/bin/scalac
sudo ln -s /usr/share/scala/bin/fsc /usr/bin/fsc
sudo ln -s /usr/share/scala/bin/sbaz /usr/bin/sbaz
sudo ln -s /usr/share/scala/bin/sbaz-setup /usr/bin/sbaz-setup
sudo ln -s /usr/share/scala/bin/scaladoc /usr/bin/scaladoc
sudo ln -s /usr/share/scala/bin/scalap /usr/bin/scalap

LyX

So on recommendations I have installed LyX. I am actually writing this on LyX now. I just thought I should post my thoughts on this programme.
I am not sure why I had not tried this first, it is mainly a WYSISYG editor that outputs LaTeX source or any other LaTeX-like source code for that matter. So you can type documents up as you would in a normal text editor and then not have to worry about all that LaTeX markup that you need to make it look like it should because there are a myriad of buttons you can use for styling.
I will start first with the interface. It seems very simple to use very straight forward. With the version I am using 1.6.7, I have a choice of two interfaces “Default” and “Classic” I noticed only a few differences between where menu items were placed and the toolbar buttons.
The best thing about this is programme is that you can easily use it to learn a lot more about LaTeX mark up just by being productive, this I like.
The insert command also gives you a drop down of almost everything you would need to insert in a document, from citations to images, labels to index entries unless you’re doing some very custom layouts and so on chances are that LyX will probably have what you need as a simple menu item. Then again I haven’t been using LaTeX long enough to be sure about this.
I don’t think I can give a very comprehensive review as I installed and only started using it this evening, but what I think stands it apart from every other editor I have tried is the version control that comes with it. I am not sure what backend manages this yet as I have not delved deeply into it but my first attempt at an “initial commit” failed. I will have to look into this further.
You can also split your screen between the WYSIWIG view and the source where you see valid LyX/LaTeX source being generated as you put your document together as though it were a full blown word processor.
My first impressions of this is that I love it and it is a strong contender to LaTeXilla, which I installed and have been using till now. I will give this one a try this week and see how it works for me. I have to re-iterate though that the good thing about open source and these things in general is that you don’t have to choose one as you have not shelled out tonnes of money for a license…