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) and Ubuntu 10.10
(Maverick Meerkat).

TMI actively uses this software stack for internal and customer development, but
does not at this time offer support.  We will do our best to answer questions;
please use the e-mail address in the top-right corner of this web page.  Look
for future deployment of these packages via PPA on Ubuntu Launchpad.

# Package inventory

Contents of the APT repostory, as of 2009-05-06

    cp210x-module-dkms-0.11.3-5tmi
    deputy-tinyos-1.1-2tmi
    msp430-binutils-2.20-1tmi
    msp430-gcc-4.4.3-1tmi
    msp430-gdb-7.0.1-1tmi
    msp430-libc-0.1~20100207-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.0.1-2.0.1-2tmi
    tinyos-source-2.0.2.2-2.0.2.2-2tmi
    tinyos-source-2.1.0-2.1.0-2tmi
    tinyos-source-2.1.0-3-2.1.0-3-2tmi
    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-4.2-2.1.0-4.2-1tmi
    tinyos-source-2.1.1-4.3-2.1.1-4.3-1tmi
    tinyos-source-2.1.1-4.4-2.1.1-4.4-1tmi
    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 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

    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

## 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 email address 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 our [[tinyos]] development suite: `sudo apt-get install tinyos`

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