Alfresco Share 5.0

  1. Install prerequisites for NethServer:

    yum -y install fontconfig libSM libICE libXrender libXext ghostscript nethserver-mysql nethserver-httpd

  2. download alfresco (750 MB)

    wget http://dl.alfresco.com/release/community/5.0.c-build-00145/alfresco-community-5.0.c-installer-linux-x64.bin

  3. Unattended installation

create file: unattended_script

mode=unattended
enable-components=javaalfresco, alfrescosolr, alfrescosolr4, alfrescosharepoint, alfrescowcmqs, alfrescogoogledocs, libreofficecomponent
disable-components=postgres
     
# Install location
prefix=/opt/alfresco
     
alfresco_admin_password=admin
     
# If embedded MySQL is being used, then a password must be specified
# or user input will be required
     
# Use JDBC settings for an existing database
jdbc_url=jdbc:mysql://localhost/alfrescodb
jdbc_driver=org.gjt.mm.mysql.Driver
jdbc_database=alfrescodb
jdbc_username=alfrescouser
jdbc_password=alfrescopass
     
baseunixservice_install_as_service=1

run:

./alfresco-community-5.0.c-installer-linux-x64.bin --optionfile unattended_script
  1. create mysql alfrscodb

    mysql -e "create database alfrescodb;"
    mysql -e “grant all on alfrescodb.* to alfrescouser identified by ‘alfrescopass’;”

  2. create and adjuste NethServer services

    config set alfresco service TCPPorts “7070,8100,8009,8005,21,50500” access public status enabled
    config set tomcat service TCPPorts “8080,8443” access public status enabled
    /etc/e-smith/events/actions/firewall-adjust nethserver-base-update
    /etc/e-smith/events/actions/adjust-services nethserver-base-update
    /etc/e-smith/events/actions/runlevel-adjust nethserver-base-update

  3. enable Mysql java connector

    wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.34.tar.gz
    tar xvfz mysql-connector-java-5.1.34.tar.gz
    cp mysql-connector-java-5.1.34/mysql-connector-java-5.1.34-bin.jar /opt/alfresco/tomcat/lib/

  4. Configure Ldap/AD auth (optional)

    yum install nethserver-directory

Edit /opt/alfresco/tomcat/shared/classes/alfresco-global.properties
insert the row:

authentication.chain=alfrescoNtlm1:alfrescoNtlm,ldap1:ldap1

Create file:
/opt/alfresco/tomcat/shared/classes/alfresco/subsystems/Authentication/ldap1/ldap-authentication-context.xml

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
   <!--
      The bean definitions for this subsystem are shared by the ldap and ldap-ad subsystems with different property
      defaults
   -->
   <!--
   <import resource="../common-ldap-context.xml" />
    -->
   <import resource="classpath*:alfresco/subsystems/Authentication/common-ldap-context.xml" />
</beans>

To configure local or remote ldap/AD auth create the file
/opt/alfresco/tomcat/shared/classes/alfresco/subsystems/Authentication/ldap1/ldap-authentication.properties

# This flag enables use of this LDAP subsystem for authentication. It may be
# that this subsytem should only be used for synchronization, in which case
# this flag should be set to false.
ldap.authentication.active=true        
ldap.authentication.allowGuestLogin=true
ldap.authentication.userNameFormat=uid=%s,ou=People,dc=directory,dc=nh
ldap.authentication.java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
ldap.authentication.java.naming.provider.url=ldap://localhost:389        
ldap.authentication.java.naming.security.authentication=simple
ldap.authentication.escapeCommasInBind=false
ldap.authentication.escapeCommasInUid=false
ldap.authentication.defaultAdministratorUserNames=admin
ldap.synchronization.active=false                 
ldap.synchronization.java.naming.security.authentication=simple
ldap.synchronization.queryBatchSize=0
ldap.synchronization.attributeBatchSize=0
ldap.synchronization.groupQuery=(objectclass=groupOfNames)       
ldap.synchronization.modifyTimestampAttributeName=modifyTimestamp
ldap.synchronization.timestampFormat=yyyyMMddHHmmss'Z'
ldap.synchronization.defaultHomeFolderProvider=largeHomeFolderProvider
ldap.synchronization.enableProgressEstimation=true
  1. start alfresco

    service alfresco start

open http://nethserver:8080/share
user: admin pass: admin

First access is very (very!) slow… while alfresco populates mysql db and metadata…

3 Likes

Folks, please check this stuff… :+1:

I followed the steps, without configuring access ldap.
At login, using the credentials admin admin, displays an authentication error.
Do you have any suggestions?

Stefano

1 Like

Hi Stefano
the problem is the wrong tomcat lib path on step 6.

to correct you need to copy mysql-connector-java-5.1.34-bin.jar to /opt/alfresco/tomcat/lib/

then restart alfresco:

service alfresco restart

I have corrected the howto

Thanks
Cristian

1 Like

I moved a post to a new topic: FTP access on Nethserver

hi @nethcman
Thank you for the howto.
We had some issues on NS 7.4 but the following adjustments did work.

  1. Do step 1
  2. Download 201707 Skip the Unattended Script as we had issues with mysql
  3. run ./alfresco-community-201707-installer-linux-x64.bin choose advanced and set defaults postgresql as the db
  4. Skip step 4
  5. Do step 5
  6. Skip 6
  7. Do the last steps 7 & 8

This worked. For some reason the mysql database was created but not populated with tables and the login of admin:admin failed.
The option in the unattended script has alfrescosharepoint which has been dropped. Also alfrescowcmqs is very problematic, so also exclude.