SL:Install TinyOS 2.1 in Debian (lenny)
Debian Lenny
To Install TinyOS 2.1 in debian lenny you can just use the ubuntu feisty deb packets.
Add the following line to /etc/apt/sources.list
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main
Install TinyOS 2.1 and dependencies
apt-get update apt-get install tinyos-2.1.0
After the installation you will find TinyOS in
/opt/tinyos-2.1.0/
Set up environment in .bashrc
#added line below for tinyos export TOSROOT=/opt/tinyos-2.1.0 export TOSDIR=$TOSROOT/tos export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar export MAKERULES=$TOSROOT/support/make/Makerules
It might be useful to use the eclipse environment and the yeti 2 plugin for TinyOS 2.x support (c.f. http://tos-ide.ethz.ch/wiki/index.php). However, due to the fact that only eclipse 3.2 is provided in Lenny and that yeti2 does not support this old version, a new version needs to be downloaded from http://www.eclipse.org/downloads/. Just choose Eclipse Classic 3.5.1 (162 MB).
Just unpack the eclipse archive in /opt and start eclipse:
cd /opt tar xfvz eclipse-SDK-3.5.1-linux-gtk.tar.gz cd eclipse ./eclipse
Here a list of commands to help you installing the yeti2 plugin:
- Start eclipse. Select main menu Help -> Software Updates -> Find and Install
- Select Search for new features to install and click next
- Tick Callisto Discovery Site
- Select Button New Remote Site and enter as name yeti2 and as location http://tos-ide.ethz.ch/update/site.xml => click the OK button
- Click the Finish button
- Select the following items for Callisto Discovery Site: 1) Callisto Discovery Site->C and C++ Development 2) Callisto Discovery Site->Graphical Editors and Frameworks->Graphical Editing Framework
- Select the following items for yeti2: core and opt as well as subitems env->TinyOS 2.x Base Environment and env->TinyOS 2.x on Unix
- Click next button
- Select Accept the terms in the license agreements and click the Next button for two times
- Click finish button and wait until everything is downloaded. If feature verification pops up, click Install All button
- Restart eclipse