This script below downloads and sets up grails
on your codebox
VM:
#!/bin/bash
# Download and setup grails for Ubuntu
sudo add-apt-repository ppa:groovy-dev/grails
sudo apt-get update
sudo apt-get install grails-ppa
# Add to each bash shell
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> ~/.bashrc
This script can be executed on your machine simply with :
curl "https://gist.githubusercontent.com/AaronO/9778391/raw/grails-setup.sh" | bash
After the script has finished simply open a new shell, and you should have the grails
command and should be good to go.
Now the grails
command will be available and you can run it from the terminal as you are used to :
$ grails