From GEMS

Resources: How To Install TinyOS 2.0 in Ubuntu 14 and 16

How To Install TinyOS 2.0 with MoteIST in Ubuntu 14 and 16

Instructions

Ubuntu 14.04 LTS

Download the zip file in the svn repository with the name "TinyOSMoteIST.zip". Or go to the Download Section of this page.
Extract the zip file and then run "install" file. (to run on the terminal type this "./install")

Ubuntu 16.04 LTS

Download the zip file in the svn repository with the name "TinyOSMoteIST.zip". Or go to the Download Section of this page.
Extract the zip file and then run "install" file. (to run on the terminal type this "./install") If you can not install the problem is in the installation Makefile that is inside the "TinyOSMoteIST.zip".
The JRE 6/7 (Java Runtime Environment) and the JDK 6/7 (Java Development Kit) repositories does not exist for this Ubuntu version, so you have to manually add it.

Instructions for JRE 6/7 and JDK 6/7 installation in Ubuntu 16

In the terminal type the following commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer oracle-java7-installer default-jdk (this command will take several minutes)

For the TinyOS to work with the java commands like SerialForward, Listen, Print, etc, you have to switch the java version, to do this, type the following command:

sudo update-alternatives --config java

and choose the version 7.

Available commands

After a successful installation there are new available commands.
This commands are just a wrap around of the classic TinyOS commands, feel free to check and change the ".bash_aliases" file that is located in your home folder.
Remember this file is hidden so to see it you have two options:

In the Ubuntu file manager (aka nautilus), go to your home folder and press CTRL+H, and the hidden files are now visible.

or

In your terminal type:

cd ~ (to go to your home folder)
ls -l (this command shows all file, including hidden file, in your terminal)

".bash_aliases" file can be open in any text editor program (nano, vi, vim, gedit, ...)

Commands

All commands start with tinyos word prefix

If the above commands are type without any arguments, it will show you more info about them.

Downloads

Retrieved from http://leme.tagus.ist.utl.pt/gems/PmWiki/index.php/Resources/HowToInstallTinyOSUbuntu
Page last modified on April 03, 2017, at 07:16 PM