Set up Linux Virtual Machine

  1. Download virtual box (by Oracle) from https://www.virtualbox.org/wiki/Downloads
    Description Filename Size
    VirtualBox 5.1.22 for Windows hosts x86/amd64 VirtualBox-5.1.22-115126-Win.exe 120MB
    VirtualBox 5.1.22 Oracle VM VirtualBox Extension Pack All platforms Oracle_VM_VirtualBox_Extension_Pack-5.1.22.vbox-extpack 19MB
    (or use more recent version if any)

    Note that virtual box has a menu item under File to check for updates. An updated version can simpy be installed over the top and it doesn't remove any existing VMs which have been created. It is important to upgrade the extension pack as well.

  2. Install virtual box then double click on the Oracle_VM_VirtualBox_Extension_Pack-5.1.22.vbox-extpack to install the extensions pack
  3. Download ubuntu from https://www.ubuntu.com/download/desktop : Either
    Description Filename Size
    32 bit Ubuntu ubuntu-14.04.1-desktop-i386.iso ?
    64 bit Ubuntu ubuntu-14.04.1-desktop-amd64.iso 0.99GB
    64 bit Ubuntu ubuntu-16.04.2-desktop-amd64.iso 1.44GB
    [or use more recent version if any]
  4. New a virtual box. Use 20GB dynamic drive. Use 64MB display memory. Set cd drive to ubuntu iso image.
  5. Start guest and install ubuntu
  6. In a terminal:
    
    sudo apt-get update
    sudo apt-get upgrade
    
  7. Under menu 'Devices' select "Install guest additions...'. This will install things in guest (i.e. ubuntu).
    Reboot guest? Should now find desktop resizes to the window.
  8. Under menu 'Devices' select "Shared clipboard'. Make this bidirectional.

Set up a shared folder [optional]

  1. Under menu 'Devices' selected 'Shared folders...'. Make c:\developer a shared folder named 'developer'.
    Automount = yes.
    Access = full.
  2. On guest under /home/david, mkdir developer.
  3. In a terminal:
    
    sudo gedit /etc/rc.local
    
    before the exit(0) line, add the line:
    
    mount -t vboxsf -o uid=1000,gid=1000,rw,exec,dmode=0755 developer /home/david/developer
    
    reboot guest, then confirm that /home/david/developer has files from c:\developer.

Version of gcc that comes with Ubuntu

Note that Ubuntu 16.04.2 comes with gcc version 5.4.0 20160609, there is no need to install a later version in order to build ceda based applications

Version of make that comes with Ubuntu

Type make --version to get the version of make. On the Ubuntu 16.04.2 the following version of make was installed:

GNU Make 4.1
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Install boost

On Ubuntu 16.04.2 the following command installed boost 1.58


sudo apt-get install libboost-all-dev

This installed headers under /usr/include/boost and libraries under /usr/lib/x86_64-linux-gnu

But boost.xcpp has this:


@elseif (IsLinuxPlatform || IsMacOSXPlatform)
{
    $BOOST_INCLUDE = "/usr/local/include"
    $BOOST_LIB = "/usr/local/lib"
}

Install atom text editor

To install the atom text editor, enter the following commands in a terminal:


sudo add-apt-repository ppa:webupd8team/atom
sudo apt update
sudo apt install atom

Tree

The tree command is handy for dumping directory structures. It can be installed with the command:


sudo apt install tree