Warning: UPDATE command denied to user 'tanagurudrupal'@'10.0.84.72' for table 'drupal_cache' query: UPDATE drupal_cache SET data = 'a:284:{s:13:\"theme_default\";s:14:\"garland-Open-S\";s:13:\"filter_html_1\";i:1;s:18:\"node_options_forum\";a:1:{i:0;s:6:\"status\";}s:18:\"drupal_private_key\";s:64:\"d0f6ffe8a97f320aa81dc41da9aa6da2eac5bb4ab9cbd5ef31e547e821e7a920\";s:10:\"menu_masks\";a:26:{i:0;i:127;i:1;i:125;i:2;i:63;i:3;i:62;i:4;i:61;i:5;i:59;i:6;i:58;i:7;i:56;i:8;i:31;i:9;i:30;i:10;i:29;i:11;i:25;i:12;i:24;i:13;i:21;i:14;i:15;i:15;i:14;i:16;i:13;i:17;i:12;i:18;i:11;i:19;i:7;i:20;i:6;i:21;i:5;i:22;i:4;i:23;i:3;i:24;i:2;i:25;i:1;}s:12:\"install_task\";s:4:\"done\";s:13:\"menu_expanded\";a:0:{}s:16:\"language_default\";O:8:\"stdClass\":11:{s:8:\"language\";s:2:\"en\";s:4:\"name\";s:7:\"English\";s:6:\"native\& in /home/tanaguru/www/includes/database.mysqli.inc on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/tanaguru/www/includes/database.mysqli.inc:134) in /home/tanaguru/www/includes/bootstrap.inc on line 729

Warning: Cannot modify header information - headers already sent by (output started at /home/tanaguru/www/includes/database.mysqli.inc:134) in /home/tanaguru/www/includes/bootstrap.inc on line 730

Warning: Cannot modify header information - headers already sent by (output started at /home/tanaguru/www/includes/database.mysqli.inc:134) in /home/tanaguru/www/includes/bootstrap.inc on line 731

Warning: Cannot modify header information - headers already sent by (output started at /home/tanaguru/www/includes/database.mysqli.inc:134) in /home/tanaguru/www/includes/bootstrap.inc on line 732
Ubuntu prerequisites (Tanaguru 3.x) | Tanaguru

