Ape in Progress

An approaching holiday forced me to consider how I’ll mess about with Clojure without my desktop handy. A quick search found this: http://www.clojuregeek.com/2015/07/15/turning-a-chrome-book-into-a-clojure-book I have previously had Linux running via Crouton, but the Chromebook was accidentally taken out of Developer Mode, losing the install. As the Chromebook is fairly functional anyway, I’ve never been inclined to install again. The nitrous.io service (no longer operational) sounded great, and reminded me that I had a Cloud9 account. A little more googling and I found this:

https://gist.github.com/vothane/6678578

The instructions worked all the way up until lein repl, which timed out repeatedly. After logging into Cloud9, I undertook the steps on the gist:

  1. Create new blank Ubuntu workspace
  2. Shift focus to the workspace’s console at bottom of screen (F6 to toggle if it’s not visible)
  3. cd /bin
  4. sudo wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
  5. sudo chmod 755 lein
  6. export LEIN_JVM_OPTS="-Duser.home=$HOME"
  7. cd ~/workspace
  8. lein deps
  9. lein new scratch-project
  10. cd scratch-project
  11. lein repl

To make the repl connection timeout less frequently, I added :timeout 120000 to the :repl-options in the project’s project.clj file to extend the timeout period to 120 seconds (default is 30):

I’ll be looking at installing vim-fireplace next, which will give me pretty much all I need for some Clojure tinkering when away from home.