climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [1/2] git commit: CLIMATE-468 - Add helpful links to VM build desktop
Date Tue, 10 Jun 2014 18:15:38 GMT
Repository: climate
Updated Branches:
  refs/heads/master b7ed8f5da -> 8b84418fb

CLIMATE-468 - Add helpful links to VM build desktop

- Add desktop shortcut to the checkout OCW code base.
- Add desktop shortcut for starting up the UI backend. Once this has
  been started you can use the UI by opening Firefox and pointing the
  browser to the URL displayed in the terminal.
- Set the default desktop environment to Unity. The shortcuts rely on
  being able to boot up a file browser. For simplicity Nautilus was
  chosen. XFCE is great for testing, but it's not the most user friendly
  and it's rather out of date looking. For the likely users of the VM it
  makes sense to have the default desktop environment be a bit nicer


Branch: refs/heads/master
Commit: 67fbadd128468ec986d4bc6a421a1c898df97a71
Parents: 86131eb
Author: Michael Joyce <>
Authored: Sat Jun 7 17:22:41 2014 -0700
Committer: Michael Joyce <>
Committed: Sat Jun 7 17:22:41 2014 -0700

 ocw-vm/ | 48 ++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 44 insertions(+), 4 deletions(-)
diff --git a/ocw-vm/ b/ocw-vm/
index 8ff859b..658a494 100755
--- a/ocw-vm/
+++ b/ocw-vm/
@@ -34,12 +34,12 @@ sudo apt-get install -y vim
 sudo apt-get install -y lightdm
-sudo apt-get install -y xfce4
-sudo apt-get install -y xdg-utils
-sudo apt-get install -y eog
+#sudo apt-get install -y xfce4
+#sudo apt-get install -y xdg-utils
+#sudo apt-get install -y eog
 # Ubuntu Unity
-#sudo apt-get install -y ubuntu-desktop
+sudo apt-get install -y ubuntu-desktop
 # Use the Easy-OCW Ubuntu install script to get everything
 # else installed!
@@ -61,3 +61,43 @@ cd
 sudo rm -f
 sudo rm -f basemap-1.0.7.tar.gz
 sudo rm -rf basemap-1.0.7
+mkdir /home/vagrant/Desktop
+# These links will only work if we're using the Unity desktop.
+# If you want to use the XFCE desktop you will need to change
+# the references to 'nautilus' to whatever file browser you
+# will be using.
+cat >/home/vagrant/Desktop/climate.desktop <<CODELINK
+[Desktop Entry]
+Exec=nautilus /home/vagrant/climate
+cat >/home/vagrant/Desktop/ui.desktop <<UISTART
+[Desktop Entry]
+cat >/home/vagrant/Desktop/ <<UIBOOTUP
+export PATH=/home/vagrant/anaconda/bin:$PATH
+export PYTHONPATH=/home/vagrant/climate:/home/vagrant/climate/ocw
+cd ~/climate/ocw-ui/backend && python
+# It is possible that these commands will need to be rerun once
+# the desktop environment has been updated. You will notice that
+# they aren't recognized as shortcuts if you need to rerun these
+# commands. If all is working properly, you should see terminal
+# icons with the names listed above (Climate-Code or Climate-UI).
+chmod +x ~/Desktop/climate.desktop
+chmod +x ~/Desktop/
+chmod +x ~/Desktop/ui.desktop

View raw message