Ubuntu prerequisites (Tanaguru 3.x)

  • warning: Cannot modify header information - headers already sent by (output started at /home/tanaguru/www/includes/database.mysqli.inc:134) in /home/tanaguru/www/includes/common.inc on line 153.
  • user warning: UPDATE command denied to user 'tanagurudrupal'@'10.0.84.72' for table 'drupal_cache_filter' query: UPDATE drupal_cache_filter SET data = '<p>Here are the prerequesites you have to fulfill before <a href=\"http://www.tanaguru.org/en/content/ubuntu-installation-tanaguru-3x\">installing Tanaguru 3.x on Ubuntu</a>.</p>\n<p>This procedure have been validated on <strong>Ubuntu 12.04 LTS </strong>distribution<strong>.</strong></p>\n<h2>Update repositories</h2>\n<p>Edit the /etc/apt/sources.list file</p>\n<pre>sudo /usr/bin/editor /etc/apt/sources.list</pre><p>Uncomment the following lines :</p>\n<pre>deb <a title=\"http://archive.canonical.com/ubuntu\" href=\"http://archive.canonical.com/ubuntu\">http://archive.canonical.com/ubuntu</a> lucid partner<br />deb-src <a title=\"http://archive.canonical.com/ubuntu\" href=\"http://archive.canonical.com/ubuntu\">http://archive.canonical.com/ubuntu</a> lucid partner<br /></pre><p>Ensure the machine is up to date.</p>\n<pre>sudo aptitude update<br />sudo aptitude safe-upgrade<br /></pre><h2>Open JDK</h2>\n<pre class=\"linux-code\"><code>sudo apt-get install </code>openjdk-6-jre<br />sudo update-java-alternatives -s java-1.6.0-openjdk</pre><h2>Locale</h2>\n<h3>Locale and locale-gen</h3>\n<p>Verify the locale with</p>\n<pre>locale -a</pre><p>You must have a something different from C and POSIX. This means, if you already have C and POSIX, you must have a third locale defined. If not, add another one (let say fr_FR.UTF-8):</p>\n<pre><p>sudo locale-gen fr_FR.UTF-8</p></pre><p>Please verify again your locale definition with</p>\n<pre>locale -a</pre><h3>Lang</h3>\n<p>Verify the locale definition:</p>\n<pre>cat /etc/default/locale</pre><p>You must have something different from LANG=\"C\", which could be \"fr_FR.UTF-8\", or \"fr_CA.UTF-8\", or \"en_GB.UTF-8\"...</p>\n<h2>Unzip</h2>\n<pre>sudo aptitude install unzip</pre><h2>Mysql</h2>\n<h3>Installation</h3>\n<pre>sudo aptitude install mysql-server-5.5 libmysql-java</pre><h3>Configuration</h3>\n<p>Edit the my.cnf mysql configuration file.</p>\n<pre>sudo vi /etc/mysql/my.cnf</pre><p>Set the max_allowed_packet option to 16M (default is 1M)</p>\n<pre>max_allowed_packet&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 16M</pre><p>Restart mysql service</p>\n<pre>sudo service mysql restart</pre><h2>Tomcat</h2>\n<pre><span style=\"color: #000000; font-family: monospace; font-size: 12px; font-weight: normal; line-height: 12px;\">sudo aptitude install tomcat6 libspring-instrument-java</span></pre><pre><span style=\"color: #000000; font-family: monospace; font-size: 12px; line-height: 12px; font-weight: normal;\">sudo ln -s /usr/share/java/spring3-instrument-tomcat.jar /usr/share/tomcat6/lib/spring3-instrument-tomcat.jar</span></pre><pre>sudo ln -s /usr/share/java/mysql-connector-java.jar /usr/share/tomcat6/lib/mysql-connector-java.jar</pre><h2><a name=\"xvfb\"></a>XVFB</h2>\n<pre>sudo aptitude install xvfb<br /></pre><p>Create the startup script in /etc/init.d/xvfb</p>\n<pre>sudo touch /etc/init.d/xvfb</pre><p>Add the following content to the xvfb startup script.</p>\n<pre>#!/bin/sh<br /><br />set -e<br /><br />RUN_AS_USER=tomcat6<br />OPTS=\":99 -screen 1 1024x768x24 -nolisten tcp\"<br />XVFB_DIR=/usr/bin<br />PIDFILE=/var/run/xvfb<br /><br />case $1 in<br /><br />start)<br />&nbsp;&nbsp;&nbsp; start-stop-daemon --chuid $RUN_AS_USER -b --start --exec $XVFB_DIR/Xvfb --make-pidfile --pidfile $PIDFILE -- $OPTS &amp;<br />;;<br /><br />stop)<br />&nbsp;&nbsp;&nbsp; start-stop-daemon --stop --user $RUN_AS_USER --pidfile $PIDFILE<br />&nbsp;&nbsp;&nbsp; rm -f $PIDFILE<br />;;<br /><br />restart)<br />&nbsp;&nbsp;&nbsp; if start-stop-daemon --test --stop --user $RUN_AS_USER --pidfile $PIDFILE &gt;/dev/null; then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $0 stop<br />&nbsp;&nbsp;&nbsp; fi;<br />&nbsp;&nbsp;&nbsp; $0 start<br />;;<br /><br />*)<br />&nbsp;&nbsp;&nbsp; echo \"Usage: $0 (start|restart|stop)\"<br />&nbsp;&nbsp;&nbsp; exit 1<br />;;<br /><br />esac<br /><br />exit 0<br /></pre><p>start Xvfb</p>\n<pre>sudo chmod +x /etc/init.d/xvfb<br />sudo /etc/init.d/xvfb start<br /></pre><p>Configure xvfb to run at startup</p>\n<pre>sudo update-rc.d xvfb defaults<br /></pre><h2><a name=\"firefox\"></a>Firefox</h2>\n<h3>For 32-bit architecture</h3>\n<p>Retrieve the <a title=\"installation tarball of firefox version 24.0-esr for 32-bit architecture\" href=\"http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr/linux-i686/en-GB/firefox-24.0esr.tar.bz2\">version 24.0esr of firefox.</a></p>\n<p>Install it on your file system and make sure the binary is executable for the user tomcat</p>\n<pre>cd ~<br />wget <a href=\"http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr/linux-i686/en-GB/firefox-24.0esr.tar.bz2\" title=\"http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr/linux-i686/en-GB/firefox-24.0esr.tar.bz2\">http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr...</a><br />sudo cp firefox-24.0esr.tar.bz2 /opt<br />sudo cd /opt<br />tar xvfj firefox-24.0esr.tar.bz2</pre><h3 style=\"font-size: 16px;\">For 64-bit architecture</h3>\n<p>Retrieve the&nbsp;<a title=\"installation tarball of firefox version 10.0.5-esr for 64-bit architrecture\" href=\"http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr/linux-x86_64/en-GB/firefox-24.0esr.tar.bz2\">version 24.0esr of firefox.</a></p>\n<p>Install it on your file system and make sure the binary is executable for the user tomcat</p>\n<pre style=\"font-size: 12px; line-height: 12px;\">cd ~<br />wget <a href=\"http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr/linux-x86_64/en-GB/firefox-24.0esr.tar.bz2\" title=\"http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr/linux-x86_64/en-GB/firefox-24.0esr.tar.bz2\">http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr...</a><br />sudo cp firefox-24.0esr.tar.bz2 /opt<br />sudo cd /opt<br />tar xvfj firefox-24.0esr.tar.bz2</pre><h2>Mail SMTP</h2>\n<pre><code>sudo aptitude install postfix mailutils<br /><br />sudo dpkg-reconfigure postfix</code></pre><p>Once the configuration is displayed, options are :</p>\n<ul>\n<li> configuration type: satellite</li>\n<li>SMTP relay: &lt;none&gt; (<strong>this</strong> is the trick, don\'t type anything here)</li>\n</ul>\n<h2>Next step</h2>\n<p>Now you will be able to <a href=\"http://www.tanaguru.org/en/content/ubuntu-installation-tanaguru-3x\">install Tanaguru 3.x on Ubuntu</a>.</p>\n', created = 1498491533, expire = 1498577933, headers = '', serialized = 0 WHERE cid = '2:039cf940f1c3a84ccf7bcab427306d6d' in /home/tanaguru/www/includes/cache.inc on line 112.
  • user warning: UPDATE command denied to user 'tanagurudrupal'@'10.0.84.72' for table 'drupal_cache_block' query: UPDATE drupal_cache_block SET data = 'a:2:{s:7:\"subject\";s:15:\"Book navigation\";s:7:\"content\";s:2116:\"<div id=\"book-block-menu-518\" class=\"book-block-menu\">\n <ul class=\"menu\"><li class=\"collapsed first last\"><a href=\"/en/content/about\">About</a></li>\n</ul></div>\n<div id=\"book-block-menu-234\" class=\"book-block-menu\">\n <ul class=\"menu\"><li class=\"collapsed first last\"><a href=\"/en/content/download\">Download</a></li>\n</ul></div>\n<div id=\"book-block-menu-108\" class=\"book-block-menu\">\n <ul class=\"menu\"><li class=\"expanded first last active-trail\"><a href=\"/en/content/documentation\">Documentation</a><ul class=\"menu\"><li class=\"expanded first active-trail\"><a href=\"/en/content/installation\">Installation</a><ul class=\"menu\"><li class=\"collapsed first\"><a href=\"/en/content/tanaguru-1x\">Tanaguru 1.x </a></li>\n<li class=\"collapsed\"><a href=\"/en/content/tanaguru-2x\">Tanaguru 2.x</a></li>\n<li class=\"expanded last active-trail\"><a href=\"/en/content/tanaguru-3x\">Tanaguru 3.x</a><ul class=\"menu\"><li class=\"leaf first\"><a href=\"/en/content/upgrade-2x-3x\">Upgrade from 2.x to 3.x</a></li>\n<li class=\"leaf active-trail\"><a href=\"/en/content/ubuntu-prerequisites-tanaguru-3x\" class=\"active\">Ubuntu prerequisites (Tanaguru 3.x)</a></li>\n<li class=\"leaf last\"><a href=\"/en/content/ubuntu-installation-tanaguru-3x\">Ubuntu Installation (Tanaguru 3.x)</a></li>\n</ul></li>\n</ul></li>\n<li class=\"collapsed\"><a href=\"/en/content/configuration\">Configuration</a></li>\n<li class=\"collapsed\"><a href=\"/en/content/administration\">Administration</a></li>\n<li class=\"collapsed\"><a href=\"/en/content/rules-design\">Rules Design</a></li>\n<li class=\"collapsed last\"><a href=\"/en/content/usage\">Usage</a></li>\n</ul></li>\n</ul></div>\n<div id=\"book-block-menu-543\" class=\"book-block-menu\">\n <ul class=\"menu\"><li class=\"collapsed first last\"><a href=\"/en/content/features\">Features</a></li>\n</ul></div>\n<div id=\"book-block-menu-513\" class=\"book-block-menu\">\n <ul class=\"menu\"><li class=\"collapsed first last\"><a href=\"/en/content/get-involved\">Get involved</a></li>\n</ul></div>\n<div id=\"book-block-menu-233\" class=\"book-block-menu\">\n <ul class=\"menu\"><li class=\"leaf first last\"><a href=\"/en/content/support\">Support</a></li>\n</ul></div>\n\";}', created = 1498491533, expire = -1, headers = '', serialized = 1 WHERE cid = 'book:0:garland-Open-S:en:r.1:http://open-s.com/en/content/ubuntu-prerequisites-tanaguru-3x' in /home/tanaguru/www/includes/cache.inc on line 112.
  • user warning: UPDATE command denied to user 'tanagurudrupal'@'10.0.84.72' for table 'drupal_cache_block' query: UPDATE drupal_cache_block SET data = '', created = 1498491533, expire = -1, headers = '', serialized = 0 WHERE cid = 'profile:0:garland-Open-S:en:r.1:http://open-s.com/en/content/ubuntu-prerequisites-tanaguru-3x' in /home/tanaguru/www/includes/cache.inc on line 112.
