Skip to content

Instantly share code, notes, and snippets.

@andytill
Last active July 27, 2016 12:12
Show Gist options
  • Save andytill/c40115355724a15e0736cdabf813cce1 to your computer and use it in GitHub Desktop.
Save andytill/c40115355724a15e0736cdabf813cce1 to your computer and use it in GitHub Desktop.

Please install VirtualBox 5.1.2 or compatible from https://www.virtualbox.org/wiki/Downloads, and Vagrant 1.8.5 or compatible from https://www.vagrantup.com/downloads.html. The virtual machine has been tested with these versions only.

Download the erlyberlydemo.box file from google docs, using the link https://drive.google.com/file/d/0B3ta2LL_LQZyTG8wQy1LRmJWSHM/view?usp=sharing and run the following commands. It assumes the downloaded box file is at ~/Downloads.

vagrant box add erlyberlydemo ~/Downloads/erlyberlydemo.box
mkdir erlyberlydemo
cd erlyberlydemo
vagrant init erlyberlydemo

The init command does not enable the desktop, so the Vagrantfile must be edited manually :(

Copy this into the config block of the Vagrantfile in the directory.

  config.ssh.forward_agent = true
  config.ssh.forward_x11 = true

  config.vm.provider :virtualbox do |vb|
    vb.gui = true

    vb.customize ["modifyvm", :id, "--memory", "2048"]
    vb.customize ["modifyvm", :id, "--cpus", "2"]
    vb.customize ["modifyvm", :id, "--graphicscontroller", "vboxvga"]
    vb.customize ["modifyvm", :id, "--accelerate3d", "on"]
    vb.customize ["modifyvm", :id, "--ioapic", "on"]
    vb.customize ["modifyvm", :id, "--vram", "128"]
    vb.customize ["modifyvm", :id, "--hwvirtex", "on"]
  end

Start the VM.

vagrant up

After a start up sequence, you should see the Ubuntu desktop login screen.

The user and password is vagrant. The desktop is gnome 3. There are some links in firefox to get you started, though all will be explained in the walk through.

Thanks!

@faheemmughal
Copy link

vagrant box add erlyberlydemo ~/Downloads/erlyberly.box

Should be

vagrant box add erlyberlydemo ~/Downloads/erlyberlydemo.box

@andytill
Copy link
Author

andytill commented Jul 27, 2016

Fixed, thanks @faheemmughal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment