Alfresco on Gentoo in a 10 year old Pentium 3

This guide is based on the lost Gentoo Wiki  that was obtained from Google Cache. The machine is a Pentium 3 with 256Mb of ram.

The Motherboard

emerge -p java-config
emerge -p virtual/jdk
java-config --list-available-vms
*)      Sun JDK [sun-jdk-1.6]
nano -w /etc/java-config-2/build/jdk.conf
nano -w /etc/java-config-2/build/compilers.conf
COMPILERS="ecj-3.1 jikes javac"
Tomcat 6
emerge -v tomcat
vi /etc/tomcat-6/tomcat-users.xml
  <role rolename="manager"/>
  <user username="tomcat" password="s3cret" roles="manager"/>
/etc/init.d/tomcat-x.y start
Add tomcat to startup on boot
rc-update add tomcat5 default
emerge dev-java/hibernate dev-java/log4j dev-java/lucene \
 dev-java/sun-jce-bin jdbc-mysql media-gfx/imagemagick
Unmask Hibernate /*db abstraction*/
nano -w /etc/portage/package.keywords
~dev-java/hibernate-3.1.3 ~x86
~dev-java/oscache-2.0.2 ~x86
~dev-java/asm-2.2.3 ~x86
=dev-java/cglib-2.2* ~x86
~dev-java/sun-jacc-api-20070102 ~x86
~dev-java/ehcache-1.1 ~x86
*  1. Visit
 *  2. Accept the License Agreement
 *  3. Download
 *  4. Move the file to /usr/portage/distfiles
emerge -v jta
 *  Due to license restrictions, we cannot fetch the
 *  distributables automagically.
 *  1. Visit
 *  2. Select 'Java Transaction API Specification 1.0.1B Class Files 1.0.1B'
 *  3. Download
 *  4. Move file to /usr/portage/distfiles
 *  5. Restart the emerge process
emerge -v dev-java/sun-jce-bin
Please download from:
 * (JCE Unlimited Strength Jurisdiction Policy Files 6)
 * and move it to /usr/portage/distfiles
Download alfresco-community-war-2.9.0B.tar.gz from here:
tar xzvf ./alfresco-community-war-2.9.0B.tar.gz -C /opt/alfresco
vi /etc/mysql/my.cnf
default-storage-engine          = innodb
mkdir -p /var/lib/alfresco/{alf_data,tmp}
chown -R tomcat:tomcat /var/lib/alfresco/
cp /opt/alfresco/alfresco.war /var/lib/tomcat-6/webapps/
chown tomcat:tomcat /var/lib/tomcat-6/webapps/alfresco.war
rc-config restart tomcat-6
Check /var/log/tomcat-6/catalina.out and watch for the line "INFO: Deploying web application archive 
vi /var/lib/tomcat-6/webapps/alfresco
db.driver=com.mysql.jdbc.Driver<your Alfresco database name>
db.username=<your Alfresco database user name>
db.password=<your Alfresco database user password>
vi /var/lib/tomcat-6/webapps/alfresco/WEB-INF/classes/
rc-config restart tomcat-6
ln -svf $(awk 'BEGIN {FS="="}/^CATALINA_LIBDIR/{print $2}' /etc/conf.d/tomcat-6) $(awk 'BEGIN 
{FS="="}/^CLASSPATH/{print $2}' /usr/share/jdbc-mysql/package.env|sed "s/[\"]//g")
cd /usr/share
cp mysql.jar /usr/share/tomcat-6/lib/jdbc-mysql.jar
vi /etc/conf.d/tomcat-6
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Xms1024M -Xmx1024M -XX:PermSize=256M -XX:MaxPermSize=256M"
/* Changed to 200M bec system is only 256M; ;-) */
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Xms200M -Xmx200M -XX:PermSize=128M -XX:MaxPermSize=128M"
/etc/init.d/tomcat-6 restart
/* determine physical ram */
emerge -v dmidecode
dmidecode > dmi.out
vi dmi.out

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.