-
Install prerequisites for NethServer:
yum -y install fontconfig libSM libICE libXrender libXext ghostscript nethserver-mysql nethserver-httpd
-
download alfresco (750 MB)
-
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
-
create mysql alfrscodb
mysql -e "create database alfrescodb;"
mysql -e “grant all on alfrescodb.* to alfrescouser identified by ‘alfrescopass’;” -
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 -
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/ -
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
-
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…