From 67fbadd128468ec986d4bc6a421a1c898df97a71 Mon Sep 17 00:00:00 2001 From: Michael Joyce Date: Sat, 7 Jun 2014 17:22:41 -0700 Subject: [PATCH] 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 looking. --- ocw-vm/init-ocw-vm.sh | 48 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/ocw-vm/init-ocw-vm.sh b/ocw-vm/init-ocw-vm.sh index 8ff859b0..658a4944 100755 --- a/ocw-vm/init-ocw-vm.sh +++ b/ocw-vm/init-ocw-vm.sh @@ -34,12 +34,12 @@ sudo apt-get install -y vim sudo apt-get install -y lightdm # XFCE -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 Anaconda-1.9.2-Linux-x86_64.sh 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 </home/vagrant/Desktop/ui.desktop </home/vagrant/Desktop/.ui.sh <