cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.2 as package for Ubuntu 9.04

chr_ypma
Champ in-the-making
Champ in-the-making
I installed the alfresco-community package (after activating the "partner" repository in /etc/apt/sources.list), and almost everything works fine.

Things working out-of-the-box:
  • Share, Check that Sun Java 6 is actually the active Java, otherwise OpenJDK could be used, and that gives errors

  • Explorer

  • All the intergration things like openoffice, swf2pdf etc
Things not working:
  • CIFS, I had to add the non-privileged ports in alfresco-global.properties, and then set port forwarding

  • Sharepoint, it's not installed, and I guess installing it would break future updates of the package.
Will these 2 things be fixed in future updates of the alfresco-community package?
Apart from these two things it's really a breeze to install alfresco, as simple as any package on Ubuntu.
10 REPLIES 10

benisai
Champ in-the-making
Champ in-the-making
CIFS, I had to add the non-privileged ports in alfresco-global.properties, and then set port forwarding

Glad to hear you got it going – I found steps to use the non-privileged ports and enable port forwarding, but all I'm getting when I go to \\alfresco\ is the folder "Printers and Faxes". None of the other folders are there. Any ideas about that?

chr_ypma
Champ in-the-making
Champ in-the-making
CIFS, I had to add the non-privileged ports in alfresco-global.properties, and then set port forwarding

Glad to hear you got it going – I found steps to use the non-privileged ports and enable port forwarding, but all I'm getting when I go to \\alfresco\ is the folder "Printers and Faxes". None of the other folders are there. Any ideas about that?
It sounds like you have also Samba installed on your Ubuntu server. Stop Samba (sudo /etc/init.d/samba stop), and then reboot alfresco (sudo /etc/init.d/alfresco restart). If you have set up the ports correctly, you can connect in windows, by not using the server name, but the ip adres.

benisai
Champ in-the-making
Champ in-the-making
Thanks

I do not have /etc/init.d/alfresco
Nor can I find any script or file to restart alfresco.

I removed samba and smbfs, and then rebooted the server. Now I cannot pull up the CIFS interface at all on the alfresco server ("The network path was not found"). But alfresco explorer and alfresco share still work. I tried both the server name and IP address.

I put this in my alfresco-global.properties file:
cifs.tcpipSMB.port=1445
cifs.netBIOSSMB.namePort=1137
cifs.netBIOSSMB.datagramPort=1138
cifs.netBIOSSMB.sessionPort=1139

and ran the following commands:
echo 1 > /proc/sys/net/ipv4/ip_forward
modprobe iptable_nat
iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -A PREROUTING -p tcp –dport 445 -j REDIRECT –to-ports 1445
iptables -t nat -A PREROUTING -p tcp –dport 139 -j REDIRECT –to-ports 1139
iptables -t nat -A PREROUTING -p udp –dport 137 -j REDIRECT –to-ports 1137
iptables -t nat -A PREROUTING -p udp –dport 138 -j REDIRECT –to-ports 1138

I'm also able to telnet to localhost 1139 and 1445 and get a connection, so it's listening on those 2 ports. Any ideas?

chr_ypma
Champ in-the-making
Champ in-the-making
Thanks

I do not have /etc/init.d/alfresco
Nor can I find any script or file to restart alfresco.

Sorry, meant /etc/init.d/tomcat6

To fix your iptables, add this in the tomcat6 startup script:


#
# redirect FROM TO PROTOCOL
# setup port redirect using iptables
redirect() {
        echo "Redirecting port $1 to $2 ($3)"
        iptables -t nat -A OUTPUT -p $3 –dport $1 -j REDIRECT –to-ports $2
        iptables -t nat -A PREROUTING -p $3 –dport $1 -j REDIRECT –to-ports $2
        iptables -t nat -A OUTPUT -p $3 –dport $1 -j REDIRECT –to-ports $2
}

#
# setup_iptables
# setup iptables for redirection of CIFS and FTP
setup_iptables () {

        echo "1" >/proc/sys/net/ipv4/ip_forward
        # Clear NATing tables
        iptables -t nat -F
        # FTP NATing
        redirect 21 2021 tcp

        # CIFS NATing
        redirect 445 1445 tcp
        redirect 139 1139 tcp
        redirect 137 1137 udp
        redirect 138 1138 udp
}

And just before

        log_daemon_msg "Starting $DESC" "$NAME"

add this to call the function

echo "Setting up iptables …"
        setup_iptables

This works fine with me (the method you used didn't work with me neither)

helium3
Champ in-the-making
Champ in-the-making
Hi!

Thank's for this great post - it helps a lot when starting with Alfresco, like me. However I ran into one problem, which I couldn't solve after trying several hours:

I can't connect CIFS from a client outside the firewall.

All works perfectly well from the clients in the local subnet. So I tried to open the external ports according to Oli's post in CIFS troubleshooting, tried all I could think of in Firestarter (firewall GUI), even flushed all chains and defined simplified chains with iptables directly according to "Installing and Configuring Alfresco Community Edition 3.2", but all failed. But well, I am not an expert :-(. Did anyone run into similar problems and more importantly, could anyone solve them?

Grateful for any hint!
Cheers,
Aron

PS: More details: Alfresco runs on the firewall machine and setting cifs.bindto=x.x.x.x to the external IP number in file-servers.properties doesn't seem to make any difference.

chr_ypma
Champ in-the-making
Champ in-the-making
Is "outside firewall" still inside your local LAN? Because otherwise your ISP most probably blocks the CIFS ports. This is a good thing, as otherwise this would be a major security risk Smiley Happy

Apart from this, anyone knows whether or not the ubuntu package is maintained?

dan1317
Champ in-the-making
Champ in-the-making
Hi, thanks for your help.  I seem to be having a lot of trouble finding the file that is supposed to be used.  All of my configuration files seem to have .sample on the end.  For example, /var/lib/tomcat6/webapps/alfresco/WEB-INF/classes/alfresco-global.properties.sample     Am I supposed to remove the .sample if I need to change the file?  Sorry if this has been asked, but I have been searching for a while now.  Everything seems to work for me in Alfresco except for CIFS and WebDAV.  Thanks for your help.  Let me know if I need to give more information too

chr_ypma
Champ in-the-making
Champ in-the-making
You need to look at
/usr/share/tomcat6/shared/classes/alfresco-global.properties

helium3
Champ in-the-making
Champ in-the-making
Hi Chr_Ypma, hi everyone! Thanks for the reply. "outside firewall" means in my case not in the same LAN - I am using a HDSPA for this testing. One of the main purposes for me using CIFS is long-distance (WAN) data access. I want to replace Samba over OpenVPN which I never succeeded to achieve speeds sufficiently high for practical work (some Windows Explorer-bug some say). As for safety, Chr_Ypma, could you elaborate why open CIFS ports are a safety concern and hence blocked by some providers? I thought CIFS has overcome the safety weaknesses of SMB through encrypted authentication and data transfer. If that is not the case, does someone have experience with CIFS over OpenVPN with Windows clients, in particular concerning response times?
Cheers,
Aron