Ampache On Debian

XSPF JukeBox Flash Player

Due to no free tools being available in Debian to compile xspf_jukebox.fla from source at build time the XSPF Flash Player has been removed from the Ampache package in the Debian repositories.

Catalog Update

The Ampache package also sets up a daily cron job to run

/usr/share/ampache/www/bin/catalog_update.inc -a -c

The ”-a” and ”-c” options, clean and add to the catalog daily. Additional options are available, please see

/etc/ampache/ampache.cron.daily

for a complete list.

Installation Of Ampache

Debian is currently in Release Freeze, This means that Squeeze will be the new stable and Ampache will migrate to stable. As soon as Squeeze is released Ampache-3.5.4-9 will be available via apt-get.

This document assumes that you already have MySQL installed and properly configured. Assistance with the installation and configuration of this pieces of software is outside the realm of this document.

The Ampache package depends on the following packages to be installed, which will automatically be installed during this process:

  • apache2-mpm-prefork
  • debconf (>= 0.5) or debconf-2.0
  • po-debconf
  • php5
  • php5-mysql
  • libjs-prototype
  • libphp-snoopy

The Ampache package recommends that you install the following list of packages:

  • mysql-server
  • php5-cli
  • php5-gd
  • phpmyadmin
  • eyeD3

Ampache does not install MySQL Server for two reasons.

  1. What if the New Ampache user is already using a remote SQL Server. (which is possible, but beyond the scope of this howto)
  2. If an Ampache user is using an older version of MySQL Server, an automatic upgrade may render their MySQL db information unusable.

So, we recommend that you backup and upgrade your existing MySQL Server setups with caution.

Your first step should be to ensure that the following lines are uncommented and in your '/etc/apt/sources.list':

deb http://http.us.debian.org/debian/ testing main contrib non-free 
deb-src http://http.us.debian.org/debian/ testing main contrib non-free   

or

deb http://http.us.debian.org/debian/ unstable main contrib non-free 
deb-src http://http.us.debian.org/debian/ unstable main contrib non-free 

Now install the Ampache software

apt-get update
apt-get install mysql-server ampache

Now follow the Ampache Web Install Step 1 instructions to finish the installation.

Installing Ampache From Source

Installing Ampache from source is fairly easy. These are the basic steps you would use to install Ampache on your etch machine. Apache, PHP5 and MySQL will have to be installed and all their related dependencies before you install Ampache. The first thing we need to do is to go get some needed tools namely dget and debuild which are part of the devscripts and build-essential packages.

apt-get install devscripts build-essential

First let's make a directory we can work in

cd $HOME
mkdir $HOME/ampache
cd $HOME/ampache

Now let's go get Ampache's source package using dget -x.

dget -x http://ftp.de.debian.org/debian/pool/main/a/ampache/ampache_3.5.4-8.dsc

Now let's create our builder.

pbuilder create

Now let's build a .deb we can install

pbuilder build *dsc

Now that we have a nice new binary package let's install it

dpkg -i /var/cache/pbuilder/result/ampache*deb

Now follow the Web Install instructions to finish the installation.

Bzr Branches

For those folks that like working with bzr branches, Ampache and the Ampache packaging are available on launchpad.

bzr branch lp:~cjsmo/+junk/ampache (packaging branch)
bzr branch lp:~cjsmo/ampache/trunk (source branch)
install/debian.txt · Last modified: 2010/12/04 10:12 by porthose
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki