I am planning to use Tiny OS 2.1.1 on my Ubuntu laptop.
I followed Feng Li‘s blog to install TinyOS-2.1.1. It made it easier!
However here is the code:
sudo gedit /etc/apt/source.list
Now add this at the end of the file : deb http://hinrg.cs.jhu.edu/tinyos hardy main
sudo apt-get update sudo apt-get install aptitude sudo aptitude install tinyos-2.1.1
Now make changes in the ~/.bashrc file.
sudo gedit ~/.bashrc
Add the following lines in the end.
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 source /opt/tinyos-2.1.1/tinyos.sh
This will always setup TinyOS. Now change the permissions of the $TOSROOT. Best but not the safest thing to do is:
sudo chmod 777 $TOSROOT
Now add the java tools by :
tos-jni-install cd ./support/sdk/java make make install make javadoc
make javadoc generates docs for the same.
P.S. : The earlier repo had some errors. This repo works fine even for Precise Pangolin. 🙂
P.P.S. : It works only well for TelosB. Micaz and TOSSIM are giving some errors, I hope to find a possible solution for them soon.