<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>khax.net &#187; Alfresco</title>
	<atom:link href="http://blog.khax.net/tag/alfresco/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.khax.net</link>
	<description>Adventures in Ubuntu systems administration</description>
	<lastBuildDate>Thu, 08 Jul 2010 02:01:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.khax.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6ccca40b5ab19d33d91882e4d8f9a9c4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>khax.net &#187; Alfresco</title>
		<link>http://blog.khax.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.khax.net/osd.xml" title="khax.net" />
	<atom:link rel='hub' href='http://blog.khax.net/?pushpress=hub'/>
		<item>
		<title>Liferay inroads</title>
		<link>http://blog.khax.net/2009/05/25/liferay-inroads/</link>
		<comments>http://blog.khax.net/2009/05/25/liferay-inroads/#comments</comments>
		<pubDate>Mon, 25 May 2009 13:29:12 +0000</pubDate>
		<dc:creator>agentk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[liferay]]></category>
		<category><![CDATA[mmozine]]></category>
		<category><![CDATA[wintersky]]></category>

		<guid isPermaLink="false">http://blog.khax.net/?p=139</guid>
		<description><![CDATA[After installing Alfresco and admittedly suffering a few hiccups with it I seem to be making enough progress that I also decided to investigate Liferay as an alternative to Plone as our intranet portal and internal information site. There are some areas that Plone really does well such as the content type handling and content [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=139&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After installing Alfresco and admittedly suffering a few hiccups with it I seem to be making enough progress that I also decided to investigate Liferay as an alternative to Plone as our intranet portal and internal information site.</p>
<p>There are some areas that Plone really does well such as the content type handling and content workflow. But lack of documentation in other areas has left me pulling my hair out at times, such as ldap user and group integration with openldap and active directory, debugging modules and some new gotcha each time something is updated in a buildout.</p>
<p>Liferay has also had a steep learning curve, but I found it no where as bad as Plone. No messing in the ZMI for setting up ldap auth, changing database backends or setting portal defaults. Just one config file. I have found the speed surprising compared to Plone on the same hardware too. With java webapps I have tried in the past I have been left with the impression of them being bloated, memory hungry and slow. But I am slowly coming around thanks to Alfresco and Liferay.<span id="more-139"></span></p>
<p>It took a long time to get the liferay-portal-5.2.2.war running in the ubuntu jaunty tomcat6 environment and it still had a couple of issues so I just went back to running the liferay-timcat6 bundle which does run well without issue. I guess that is the price I pay for avoiding java for so long.</p>
<p>To make it suitable for my needs the interface needed to be cleaned up and I decided to just create a fresh theme which can be seen in the screenshot below. The theme is called Winter Sky and is adapted from <a href="http://www.wpthemedesigner.com/2009/02/09/the-mmozine-theme/" target="_blank">MMOZINE</a>, and is available from the Liferay community plugin section.</p>
<p><a href="http://khax.files.wordpress.com/2009/05/screenshot.png"><img class="aligncenter size-medium wp-image-140" title="screenshot" src="http://khax.files.wordpress.com/2009/05/screenshot.png?w=300&#038;h=223" alt="screenshot" width="300" height="223" /></a></p>
<p>Other additions over the classic liferay theme are multiple level navigation menus and print styling css targets. Which were just a couple of extras that made things much more usable for my victims&#8230;. oh.. target users.</p>
<p>There are still a few visual glitches to fix, but everything seems usable and I will post the link to the Liferay project page once it is approved.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/khax.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/khax.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/khax.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/khax.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/khax.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/khax.wordpress.com/139/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/khax.wordpress.com/139/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/khax.wordpress.com/139/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=139&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.khax.net/2009/05/25/liferay-inroads/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">agentk</media:title>
		</media:content>

		<media:content url="http://khax.files.wordpress.com/2009/05/screenshot.png?w=300" medium="image">
			<media:title type="html">screenshot</media:title>
		</media:content>
	</item>
		<item>
		<title>Alfresco setup in Ubuntu 8.10 with git</title>
		<link>http://blog.khax.net/2009/02/26/alfresco-setup-in-ubuntu-810-with-git/</link>
		<comments>http://blog.khax.net/2009/02/26/alfresco-setup-in-ubuntu-810-with-git/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 07:56:28 +0000</pubDate>
		<dc:creator>agentk</dc:creator>
				<category><![CDATA[Alfresco]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[puppet]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ubuntu-8.10]]></category>

		<guid isPermaLink="false">http://blog.khax.net/?p=11</guid>
		<description><![CDATA[Alfresco My goal was to install Alfresco in Ubuntu-8.10 and store the Alfresco install and config in git excluding the application data in such a way that I am able to checkout my Alfresco git repo on a new Ubuntu install and have Alfresco running immediately. This turned out to be fairly easy and makes [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=11&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Alfresco</h3>
<p>My goal was to install Alfresco in Ubuntu-8.10 and store the Alfresco install and config in git excluding the application data in such a way that I am able to checkout my Alfresco git repo on a new Ubuntu install and have Alfresco running immediately.</p>
<p>This turned out to be fairly easy and makes testing new configuration changes very simple.</p>
<p>There is plenty of information on configuring Alfresco on the Alfresco wiki, and most of my setup is based on the <a href="http://wiki.alfresco.com/wiki/Installing_Alfresco_Lab_3b_on_Ubuntu_8.04" target="_blank">install tutorial for Ubuntu-8.04</a>. So I will only cover the differences in the way I setup Alfresco.</p>
<h3>Alfresco dependencies in Ubuntu</h3>
<p>I chose to use puppet for taking care of dependencies as it is already in deployment for all the servers I use. The other common way of taking way of taking care of dependencies is to create a script that installs the dependencies and store it in the root Alfresco dir managed by git. If you do not want to setup puppet then see the initialize.sh file below. My puppet rule as follows also installs lighttpd and phpmyadmin.</p>
<pre>class alfresco_base {
        package { [
                imagemagick,
                lighttpd,
                mysql-server,
                'openoffice.org-headless',
                php5-cgi,
                swftools]:
                        ensure =&gt; installed;

                phpmyadmin:
                        ensure =&gt; installed,
                        require =&gt; [Package['php5-cgi'], Package['lighttpd']],
                        notify =&gt; File['50-phpmyadmin.conf'];

                sun-java6-jre:
                        ensure =&gt; installed,
                        require =&gt; Exec[preseed-licence-dlj];
        }

        file {
                '50-phpmyadmin.conf':
                        name =&gt; "/etc/lighttpd/conf-available/50-phpmyadmin.conf",
                        ensure =&gt; "/etc/phpmyadmin/lighttpd.conf",
                        notify =&gt; Exec[lighttpd-enable-phpmyadmin]
        }

        exec {
                "lighttpd-enable-phpmyadmin":
                        command =&gt; "lighty-enable-mod fastcgi phpmyadmin",
                        refreshonly =&gt; true,
                        notify =&gt; Exec[lighttpd-restart];

                "lighttpd-restart":
                        command =&gt; "/etc/init.d/lighttpd restart",
                        refreshonly =&gt; true;

                "preseed-licence-dlj":
                        command =&gt; "echo sun-java5-jdk shared/accepted-sun-dlj-v1-1 boolean true | debconf-set-selections";
        }
}</pre>
<h3>Initially installing Alfresco</h3>
<p>To have something to put into the git repo we first must install Alfresco the usual way for your platform. If you are installing on a 64bit install you will need to install ia32libs first too.</p>
<ul>
<li>
<pre>./Alfresco-Labs-3Stable-Linux-x86-Install --mode console</pre>
</li>
</ul>
<p>Once installed turn your install into a git repo.</p>
<ul>
<li>
<pre>cd Alfresco</pre>
</li>
<li>
<pre>git init</pre>
</li>
<li>
<pre>git add .</pre>
</li>
<li>
<pre>git commit -m "Initial install of Alfresco Labs 3 Stable"</pre>
</li>
</ul>
<p>Now we need to define some exclusions for files that are changed or defined after install such as log folders and user data.</p>
<ul>
<li>
<pre>echo "alf-backstop-*
alf_data/
alfresco.log
tomcat/logs/
tomcat/temp/
tomcat/conf/tomcat-users.xml
tomcat/webapps/alfresco/
tomcat/webapps/share/
tomcat/webapps/studio/
tomcat/work/
virtual-tomcat/logs/
virtual-tomcat/work/
alfresco.log.*
tomcat/webapps/alfresco.war-*" &gt;&gt; .git/info/exclude</pre>
</li>
</ul>
<p>Your git repo is now ready to be uploaded to you preferred place of storing git repos such as a file server or gitosis. I&#8217;m using a file server via ssh.</p>
<ul>
<li>
<pre>ssh git@fileserver "mkdir Alfresco; cd Alfresco; git init"</pre>
</li>
<li>
<pre>git remote add origin git@fileserver:Alfresco</pre>
</li>
<li>
<pre>git push origin master</pre>
</li>
<li>
<pre>scp .git/info/exclude git@fileserver:Alfresco/.git/info/exclude</pre>
</li>
</ul>
<p>Congratulations! You now have a fresh install of Alfresco stored in git on your fileserver.</p>
<h3>Initial configuration</h3>
<p>Before checking out on a new server there are a few changes we needed to commit.</p>
<h4>File: initialize.sh:</h4>
<pre>#!/bin/sh
ALF_HOME=/opt/Alfresco
# Uncomment the following line if not using puppet
#apt-get install imagemagick mysql-server openoffice.org-headless php5-cgi swftools sun-java6-jre
echo "Creating init.d links"
ln -s $ALF_HOME/alfresco.sh /etc/init.d/alfresco
ln -s $ALF_HOME/virtual_alf.sh /etc/init.d/virtual_alf
update-rc.d alfresco defaults
ln -s $ALF_HOME/alfresco.sh /etc/init.d/alfresco
ln -s $ALF_HOME/virtual_alf.sh /etc/init.d/virtual_alf
update-rc.d alfresco defaults
update-rc.d virtual_alf defaults
echo "Creating MySQL database tables - Password for MySQL root user:"
mysql -u root -p &lt; $ALF_HOME/extras/databases/mysql/db_setup.sql
[ ! -d $ALF_HOME/tomcat/logs ] || mkdir $ALF_HOME/tomcat/logs
[ ! -d $ALF_HOME/virtual-tomcat/logs ] || mkdir $ALF_HOME/virtual-tomcat/logs</pre>
<p>initialize.sh links alfresco into /etc/init.d, sets it to start at boot time and creates the alfresco mysql user. If you are using the puppet recipe above then the default mysql root password is blank and should be changed either at the command line or from phpmyadmin (http://localhost/phpmyadmin/). If you are not using puppet then uncomment the apt-get line at the top of the file and customise the dependencies for your needs.</p>
<h4>File: alfresco.sh and virtual_alf.sh</h4>
<p>Change <em>@@ALFRESCO_DIR@@</em> to your install dir, eg: /opt/Alfresco<br />
Change <em>@@JAVA_HOME@@</em> to your jvm dir, eg: /usr/lib/jvm/java-6-sun/</p>
<h4>File: tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties</h4>
<p>There is a conflict with the port used by the virtual server that needs to be changed else the virtual server will not start a second time and complain that the port is already in use (and it is).</p>
<p>Change <em>avm.rmi.service.port=50501</em> to <em>avm.rmi.service.port=50509</em></p>
<h4>Commit</h4>
<p>First get a list of files you have changed:</p>
<ul>
<li>
<pre>git status</pre>
</li>
</ul>
<p>If you want to commit all those changed files then commit like:</p>
<ul>
<li>
<pre>git commit -a -m "You commit message"</pre>
</li>
</ul>
<p>Or if you only want to commit a couple of the changes, eg:</p>
<ul>
<li>
<pre>git add initialize.sh alfresco.sh virtual_alf.sh</pre>
</li>
<li>
<pre>git commit -m "Your commit message"</pre>
</li>
</ul>
<p>Now push the changes:</p>
<ul>
<li>
<pre>git push origin master</pre>
</li>
</ul>
<p>And you will find you use that process fairly often to start with. I also found myself using branching to test larger changes or changes I wanted to keep separate for now. But documenting all of those commands is beyond this post. Other changes I made were changing the database backend to mysql and authentication to active directory.</p>
<h3>Checkout Initialize Run</h3>
<p>Now lets test it. Lets assume your using a clean install of Ubuntu again (with a puppet client setup already).</p>
<ul>
<li>
<pre>sudo git clone git@fileserver:Alfresco /opt/Alfresco</pre>
</li>
<li>
<pre>sudo scp git@fileserver:Alfresco/.git/info/exclude /opt/Alfresco/.git/info/exclude</pre>
</li>
<li>
<pre>sudo /opt/Alfresco/initialize.sh</pre>
</li>
<li>
<pre>sudo /etc/init.d/alfresco start</pre>
</li>
</ul>
<p>Your Alfresco server should start after a few minutes and be ready for testing. You can commit and push changes from any checkout too.</p>
<p>There may be other files or directories you need to add to the exclude file too. You will see most of these after starting Alfresco the running git status.</p>
<h4>Stay tuned for: Active Directory integration</h4>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/khax.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/khax.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/khax.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/khax.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/khax.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/khax.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/khax.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/khax.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=11&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.khax.net/2009/02/26/alfresco-setup-in-ubuntu-810-with-git/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">agentk</media:title>
		</media:content>
	</item>
	</channel>
</rss>