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:
- Create new blank Ubuntu workspace
- Shift focus to the workspace’s console at bottom of screen (F6 to toggle if it’s not visible)
cd /bin
sudo wget https://raw.github.com/technomancy/leiningen/stable/bin/lein
sudo chmod 755 lein
export LEIN_JVM_OPTS="-Duser.home=$HOME"
cd ~/workspace
lein deps
lein new scratch-project
cd scratch-project
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.