- add tinyos repository at /etc/apt/source.list :
deb http://tinyos.stanford.edu/tinyos/dists/ubuntu feisty main - Update repository cache
sudo apt-get update
- Install packets
sudo apt-get install tinyos tinyos-avr tinyos-msp430 nesc tinyos-tools - Uninstall braille driver if you are using telos motes.
sudo apt-get remove brltty - Install Java on Ubuntu : https://jdk-distros.dev.java.net/ubuntu.html
- Configure environment :
export TOSROOT=/opt/tinyos-2.x
export TOSDIR=$TOSROOT/tos
export CLASSPATH=$TOSROOT/support/sdk/java/tinyos.jar:.
export MAKERULES=$TOSROOT/support/make/Makerules
export PATH=/opt/msp430/bin:$PATHIn addition to the above environment variables, do the following on Linux machines:
1. Change the ownership on your /opt/tinyos-2.x files: chown -R <your uid> /opt/tinyos-2.x
2. Change the permissions on any serial (/dev/ttyS<N>), usb (/dev/tts/usb<N>, /dev/ttyUSB<N>), or parallel (/dev/parport) devices you are going to use: chmod 666 /dev/<devicename> - Install Graph Drawing Tools
apt-get install graphviz - Compiling and Installing
$ tos-check-env
$ configure- if need tcl and otcl argument, fix it : $ configure –with-tcl=/yourpath/tclxxx/ –with-otcl=/yourpath/otcl-xxx/
$ make
$ make install - Check MAKERULES environment
$ printenv MAKERULES- It should appear : /opt/tinyos-2.x/support/make/Makerules
- If doesn't appear, set MAKERULES : $ export MAKERULES=/opt/tinyos-2.x/support/make/Makerules
Next : Install Imote2 on TinyOS-2x
http://docs.tinyos.net/index.php/Imote2_yahoo_group%27s_email_pointers
References:
- http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html
- http://www.tinyos.net/tinyos-2.x/doc/
- http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS
Hancurkan Kemalasan – Hancurkan Kebodohan
April 30, 2008
Taipei City
High Speed Network Lab
Udin Harun

May 12, 2008 at 5:28 am |
under section 8, the command “configure” does not work. It gives the error “bash: configure: command not found” . I tried running “sudo apt-get install build-essential” as well. But still does not work. Any help appreciated.
Thanks…


Udin Harun Said :
It should be work.
Read this document carefully – http://docs.tinyos.net/index.php/Getting_Started_with_TinyOS
I think you need to move to ‘tinyos-2.x/tools/tinyos’ directory, after that do ‘configure’ command.
If still not success, try several times
I try several times untill success
Good Luck
December 3, 2008 at 8:06 am |
Thanks a lot. Great help.
Can you please specify what this line stands for.
export PATH=/opt/msp430/bin:$PATH
February 7, 2009 at 12:26 pm |
Hey Prabash
That line means that your adding the /opt/msp430/bin directory to your environment variable PATH. Its just like adding the java directory to the PATH variable in Windows…..
February 10, 2009 at 7:00 am |
OK, I got it. it’s for setting path for msp430 chip based boards
March 3, 2009 at 10:49 am |
I got problem using the repository under Ubuntu Netbook Remix. Since it only acquires binary-lpia (Low Power Intel Arch) instead of binary-i386. The repository doesn’t have binary-lpia. Any tips on how to use i386 repository for lpia Ubuntu?
March 5, 2009 at 8:01 am |
Hello, I used your instructions to install tinyos in Ubuntu 8.10 but i have problems with the installation. I am very new in Linux so my knowledge is extremely limited. However i managed to follow your instructions but when i run tos-check-env i get
“tos-check-env completed with errors:
–> WARNING: The JAVA version found first by tos-check-env may not be version 1.4 or version 1.5one of which is required by TOS. Please ensure that the located Java version is 1.4 or 1.5
–> WARNING: The graphviz (dot) version found by tos-check-env is not 1.10. Please update your graphviz version if you’d like to use the nescdoc documentation generator.”
Can someone tell me what is possibly wrong? Thanks in advance!