Monthly Archives: April 2016

Deleting the VM

Up on the left you can see some instructions for deleting the VM from your computer.

Those are hard, though, in that they require mucking about in the command line. You can also delete just by clicking around. I recommend this as the easier way.

STEP 1

First, open the “VirtualBox” program. You’ll see the box we used on a panel on the left (whether it’s running or not.) Right-click (on a mac this may mean “cold the command key down and click” to bring up a contextual menu: navigate there to “remove” and click OK.

Screen Shot 2016-04-16 at 12.04.35 PM

 

STEP 2:

You still have the images and texts we downloaded. You can now just throw away that folder (“medicalHeritageVM,” or whatever it’s called).

 

Anytime in the future that you want to reinstall the software, you can do so following the instructions.

 

Or if there’s just one thing you found useful: RStudio, or python, or open CV–there are instructions for installing that on your own computer on the web.

 

You might want also to uninstall the programs “vagrant” and “virtualbox”

Help with SSH

We’ve encountered some issues when working with Vagrant on certain computers. In order to run scripts on our virtual machine, we need to “tunnel in” to the machine using a protocol called SSH. However, some computers don’t come with SSH, or have firewalls preventing us from using it.

We can get around this problem by running commands from the interface for VirtualBox, which is a program that you installed earlier in this process. To find the VirtualBox program on a Mac use the Spotlight search tool. To find VirtualBox on a PC, search for “VirtualBox” from your Start menu.

Once you’ve opened VirtualBox, you’ll see icons representing your various virtual machines. Click on medicalHeritageVM_default. If the icon reads “Powered Off,” select Machine from the VirtualBox menu, and then click Start. The icon should now display a message that reads Running.

Once your VM is running, go to VirtualBox’s menu and click Machine and then Show. A window should pop up that looks a lot like your terminal.

From the VirtualBox interface, click on Machine and then Show to launch an interactive shell. (Ignore my extra VMs!)

Once you click into this window, you’ll be inside the virtual machine! Now you need to log in, using the following credentials.

Login:

vagrant

Password:

vagrant

Once you see:

vagrant@vagrant-ubuntu-wily-64:~$

…you’re good to go! You’ll be able to follow along for the rest of the workshop.

One important note: When you click into the window, your mouse will stop working elsewhere on the screen. In order to get your mouse back and exit the VirtualBox command prompt, hold down the command key and click your mouse.