Installing XubunTOS (with TinyOS from tp-freeforall/prod repository) in VirtualBox

From TinyOS Wiki
Jump to: navigation, search

This tutorial shows how to install a XubunTOS Virtual Machine Image in VirtualBox with a fully functional TinyOS setup on Windows and Linux (Ubuntu). TinyOS is installed from the tp-freeforall/prod repository (version: 5th March, 2013).

The XubunTOS Virtual Machine Image can be downloaded from here: XubunTOS.ova

The image has been created on 5th March, 2013 and is in OVF format. This means that the image should also work with other virtualization tools, not only with VirtualBox. The image has been tested on Windows 7 and Ubuntu 13.04.

Username 
user
Password
password

Installation on Windows

This tutorial is based on Windows 7, but it should also work on Windows XP or Windows 8.

  1. Download VirtualBox. Make sure you choose the right version (in this case Virtualbox x.y.z for Windows Hosts)!
  2. Download VirtualBox x.y.z Oracle VM VirtualBox Extension Pack from the same site. (We need it for proper USB connections.)
  3. Run VirtualBox-x.y.z-_____-Win.exe.
  4. Click on Next >.
  5. You can select the components to be installed. (The default selection should be fine.) Click on Next >.
  6. Select the shortcuts you need and click on Next >.
  7. Say Yes on the Warning about installing Network Interfaces.
  8. Click on Install and wait.
  9. You can start Oracle VM VirtualBox now.
  10. Import the XubunTOS Virtual Machine. Click on File -> Import Appliance... (CTRL+I).
  11. Click on Open appliance... and select the XubunTOS.ova file that you've downloaded.
  12. Tick the Reinitialize the MAC address of all network cards checkbox and click on Import.
  13. Click on Agree and wait.
  14. If the import was successful you can now Power On the virtual machine. Click on Start.
  15. You may get some notification about screen resolution, mouse/keyboard capture, etc. Not to worry, that's normal, just say OK.
  16. If you forgot to install the Oracle VM Virtualbox Extension Pack you will get an error message. Just click OK, install it, and try to start the virtual machine again.
  17. To make sure that everything works fine, open a Terminal Emulator and try to compile a sample application.
user@XubunTOS:~$ cd top/t2_cur/tinyos-2.x/apps/tutorials/BlinkToRadio/
user@XubunTOS:~/top/t2_cur/tinyos-2.x/apps/tutorials/BlinkToRadio/$ make telosb

You should see something like this:

...

to be continued, I couldn't upload any images (screenshots) :(

Installation on Linux

This tutorial is based on Ubuntu 13.04, but it should also work on any Linux distribution that's supported by VirtualBox.

  1. Download VirtualBox. Make sure you choose the right version for your Linux distribution!
  2. Download VirtualBox x.y.z Oracle VM VirtualBox Extension Pack from here. (We need it for proper USB connections.)
  3. Double-click on virtualbox-w.x.y.z-___.deb.
  4. The Ubuntu Software Center shows up. Click on Install.
  5. You can start Oracle VM VirtualBox now.

Follow the instructions from Step 10 in the Windows section.

...

to be continued, I couldn't upload any images :(