Install OBM On Debian Squeeze

# OBM on Debian Squeeze

## Current and stable version of OBM

Debian squeeze support is available since version 2.4.1.2 (and >= 2.4.2.0)
Modify your /etc/apt/sources.list by adding "contrib" and "non-free" to the Debian repositories. Then add your OBM repositories of choice.

deb http://ftp.fr.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ squeeze-updates main contrib non-free

# Stable repository with current version 2.5.X:
deb http://deb.obm.org/25/stable obm obm
deb http://deb.obm.org/25/contrib squeeze obm

# Stable repository with current version 2.4.2.X:
# deb http://deb.obm.org/24/stable obm obm
# deb http://deb.obm.org/24/contrib squeeze obm

# Oncommit build (can be broken at any time):
# deb http://deb.obm.org/25/oncommit obm obm
# deb http://deb.obm.org/25/contrib squeeze obm

Oncommit packages require manual install/update database from scripts ("/usr/share/obm/www/scripts/...")

## Installation on Debian Squeeze

For sun-java6-jdk you need to have contrib and non-free.

Remove exim4 because of confilts with postfix

apt-get remove exim4 exim4-config

With aptitude, you must install perl. It is not needed with apt-get.

aptitude install perl

If your locale is fr_FR.UTF8 (command line **locale**), be aware that postgresql cannot be installed if no other compatible locale is installed first.
The correct workaround is :

dpkg-reconfigure locales

Then select **en_US.UTF-8 UTF-8** (with the space button). You can keep fr_FR.UTF8 as your default locale for the system.

Install the postgresql server(or the mysql server) :

apt-get install postgresql(mysql-server)

With mysql you will have to install php5-mysql :

apt-get install php5-mysql

Please ensure you have a fully-qualified domain name.

Exemple of something you musn't have :

$ hostname -f
hostname: Name or service not known

If you got this message, it seems that you have a different hostname setup in /etc/hostname and /etc/hosts.

And finally

wget -q http://deb.obm.org/obmgpg.pub -O - | apt-key add -
aptitude update
aptitude install obm

Alternatively, if you want opush and all OBM features on a single server, you can use the "obm-full" package:

wget -q http://deb.obm.org/obmgpg.pub -O - | apt-key add -
aptitude update
aptitude install obm-full

You could obviously use apt-get instead of aptitude.

With PostgreSQL, you may need to modify postgresql.conf and replace max_prepared_transactions default 0 by a non-null value; for example :

max_prepared_transactions = 100

... and restart postgresql

/etc/init.d/postgresql restart

## Upgrading to OBM3

If you're [upgrading from OBM 2.x to OBM 3](/wiki/upgrading-obm3), you need to add a package repository containing some backports required by OBM.
To do so, modify your _/etc/apt/sources.list/_ and add

deb http://deb.obm.org/squeeze-backports squeeze main

And you should be up and running for your upgrade.
Then if you use Opush smartphone synchronization feature, you must upgrade Opush first separately. Please have a look at our [upgrading notes](/wiki/upgrading-obm3) before process.

##**Known issues**
You may read [this](/wiki/known-issues), which describes known issues with obm installation and functionalities.

Then it's done! You should now read the [Getting Started](/wiki/getting-started) guide.adidas yeezy boost 350 v2 zebra