mfaure's picture

Here are the prerequesites you have to fulfill before installing Tanaguru 3.x on Ubuntu.

This procedure have been validated on Ubuntu 12.04 LTS distribution.

Update repositories

Edit the /etc/apt/sources.list file

sudo /usr/bin/editor /etc/apt/sources.list

Uncomment the following lines :

deb http://archive.canonical.com/ubuntu lucid partner
deb-src http://archive.canonical.com/ubuntu lucid partner

Ensure the machine is up to date.

sudo aptitude update
sudo aptitude safe-upgrade

Open JDK

sudo apt-get install openjdk-6-jre
sudo update-java-alternatives -s java-1.6.0-openjdk

Locale

Locale and locale-gen

Verify the locale with

locale -a

You must have a something different from C and POSIX. This means, if you already have C and POSIX, you must have a third locale defined. If not, add another one (let say fr_FR.UTF-8):

sudo locale-gen fr_FR.UTF-8

Please verify again your locale definition with

locale -a

Lang

Verify the locale definition:

cat /etc/default/locale

You must have something different from LANG="C", which could be "fr_FR.UTF-8", or "fr_CA.UTF-8", or "en_GB.UTF-8"...

Unzip

sudo aptitude install unzip

Mysql

Installation

sudo aptitude install mysql-server-5.5 libmysql-java

