Setting Up a Build Environment on TonidoPlug

Introduction

This guide is based almost entirely on the work of pmcallihan as posted in the Tonido User Forums.

This guide will walk you through preparing a development environment on your TonidoPlug 2 so that you can compile and install packages from their source code. These instructions will provide access to the debian-multimedia repository, upgrade the software to the latest debian-squeeze and install a full software build system.

Do not do this on a Tonido Plug booting from the internal flash. It will void your warranty.
Boot from a USB or SATA drive before you attempt this or any other other modification.

This is the backbone of a real development system and gives you access to libraries that can cripple your TonidoPlug or do many wonderful things. Use with caution.

Installing the Packages

1. SSH into the TonidoPlug as root.

2. Go to the root directory

 cd /

3. Make a working directory called src. We will work from here and stay away from the app directory on root. It’s important.

 mkdir src
 cd /src

4. Open the apt sources.list file with nano.

 nano /etc/apt/sources.list
 

5. Add the debian squeeze multimedia repository to the sources list. Paste the following line at the end of the list:

 deb http://www.deb-multimedia.org squeeze main non-free  

The complete file should look like this:

 deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
 deb http://security.debian.org/ squeeze/updates main contrib non-free
 deb http://www.deb-multimedia.org squeeze main non-free 

6. Save and close the sources.list file.

CRTL-o
ENTER
CRTL-x

7. Update the local package database.

 apt-get update

8. Install repository key for the debian-multimedia repository.

 apt-get install deb-multimedia-keyring

9. Upgrade the system to the most current packages.

 apt-get upgrade

10. Install a complete build system.

  apt-get install build-essential automake autoconf libtool pkg-config intltool

That’s it. You are ready to build packages.


Source: http://www.tonido.com/forum/viewtopic.php?f=37&t=3625