Search

  • Home
  • About Us
  • People
    • Faculty
    • Post-doctoral Scholars
    • PhD Students
    • MS Students
    • Undergraduate Students
  • Research
    • Ultra-low Power Wearable Computers
  • Publications
    • Selected Papers
    • Conference Papers
    • Journal Papers
    • Book
    • Patents
  • Teaching
    • EE6302 Spring13
    • CE4370 Fall12
    • EE6302 Spring12
    • CE4370 Fall11
    • EE2310 Spring11
    • CE4370 Fall10
    • EE2310 Spring10
    • EE2110 Fall09
    • EE4389 Spring09
    • EE2110 Fall08
    • EE7V82 Spring08
  • Software
    • SPINE
      • Ubuntu
      • Cygwin
      • SPINE1.3
    • H3D
    • Development for N810
  • Seminar
    • ESSP Seminar
  • Reading Group
  • Contact
  • Login
  • Print


Main
Software Setup Ubuntu

TinyOS Installation Instructions for Ubuntu

SPINE 1.2 requires the latest version of TinyOS 2.1.0 to run correctly. In order to install TinyOS some prerequisite packages must be installed first

  • cvs
  • subversion
  • autoconf
  • automake1.9
  • python-dev
  • g++
  • g++-3.4
  • gperf
  • swig
  • sun-java5-jdk
  • graphviz
  • alien
  • fakeroot

In order to install the above packages you can run the following commands in the terminal:

sudo apt-get install cvs subversion autoconf automake1.9 python-dev
sudo apt-get install g++ g++-3.4 gperf swig sun-java5-jdk graphviz alien fakeroot

Once all of the support packages are installed it is necessary to update the Ubuntu Repository list. It can be done via adding the following line to the end of the /etc/apt/sources.list file

deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main

Alternatively, you can

  1. Open the Synaptic Package Manager.
  2. Click on Settings button
  3. Click on Repositories in the drop down menu
  4. Select the Third-Party Software tab
  5. Click the Add... button
  6. Add "deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main" into the APT line field
  7. Save the result
  8. Click on the Reload button to update repository information

Once repositories are updated. You can open the Synaptic Package Manager, and search for the TinyOS2.1 package. When you will mark it for installation Ubuntu will automatically mark other TinyOS packages to be installed.

When the installation process is finished the only thing that is left is to update environment variables. It can be done via adding the following code to .bashrc or .bash_profile file (depending on which one your system uses)

#added line below for tinyos

export TOSROOT=/opt/tinyos-2.1.0
export TOSDIR=$TOSROOT/tos
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.:$CLASSPATH
export MAKERULES=$TOSROOT/support/make/Makerules
export PATH=/opt/msp430/bin:$PATH

In order to verify the installation please follow the first TinyOS tutorial

Acknowledgment:

The following tutorials have been used to create this manual:

http://www.5secondfuse.com/tinyos/install.html
http://mythicalcomputer.blogspot.com/2008/08/installation-of-tinyos-in-ubuntu.html
Page last modified on December 11, 2010, at 11:50 AM