Configuration

Edit the my.cnf mysql configuration file.

sudo vi /etc/mysql/my.cnf

Set the max_allowed_packet option to 16M (default is 1M)

max_allowed_packet      = 16M

Restart mysql service

sudo service mysql restart

Tomcat

sudo aptitude install tomcat6 libspring-instrument-java
sudo ln -s /usr/share/java/spring3-instrument-tomcat.jar /usr/share/tomcat6/lib/spring3-instrument-tomcat.jar
sudo ln -s /usr/share/java/mysql-connector-java.jar /usr/share/tomcat6/lib/mysql-connector-java.jar

XVFB

sudo aptitude install xvfb

Create the startup script in /etc/init.d/xvfb

sudo touch /etc/init.d/xvfb

Add the following content to the xvfb startup script.

#!/bin/sh

set -e

RUN_AS_USER=tomcat6
OPTS=":99 -screen 1 1024x768x24 -nolisten tcp"
XVFB_DIR=/usr/bin
PIDFILE=/var/run/xvfb

case $1 in

start)
    start-stop-daemon --chuid $RUN_AS_USER -b --start --exec $XVFB_DIR/Xvfb --make-pidfile --pidfile $PIDFILE -- $OPTS &
;;

stop)
    start-stop-daemon --stop --user $RUN_AS_USER --pidfile $PIDFILE
    rm -f $PIDFILE
;;

restart)
    if start-stop-daemon --test --stop --user $RUN_AS_USER --pidfile $PIDFILE >/dev/null; then
        $0 stop
    fi;
    $0 start
;;

*)
    echo "Usage: $0 (start|restart|stop)"
    exit 1
;;

esac

exit 0

start Xvfb

sudo chmod +x /etc/init.d/xvfb
sudo /etc/init.d/xvfb start

Configure xvfb to run at startup

sudo update-rc.d xvfb defaults

Firefox

For 32-bit architecture

Retrieve the version 24.0esr of firefox.

Install it on your file system and make sure the binary is executable for the user tomcat

cd ~
wget http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr...
sudo cp firefox-24.0esr.tar.bz2 /opt
sudo cd /opt
tar xvfj firefox-24.0esr.tar.bz2

For 64-bit architecture

Retrieve the version 24.0esr of firefox.

Install it on your file system and make sure the binary is executable for the user tomcat

cd ~
wget http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/24.0esr...
sudo cp firefox-24.0esr.tar.bz2 /opt
sudo cd /opt
tar xvfj firefox-24.0esr.tar.bz2

Mail SMTP

sudo aptitude install postfix mailutils

sudo dpkg-reconfigure postfix

Once the configuration is displayed, options are :

  • configuration type: satellite
  • SMTP relay: <none> (this is the trick, don't type anything here)

Next step

Now you will be able to install Tanaguru 3.x on Ubuntu.