• The secret of success is learning how to use pain and pleasure instead of having pain and pleasure use you. If you do that, you're in control of your life. If you don't, life controls you.
      Tony Robbins

    • If you do what you've always done, you'll get what you've always gotten.
      Tony Robbins

  1. Address: Floor 3th, Information Technology Center of BASU University, Hamedan, Iran.

    Tel: +988138270182 & +988138268809         Email: info@wsnlab.org

    • Carry out the Wireless Sensor Network Simulation projects
    • Consulting the Wireless Sensor Network Projects
    • Implementation Hardware, Middle-ware and Software of WSN.

    for more information you can contact us: info@wsnlab.org

  2. Our Persian Forum ,
    www.wsnlab.ir

How To Installing Tinyos On Ubuntu 8.10 Part1

Discussion in 'TinyOS' started by Homaei, Nov 3, 2013.

  1. Homaei

    Homaei Administrator Staff Member

    Once Ubuntu has been correctly installed, it is necessary to install different packages and tools. It is recommended to install the entire packages through Synaptic Package Manager, a graphical user interface to easily install, remove, configure or upgrade software packages based on the apt-get command line tool (APT). But it is also possible to install them through the shell by using the apt-get commands.


    By default, most of the packages are included in the repositories, but in the case of TinyOS it is necessary to add a new repository in order to install the package through Synaptic or commands.


    Select ‗add third party repositories‘ at the configuration menu of Synaptic Package Manager and include the Debian Repository provided by Stanford University. For more detailed information of how to install TinyOS step by step see Annex B.

    It is strongly recommended to execute all the commands as super user during the installation:


    The super user (administrator) password is established at the moment of installing Ubuntu, make sure knowing it before trying to install any package.


    TinyOS package comes with Java 1.5 version and Graphviz, but does not include Python. Graphviz is a package of open source tools for drawing graphs based on scripts. And Python is a general-purpose high-level programming language; its purpose will be explained in following sections.


    It is necessary to install Python manually with the corresponding commands.

    Once all packages for TinyOS have installed, it is necessary to edit the script containing all the system paths. By default, TinyOS will be installed in the route:



    Where the default script is also placed: tinyos.sh. Edit the script and change the paths if it is necessary. This file has to be also placed at the /etc/profile.d directory in order to be executed each time the computer starts.


    Optionally, bashr in the /etc directory can also be modified. At the end of the bash.bahsrc file add the next lines:



    if [ -f /opt/tinyos-2.x/tinyos.sh ] ; then


    By doing this, each time that a shell is started, the system executes the tinyos.sh file. Thus is really profitable in case of modifying the file many times. If it is not done, the changes will only be effective after restarting the computer.

    The last step to check the correct installation of TinyOS in Ubuntu is to execute the following command:

    Different messages will appear showing the paths for the different tools that TinyOS requires. Probably a warning message will appear at the end of the shell informing that the Graphviz version has to be updated to 1.10. But it is not a problem because, in fact, the installed version of Graphviz is newest than the one warned by the tos-check-env command.

    Referenced by: http://www.wsnlab.org
    Author: Mohammah Hossein Homaei
    Wireless Sensor Networks Laboratory of Iran
    www.wsnlab.org
  2. Abderrahime

    Abderrahime New Member

    Thank you Homaei

Share This Page

Get our toolbar! Flag Counter