2011-06-15 11:53:12 +02:00
|
|
|
Install
|
|
|
|
|
=======
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
This is a guide about how to install *LibrePlan* project in your system. If you
|
|
|
|
|
want to upgrade your *LibrePlan* version see ``UPDATE`` file. If you want to
|
2011-06-16 08:21:57 +02:00
|
|
|
know how to compile it manually see ``HACKING`` file.
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
.. contents::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
LibrePlan automatic installation
|
2011-06-15 11:53:12 +02:00
|
|
|
--------------------------------
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
Ubuntu PPAs
|
|
|
|
|
~~~~~~~~~~~
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
There are Ubuntu PPAs for different versions (Lucid, Maverick and Natty), you
|
|
|
|
|
can find more info in the following URL:
|
|
|
|
|
https://launchpad.net/~libreplan/+archive/ppa
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
Instructions::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
$ sudo add-apt-repository ppa:libreplan/ppa
|
|
|
|
|
$ sudo apt-get update
|
2011-10-28 08:17:54 +02:00
|
|
|
$ sudo apt-get install libreplan
|
2009-06-25 19:31:05 +02:00
|
|
|
|
|
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
Debian packages
|
|
|
|
|
~~~~~~~~~~~~~~~
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
There are Debian packages for Squeeze (i386 and amd64), you can download them
|
2011-12-22 22:05:02 +01:00
|
|
|
from: http://sourceforge.net/projects/libreplan/files/LibrePlan/
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
Instructions:
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Download the package::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-12-22 22:05:02 +01:00
|
|
|
$ wget http://downloads.sourceforge.net/project/libreplan/files/LibrePlan/libreplan_1.2.0-1_amd64.deb
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Install package::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-12-01 16:22:34 +01:00
|
|
|
# dpkg -i libreplan_1.2.0-1_amd64.deb
|
2010-12-15 10:31:42 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Install dependencies::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
# apt-get install -f
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
.. WARNING::
|
|
|
|
|
|
|
|
|
|
If you have problems with printing support review the last section `Fix
|
|
|
|
|
printing in Debian Squeeze`_.
|
|
|
|
|
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
LibrePlan manual installation
|
2011-06-15 11:53:12 +02:00
|
|
|
-----------------------------
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
Debian/Ubuntu
|
|
|
|
|
~~~~~~~~~~~~~
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Install requirements::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
# apt-get install openjdk-6-jre postgresql postgresql-client tomcat6 libpg-java ttf-freefont cutycapt xvfb
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Connect to database::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
# su postgres -c psql
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Use SQL sentences to create database::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
CREATE DATABASE libreplan;
|
|
|
|
|
CREATE USER libreplan WITH PASSWORD 'libreplan';
|
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE libreplan TO libreplan;
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Download database installation script::
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-12-22 22:05:02 +01:00
|
|
|
$ wget -O install.sql http://downloads.sourceforge.net/project/librelplan/LibrePlan/install_1.2.0.sql
|
2009-06-25 19:31:05 +02:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Create database structure::
|
2010-01-07 10:16:29 +01:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
$ psql -h localhost -U libreplan -W libreplan < install.sql
|
2010-12-15 10:31:42 +01:00
|
|
|
|
2011-12-23 13:59:11 +01:00
|
|
|
.. WARNING::
|
|
|
|
|
|
|
|
|
|
It is very important to execute the previous command specifiying
|
|
|
|
|
``libreplan`` user (as you can see in the ``-U`` option). Otherwise your
|
|
|
|
|
LibrePlan installation is not going to start properly and you could find in
|
|
|
|
|
your log files something like that::
|
|
|
|
|
|
|
|
|
|
JDBCExceptionReporter - ERROR: permission denied for relation entity_sequence
|
|
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Download ``.war`` file from SourceForge.net::
|
2010-01-07 10:16:29 +01:00
|
|
|
|
2011-12-22 22:05:02 +01:00
|
|
|
$ wget -O libreplan.war http://downloads.sourceforge.net/project/libreplan/LibrePlan/libreplan_1.2.0.war
|
2010-12-15 10:31:42 +01:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
* Create a new file ``/etc/tomcat6/Catalina/localhost/libreplan.xml`` (file
|
2011-06-15 11:53:12 +02:00
|
|
|
name has to match with ``.war`` name) with database configuration for
|
|
|
|
|
Tomcat 6::
|
2010-01-07 10:16:29 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2010-01-07 10:16:29 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
<Context antiJARLocking="true" path="">
|
2011-10-28 08:17:54 +02:00
|
|
|
<Resource name="jdbc/libreplan-ds" auth="Container"
|
2011-06-15 11:53:12 +02:00
|
|
|
type="javax.sql.DataSource"
|
|
|
|
|
maxActive="100" maxIdle="30" maxWait="10000"
|
2011-10-28 08:17:54 +02:00
|
|
|
username="libreplan" password="libreplan"
|
2011-06-15 11:53:12 +02:00
|
|
|
driverClassName="org.postgresql.Driver"
|
2011-10-28 08:17:54 +02:00
|
|
|
url="jdbc:postgresql://localhost/libreplan" />
|
2011-06-15 11:53:12 +02:00
|
|
|
</Context>
|
2010-01-07 10:16:29 +01:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
* Add a new Tomcat 6 policy file ``/etc/tomcat6/policy.d/51libreplan.policy``
|
2011-06-15 11:53:12 +02:00
|
|
|
with the following content::
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
grant codeBase "file:/var/lib/tomcat6/webapps/libreplan/-" {
|
2011-06-15 11:53:12 +02:00
|
|
|
permission java.security.AllPermission;
|
|
|
|
|
};
|
2011-10-28 08:17:54 +02:00
|
|
|
grant codeBase "file:/var/lib/tomcat6/webapps/libreplan.war" {
|
2011-06-15 11:53:12 +02:00
|
|
|
permission java.security.AllPermission;
|
|
|
|
|
};
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Add next lines to Tomcat 6 policy file
|
|
|
|
|
``/etc/tomcat6/policy.d/03catalina.policy`` file::
|
2010-12-15 10:31:42 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
grant codeBase "file:${catalina.home}/bin/tomcat-juli.jar" {
|
|
|
|
|
...
|
2011-10-28 08:17:54 +02:00
|
|
|
// begin:libreplan
|
|
|
|
|
permission java.io.FilePermission "${catalina.base}${file.separator}webapps${file.separator}libreplan${file.separator}WEB-INF${file.separator}classes${file.separator}logging.properties", "read";
|
|
|
|
|
// end:libreplan
|
2011-06-15 11:53:12 +02:00
|
|
|
...
|
|
|
|
|
};
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Add link to Java JDBC driver for PostgreSQL in Tomcat6 libraries directory::
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
# ln -s /usr/share/java/postgresql-jdbc3.jar /usr/share/tomcat6/lib/
|
|
|
|
|
|
|
|
|
|
* Copy war to Tomcat 6 web applications directory::
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
# cp libreplan.war /var/lib/tomcat6/webapps/
|
2011-06-15 11:53:12 +02:00
|
|
|
|
|
|
|
|
* Restart Tomcat 6::
|
|
|
|
|
|
|
|
|
|
# /etc/init.d/tomcat6 restart
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
* Go to http://localhost:8080/libreplan/
|
2011-06-15 11:53:12 +02:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
.. WARNING::
|
|
|
|
|
|
|
|
|
|
If you have problems with printing support review the last section `Fix
|
|
|
|
|
printing in Debian Squeeze`_.
|
|
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
|
|
|
|
|
openSUSE
|
|
|
|
|
~~~~~~~~
|
|
|
|
|
|
|
|
|
|
* Install requirements::
|
|
|
|
|
|
|
|
|
|
# zypper install java-1_6_0-openjdk postgresql-server postgresql tomcat6 freefont xorg-x11-server
|
|
|
|
|
|
2011-06-15 19:30:57 +02:00
|
|
|
* JDBC Driver manual installation::
|
2011-06-15 11:53:12 +02:00
|
|
|
|
|
|
|
|
# cd /usr/share/java/
|
|
|
|
|
# wget http://jdbc.postgresql.org/download/postgresql-9.0-801.jdbc3.jar
|
|
|
|
|
# mv postgresql-9.0-801.jdbc3.jar postgresql-jdbc3.jar
|
|
|
|
|
|
|
|
|
|
* Follow instructions at ``HACKING`` file to compile and install CutyCapt
|
|
|
|
|
|
|
|
|
|
* Start database service::
|
|
|
|
|
|
|
|
|
|
# /etc/init.d/postgresql start
|
|
|
|
|
|
|
|
|
|
* Connect to database::
|
|
|
|
|
|
|
|
|
|
# su postgres -c psql
|
|
|
|
|
|
2011-06-15 19:30:57 +02:00
|
|
|
* SQL sentences to create database::
|
2011-06-15 11:53:12 +02:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
CREATE DATABASE libreplan;
|
|
|
|
|
CREATE USER libreplan WITH PASSWORD 'libreplan';
|
|
|
|
|
GRANT ALL PRIVILEGES ON DATABASE libreplan TO libreplan;
|
2011-06-15 11:53:12 +02:00
|
|
|
|
|
|
|
|
* Set ``postgres`` user password::
|
|
|
|
|
|
|
|
|
|
ALTER USER postgres WITH PASSWORD 'postgres';
|
|
|
|
|
|
|
|
|
|
* Edit ``/var/lib/pgsql/data/pg_hba.conf`` and replace ``ident`` by ``md5``
|
|
|
|
|
|
|
|
|
|
* Restart database service::
|
|
|
|
|
|
|
|
|
|
# /etc/init.d/postgresql restart
|
|
|
|
|
|
|
|
|
|
* Download database installation script::
|
|
|
|
|
|
2011-12-22 22:05:02 +01:00
|
|
|
$ wget -O install.sql http://downloads.sourceforge.net/project/libreplan/LibrePlan/install_1.2.0.sql
|
2011-06-15 11:53:12 +02:00
|
|
|
|
|
|
|
|
* Create database structure::
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
$ psql -h localhost -U libreplan -W libreplan < install.sql
|
2011-06-15 11:53:12 +02:00
|
|
|
|
2011-12-23 13:59:11 +01:00
|
|
|
.. WARNING::
|
|
|
|
|
|
|
|
|
|
It is very important to execute the previous command specifiying
|
|
|
|
|
``libreplan`` user (as you can see in the ``-U`` option). Otherwise your
|
|
|
|
|
LibrePlan installation is not going to start properly and you could find in
|
|
|
|
|
your log files something like that::
|
|
|
|
|
|
|
|
|
|
JDBCExceptionReporter - ERROR: permission denied for relation entity_sequence
|
|
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
* Download ``.war`` file from SourceForge.net::
|
|
|
|
|
|
2011-12-22 22:05:02 +01:00
|
|
|
$ wget -O libreplan.war http://downloads.sourceforge.net/project/libreplan/LibrePlan/libreplan_1.2.0.war
|
2011-06-15 11:53:12 +02:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
* Create a new file ``/etc/tomcat6/Catalina/localhost/libreplan.xml`` (file
|
2011-06-15 11:53:12 +02:00
|
|
|
name has to match with ``.war`` name) with database configuration for
|
|
|
|
|
Tomcat 6::
|
|
|
|
|
|
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
|
|
|
|
|
<Context antiJARLocking="true" path="">
|
2011-10-28 08:17:54 +02:00
|
|
|
<Resource name="jdbc/libreplan-ds" auth="Container"
|
2011-06-15 11:53:12 +02:00
|
|
|
type="javax.sql.DataSource"
|
|
|
|
|
maxActive="100" maxIdle="30" maxWait="10000"
|
2011-10-28 08:17:54 +02:00
|
|
|
username="libreplan" password="libreplan"
|
2011-06-15 11:53:12 +02:00
|
|
|
driverClassName="org.postgresql.Driver"
|
2011-10-28 08:17:54 +02:00
|
|
|
url="jdbc:postgresql://localhost/libreplan" />
|
2011-06-15 11:53:12 +02:00
|
|
|
</Context>
|
|
|
|
|
|
|
|
|
|
* Add link to Java JDBC driver for PostgreSQL in Tomcat6 libraries directory::
|
|
|
|
|
|
|
|
|
|
# ln -s /usr/share/java/postgresql-jdbc3.jar /usr/share/tomcat6/lib/
|
|
|
|
|
|
|
|
|
|
* Copy war to Tomcat 6 web applications directory::
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
# cp libreplan.war /srv/tomcat6/webapps/
|
2011-06-15 11:53:12 +02:00
|
|
|
|
|
|
|
|
* Restart Tomcat 6::
|
|
|
|
|
|
|
|
|
|
# /etc/init.d/tomcat6 restart
|
|
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
* Go to http://localhost:8080/libreplan/
|
2010-12-15 10:31:42 +01:00
|
|
|
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-06-15 11:53:12 +02:00
|
|
|
Logs
|
|
|
|
|
----
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
Since *LibrePlan 1.1.1* log system is configured automatically creating a new
|
2011-06-15 11:53:12 +02:00
|
|
|
folder under ``/var/log/tomcat6/`` with ``.war`` name. For example:
|
2011-12-01 16:22:34 +01:00
|
|
|
``/var/log/tomcat6/libreplan/``.
|
2010-01-12 13:43:40 +01:00
|
|
|
|
2011-10-28 08:17:54 +02:00
|
|
|
Inside this new directory there will be two files (``libreplan.log`` and
|
|
|
|
|
``libreplan-error.log``) that will be rotated every day.
|
2011-12-14 18:25:30 +01:00
|
|
|
|
|
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
Fix printing in Debian Squeeze
|
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
|
|
Since LibrePlan 1.2 printing support is not working properly in Debian Squeeze.
|
|
|
|
|
To fix this issue, basically, you have to get a newer version of CutyCapt and
|
|
|
|
|
WebKit dependencies from Debian testing.
|
|
|
|
|
|
|
|
|
|
Instructions:
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
* Make sure stable remains the default distribution to pull packages from::
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
# echo 'APT::Default-Release "stable";' >> /etc/apt/apt.conf
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
* Add a new repository to make testing packages available to ``apt-get``::
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
# echo "deb http://ftp.debian.org/debian testing main" >> /etc/apt/sources.list
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
* Refresh package index::
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
# apt-get update
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
* Fetch and install ``cutycapt`` (and its dependencies) from testing::
|
2011-12-14 18:25:30 +01:00
|
|
|
|
2011-12-15 12:29:02 +01:00
|
|
|
# apt-get -t testing install cutycapt
|