Archive

Posts Tagged ‘tinyos ubuntu installation’

TinyOs Installation – Ubuntu Debian Linux – Method 1 (Preferred)

May 26th, 2009 Pratik Desai No comments

Two-step install on your host OS with Debian packages

If you are running a version of Linux that supports Debian packages, then you may want to use the TinyOS package repository.

1) Remove any old tinyos repository from /etc/apt/sources.list and add the following:
Supported distributions are (edgy, feisty, gutsy, hardy)

 deb http://tinyos.stanford.edu/tinyos/dists/ubuntu hardy main

2) Update your repository cache:

 sudo apt-get update

3) Run the following to install the latest release of tinyos and all its supported tools:

 sudo apt-get install tinyos

4) Add the following line to your ~/.bashrc or ~/.profile file in your home directory to set up the environment for TinyOS development at login

 #Sourcing the tinyos environment variable setup script
 source /opt/tinyos-2.1.0/tinyos.sh

If you typically run tinyos from CVS and only require the toolchain installation, you can install the tinyos-required package instead of the tinyos one to just pull these in.

Keep in mind had inconsistent success with running apt-get upgrade tinyos, so for now it’s best to play it safe and remove any old tinyos packages before installing the new ones.

Also you have used the TinyOS debian repository in the past, keep in mind that all of the tools have been updated for TinyOS-2.1, but still work with all older versions of TinyOS as well. If you try updating in this way, and you see conflicts with some deprecated packages, send me an email (klueska@cs.stanford.edu), and I’ll add them to the conflicts list so that they get removed when the updated tools are installed. These conflicts should be OK so long as you remove any old packages; they are due to a change in the names of the updated packages installing into the same locations as the outdated ones.

  • Share/Bookmark