1. Download VirtualBox: https://www.virtualbox.org/wiki/Downloads 2. Install VirtualBox: 3. Open VirtualBox. Click “New” “Name”: up to you… “Type”: linux “Version”: Ubuntu “Memory size” 1024Mb Create a virtual hard drive. Please allocate at least 16GB space for the hard drive --------continue … 4. Download Ubuntu from http://www.ubuntu.com/download/desktop 5. Open the linux in VirtualBox with virtual harddisk referring to the downloaded Ubuntu.version.iso. 6. Repower linux 7. Install Ubuntu on VirtualBox. 8. Open terminal in Ubuntu 9. Installation of the Ubuntu Packages 10. Before installing the TinyOS operating system, you must include the following TinyOS repository addresses into the repository source file. This can accomplished by editing the file/etc/apt/sources.list as follows: a) Edit sources.list script: $ sudo gedit /etc/apt/sources.list. b) Include the following 4 lines at the end of the script: #tinyOS deb http://tinyos.stanford.edu/tinyos/dists/ubuntu lucid main deb http://tinyos.stanford.edu/tinyos/dists/ubuntu maverick main deb http://tinyos.stanford.edu/tinyos/dists/ubuntu natty main c) Then you’re going to get a dialog as below: d) Save and close the “gedit” application. e) Open the terminal console and execute the following command: $ sudo apt-get update $ sudo apt-get install tinyos Then you’re going to a list of the TinyOS version available as presented below: f) Run the following command to install TinyOS 2.1.2. During this step maybe you’ll be asked to enter the administration password and to confirm one or two steps along the way. $ sudo apt-get install tinyos-2.1.2 g) Change the root…using : sudo passwd root h) Type in your password. Then the terminal works in root. i) Copy tinyos.sh to /opt/tinyos-2.1.2 folder j) $ sudo gedit ~/.bashrc Add one line “source /opt/tinyos-2.1.2/tinyos.sh” to the end of .bashrc file k) Reboot terminal l) Enable telosb DEVICE on the right corner of the screen m) Every time enter the ubuntu, input su and your password Run Blink example: 1. Check the connection of Telosb board Run $ motelist 2. Change directory to /opt/tinyos-2.1.2/apps/Blink 3. Run $ make telosb 4. Run $ make telosb install bsl,/dev/ttyUSB0