title: APT Repository
linktitle: aptrepo
parent: Home
ctime: 2009-12-10

Repositories: [[aptrepo]].

# Introduction

TMI maintains an APT repository containing some of the code available from this
website.  We use this repository in-house, and it is fairly well tested on 32
and 64 bit Intel and AMD based workstations running Ubuntu 8.04 (Hardy Heron),
Ubuntu 9.10 (Karmic Koala), Ubuntu 10.04 LTS (Lucid Lynx), Ubuntu 10.10
(Maverick Meerkat), Ubuntu 11.04 (Natty Narwhal), and Ubuntu 12.04 (Precise
Pangolin).  Ubuntu derivatives, like Xubuntu (used at TMI), should work fine.

32-bit and 64-bit architectures are supported for all distributions except for
Ubuntu 12.04.  Packages for 12.04 are only currently being built for the 32-bit
architecture.  However, the [[cp210x]] driver package is distributed as a dkms
package that is compiled during installation and so does support 64-bit.

TMI can provide support for this repository and TinyOS software development.
Please use the e-mail address in the top-right corner of this web page to ask
for more information about our services.

TMI is currently using 12.04 32-bit internally for development.  Support for
older distributions remains in the repository, but will no longer receive
updates.  We will attempt to answer basic questions; please use the e-mail
address in the top right corner of this web page.  TMI can be engaged for a host
of development and development support tasks.

# Package inventory

## Ubuntu Precise

TMI is using Xubuntu 12.04 internally on its development workstations.  As such,
the ubuntu-precise repository is the same as used internally.  This repository
is just fine for most any Ubuntu derivative distribution, but only supports
32-bit versions.

Contents of the APT repostory, as of 2012-07-09, for Ubuntu 12.04.  Since the
standard Ubuntu repositories now include an recent GCC 4.5.3 msp430 cross
toolchain, the one built by TMI is no longer necessary or maintained.  Note that
as of 2012-06-15 the gdb-msp430 apt package has an installation error, which is
likely to be fixed soon.  tinyos-msp430 is a TMI meta package that incorporates
installation of the msp430 cross toolchain packages from the standard
repositories, but for the reason noted above the gdb-msp430 package, and by
extension the mspdebug package, is not automatically installed.

    cp210x-module-dkms_0.11.3-7tmi
    deputy-tinyos_1.1-2tmi
    doxygen-gui_1.7.6.1-2
    doxygen_1.7.6.1-2
    doxygen-latex_1.7.6.1-2
    doxygen-doc_1.7.6.1-2
    nesc_1.3.2-3tmi_i386.deb
    tinyos_2.1.1-4.5-1tmi
    tinyos-avr_2.1.1-4.5-1tmi
    tinyos-msp430_2.1.1-4.5-1tmi
    tinyos-source_2.1.1-4.5-1tmi
    tinyos-source-2.1.1-4.5_2.1.1-4.5-1tmi
    tinyos-source-2.1.1-4.4_2.1.1-4.4-6tmi
    tinyos-source-2.1.1-4.3_2.1.1-4.3-1tmi
    tinyos-source-2.1.0-4.2_2.1.0-4.2-1tmi
    tinyos-source-2.1.0-4.1_2.1.0-4.1-1tmi
    tinyos-source-2.1.0-3_2.1.0-3-2tmi
    tinyos-source-2.1.0_2.1.0-2tmi
    tinyos-source-2.0.2.2_2.0.2.2-2tmi
    tinyos-tools_2.1.1-4.5-1tmi
    tmi-keyring_1.0-1tmi
    topgit_0.8-2

## Ubuntu Hardy

Contents of the APT repostory, as of 2012-02-15, for Ubuntu 8.04 through 11.04.
This respository is retained for historical purposes and is no longer being
maintained by TMI.  This repository includes a custom built msp430 cross
toolchain, in both 32-bit and 64-bit versions.

    cp210x-module-dkms_0.11.3-5tmi
    deputy-tinyos_1.1-2tmi
    doxygen-gui_1.7.6.1-2
    doxygen_1.7.6.1-2
    doxygen-latex_1.7.6.1-2
    doxygen-doc_1.7.6.1-2
    msp430-libc_0.1~20100207-1tmi
    msp430-gdb_7.0.1-1tmi
    msp430-gcc_4.4.3-1tmi
    msp430-binutils_2.20-1tmi
    nesc_1.3.2-1tmi
    tinyos_2.1.1-4.4-1tmi
    tinyos-avr_2.1.1-4.4-1tmi
    tinyos-msp430_2.1.1-4.4-1tmi
    tinyos-source_2.1.1-4.4-1tmi
    tinyos-source-2.1.1-4.4_2.1.1-4.4-1tmi
    tinyos-source-2.1.1-4.3_2.1.1-4.3-1tmi
    tinyos-source-2.1.0-4.2_2.1.0-4.2-1tmi
    tinyos-source-2.1.0-4_2.1.0-4-2tmi
    tinyos-source-2.1.0-4.1_2.1.0-4.1-1tmi
    tinyos-source-2.1.0-3_2.1.0-3-2tmi
    tinyos-source-2.1.0_2.1.0-2tmi
    tinyos-source-2.0.2.2_2.0.2.2-2tmi
    tinyos-source-2.0.1_2.0.1-2tmi
    tinyos-tools_2.1.1-4.4-1tmi
    tmi-keyring_1.0-1tmi
    topgit_0.8-2

# How to use

## Step 1 - Add the backports repository (Ubuntu Hardy only)

Ubuntu Hardy users need to activate the hardy-backports repository, as our
`cp210x-module-dkms` package requires a newer `dkms` than is available
otherwise.  Ubuntu Karmic users can skip this step.  You may activate
hardy-backports from the GUI, or issue these commands:

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    cat <<+EOF+ | sudo tee -a /etc/apt/sources.list
    deb http://us.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
    +EOF+

## Step 2 - Adding the TMI repository to the sources list

### For 11.04 and earlier:

    cat <<+EOF+ | sudo tee /etc/apt/sources.list.d/tmi.list
    # TMI repository
    deb http://oss.titaniummirror.com/ubuntu hardy main
    deb-src http://oss.titaniummirror.com/ubuntu hardy main
    +EOF+
    sudo apt-get update

### For 12.04:

12.04 support is working but in an early state.  TMI needs to find some time to
clean things up a bit.  TMI developers are currently using 12.04 i386.  64-bit
support is not yet available for 12.04.

    cat <<+EOF+ | sudo tee /etc/apt/sources.list.d/tmi.list
    # TMI repository
    deb http://oss.titaniummirror.com/ubuntu-precise hardy main
    deb-src http://oss.titaniummirror.com/ubuntu-precise hardy main
    +EOF+
    sudo apt-get update


## Step 2 - Adding the TMI package key

When you issued `apt-get update` above, you saw a key warning.  Resolve future
key related warning messages by installing `tmi-keyring`.

    sudo apt-get install --yes --allow-unauthenticated tmi-keyring

You should now verify the installed key.  Run the `sudo apt-key list | less`
and look for the following two lines, ensuring your output matches that below:

    pub   1024D/E9BE0373 2009-12-08
    uid                  TMI Packages <EMAILADDR>

The <EMAILADDR> above is *com dot titaniummirror at pkgs*, in reverse.

## Step 3 - Install packages

You can now install packages from the TMI repository.  For example:

* Install the TMI [[tinyos]] development suite: `sudo apt-get install tinyos`

* Install the TMI [[cp210x]] driver: `sudo apt-get install cp210x-module-dkms`
