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
- Open the Synaptic Package Manager.
- Click on Settings button
- Click on Repositories in the drop down menu
- Select the Third-Party Software tab
- Click the Add... button
- Add "deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main" into the APT line field
- Save the result
- 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:

