Studying WSN and trying to implement it can be fun, but the initial step to install TinyOS, the most widely used operating system for WSN can be a pain.
Try these steps to install tinyos and get started with networking. Here, I have installed tinyos-2.1.1, you can choose accordingly:
1. To edit the sources list, open the terminal and type:
$ sudo gedit /etc/apt/sources.list
add this line at the end of the file opened
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu karmic main
“karmic” for all type of ubuntu distribution.
2. Run a couple of commands to update and install tinyos
$ sudo apt-get update
$ sudo apt-get install tinyos-2.1.1
3. Then we need to change the environmental variables. For this we open the .bashrc file
$ gedit ~/.bashrc
and paste the following lines to the bashrc file.
export TOSROOT=/opt/tinyos-2.1.1
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
#Sourcing the tinyos environment variable setup script
source /opt/tinyos-2.1.1/tinyos.sh
4. We then change the owner for the tinyos installed on the system.
sudo chown yourname:yourname -R /opt/tinyos-2.1.1/
5. Finally, to check if the installation was done , run the command
$ tos-check-env
This should give the details of the components installed.
This should work!!!
