Vai al contenuto

Alfresco 3.2 come pacchetto su ubuntu server 9.04 e 9.10 via repository

28 febbraio 2010

Incuriosito da questo post ho provato ad utilizzare la modalità di installazione dai repository, procedura sia per la ubuntu server 9.04 che in seguito sulla 9.10. Attenzione l’installazione sulla Ubuntu Server 9.10 è un puro esperimento, da non utilizzare in ambienti di produzione, i pacchetti saranno presto inseriti nei repository ufficiali della karmic koala.

Per Ubuntu server 9.04

All’interno del file /etc/apt/sources.list provvedere a de commentare le due due righe relative ai repo dei partner:
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

Eseguire il comando, per il refresh della cache di apt:
sudo apt-get update

Provvediamo ad eseguire l’installazionde di alfresco:
apt-get install alfresco-community

Successivamente ci verrà richiesto di inserire la password di amminstrazione del database MySql, di accettare la licenza di Java e di configurare lo user name e la password del database di alfresco (di default scegliere alfresco/alfresco), accettare la configurazione automatica di Tomcat.

Una volta completata l’installazione ed aver provveduto ad un bel riavvio, Alfresco Explorer e Alfresco Share saranno avviabili ai seguenti indirizzi: http://<IP Adresses or DNS Name>:8080/alfresco o http://<IP Adresses or DNS Name>:8080/share

Riporto inoltre qui di seguito alcuni appunti dal blog di Jared Ottley dal quale ho preso spunto per la realizzazione di questa brevissima guida, appunti che ritengo utili per recuperare le informazioni per la personalizzazione della propria installazione:

Where does everything get put?

Using one of the default linux installs from http://www.alfresco.com, you will typically find alfresco installed under /opt/alfresco. By using the default tomcat, shipped with ubuntu, we followed its directory/configuration structure.
# Alfresco indexes and contentstore: The Alfresco indexes and contentstore can be found under /var/lib/alfresco
# Alfresco war files: The alfresco and share war files can be found under /var/lib/tomcat6/webapps
# Alfresco extension directories: The extension directory, where you should make configuration changes to alfresco and share, can be found under /var/lib/tomcat6/shared
# Alfresco log files: The alfresco log files can be found under /var/log/tomcat6

Many of these directories are symbolic links to directories under /usr/share/tomcat6. However, the default tomcat configuration points to the /var/lib/tomcat6 directory.

By using the default tomcat we gain the advantage of an out of the box init script to control start and stop of Alfresco. You can now use /etc/init.d/tomcat start|stop|restart|try-restart|force-reload|status to control or check the status of the tomcat server.

To change the startup parameters of tomcat or those of Alfresco, (ie. memory settings, configuring JMX, etc.) modify the JAVA_OPTS variable in /etc/default/tomcat6.

Tomcat is run using a non-root user. This means that Alfresco cannot open the ports needed for CIFS, FTP, or NFS. Follow the instructions to configure alfresco and iptables to listen on non-standard ports and perform port forwarding. (Look at David Baker’s blog for step by step instructions on how to configure Alfresco CIFs with port forwarding using iptables.) The same use of non standard ports and iptables configurations should be applied to inbound SMTP and IMAP configurations.

Lagniappe

Here are a few other important things to note

AMP Files – One noticeable difference is that there is no apply_amps script. This is an oversight on my part and will be corrected in the next release. Meantime, if you want to apply an AMP, you can download the MMT tool and follow the instructions to install AMPs with MMT. Note: After applying an amp you will need to stop the alfresco server, remove the existing alfresco directory (rm -rf /var/lib/tomcat6/webapps/alfresco) and start alfresco. The new war file which contains the amps will then be deploy

Web Studio & Mobile – Alfresco Web Studio and Alfresco Mobile are not included in the current package. They will be included in the next release.

Per Ubuntu server 9.10

Per la nuova versione della Ubuntu Server ho verificato che la procedura risulta del tutto identica, ma all’interno del file /etc/apt/sources.list e necessairio aggiungere i seguenti repository (ovvero quelli per la 9.04):
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

Personalmente ho provveduto a decommentare anche i repo partner della karmic quindi:
deb http://archive.canonical.com/ubuntu jaunty partner
deb-src http://archive.canonical.com/ubuntu jaunty partner

Quindi procedere come sopra descritto.

3 commenti leave one →
  1. Marco permalink
    31 marzo 2010 2:31 PM

    Ciao, inanzitutto complimenti per l’articolo! 🙂
    Come seconda cosa, io ho installato Alfresco su Ubuntu server 9.04 con esito positivo, ma volevo capire come raggiungerlo attraverso risorse di rete (In windows attraverso: \\nomeserverA\Alfresco) e via ftp, in windows è automatico, qui devo installare il servizio ftp a parte?

    Grazie!

    • 1 aprile 2010 5:43 am

      Ciao Marco,
      ti ringrazio per i complimenti, molti sono appunti, che speravo proprio potessero essere utili anche ad altri.

      Ma veniamo a noi, non ho mai provato ad accedere ad alfresco tramite ftp, dovrebbe esserci da decommentare alcuni punti del file di configurazione, perchè mi risulta che non sia attivo di default.

      Ti faccio sapere! Oppure se trovi prima tu… Ciao.

      • Marco permalink
        1 aprile 2010 3:13 PM

        Grazie per la risposta, ed attraverso risorse di rete hai provato ad accedervi?

Lascia un commento