Document Management System Alfresco Community
Updated: 11-10-2013 (Now my 2nd Alfresco Install, not yet an expert but give me a few years breaking the Windows habit of installers.)
After my Second command line (terminal) install I setup to run a full GUI install of Alfresco on top of Ubuntu Server. I found it much easier not because of the GUI but because of the differences between the Alfresco installer and the core components of Unbuntu. I selected only File Server as my option then installed the Ubuntu-Desktop. That allowed me to select the proper install folders for my installation.
My advice, if you are really new and rm, cp, mkdir are still kind of alien and if you cannot draw the file structure I would strongly recommend installing the GUI way.
Before beginning with this design installing Alfresco Community DMS on Ubuntu Server 12.04 LTS I want you to know I'm a major novice with Ubuntu and have about 3 hours with Alfresco. Settings and setup you'll need to do on your own. I'll add as my development, testing and experience expands.
What you will need to complete this section:
- MS Hyper-V or VM server
- Ubuntu 12.04 LTS Server
- Alfresco Community
I am setting up Alfresco Community on one Virtual Ubuntu Server so I can start working with the Alfresco document management system.
I'm looking to replace or add to my SharePoint services.
It's all about the costs of ownership and I'll say SharePoint is a bit pricey for small business.
1. Create your Hyper V machine and load Ubuntu Server 12.04 LTS.
- 128gb drive.
- 2Gb memory
- Install Tomcat Java Server
- Install postgreSQL Database
The default installation package allows you to select 2 components that are going to be needed on your server.
If you need step by step details to setup your server I would like for you to read more sites. I am not going to tell you "Name your Host" or "Add IP" when I see something very basic I'll skip noting it.
A. Set Ubuntu to update automatically security updates.
B. Select Tomcat Java Server.
C. Select postgreSQL Database
Now, you should be ready to go, login and get the $ prompt.
Let's make live easier, setup the desktop. If you know all about Ubuntu command line then feel free to skip. I'm new so I'm stuck until I do more reading I might leave the desktop setup for last here.
Update your installation:
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get purge openjdk-\*
- sudo apt-get install openjdk-7-jdk
- sudo apt-get install python-software-properties
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update
- sudo apt-get install oracle-java7-installer
- sudo apt-get install ghostscript
- whereis ghostscript
- ghostscript --version
- sudo apt-get install imagemagick
- whereis imagemagick
- imagemagick --version (that's 2 dashes)
- sudo apt-get install ffmpeg
- whereis ffmpeg
- ffmpeg --version
- sudo apt-get install libreoffice
- whereis libreoffice
- libreoffice --version
Tomcat Version 7:
Alfresco will install version 6 if you skip this step.
- sudo service tomcat* --version (or status)
- sudo apt-get purge tomcat-\*
- sudo apt-get install tomcat7
PostgreSQL version 9.2 (9.3 is announced out)
- sudo service postgresql* --version
- sudo apt-get purge postgresql-\*
- sudo add-apt-repository ppa:pitti/postgresql
- sudo apt-get update
- sudo apt-get install postgresql-9.2
PostgreSQL verison updated 11-10-2013
- You can follow the instructions here to update your postgreSQL
- apt-get install postgresql-9.3
Install the Alfresco Community DMS
(Prefix with sudo)
- mkdir alfresco
- cd alfresco
- (Create a tmp install folder)
- mkdir alfresco_temp
- cd alfresco_temp
- wget http://dl.alfresco.com/release/community/build-4795/alfresco-community-4.2.d-installer-linux-x64.bin
- or http://dev.alfresco.com/downloads/nightly/dist/ (Careful)
- chmod a+x alfresco-community-4.2.d-installer-linux-x64.bin
- sudo ./alfresco-community-4.2.d-installer-linux-x64.bin
Note: Be sure to check for the newest versions of applications. You can find the direct link by following the download links to the last page and right click copy the link as if the automatic download failed.
Alfresco Community Installation:
Two install options which point to the following settings.
- Java: Y
- PostgreSQL: Y
- Alfresco: Y
- SharePoint: Y
- Web Quick Start: Y
- Google Docs: Y
- LibreOffice: Y
- Answer the "Is the section above correct?" with "Maybe" or better yet, Y
- Select a folder: /opt/alfresco-4.2.d: (leave default press enter)
- Database Server Parameters: 4532
- You may find that something is using that port or if you have setup many communities for testing. Change the port number to an open unused port. Log it.
- Tomcat port configuration:
Change the IP to something you can route with unless this is only local development. I've added a 192.x.x.x address so I can let you see the work.
- Web Server Domain: 192.168.1.201
- Tomcat Server Port: 8081 (changed from 8080)
- Tomcat Shutdown Port: 8006 (changed from 8005)
- TomCat SSL Port: 8443
- Tomcat AJP Port: 8009
- FTP Port: 21
- Alfresco RMI Port: 50500
- Admin Password: Pick a good one
- SharePoint Port: 7070
- Install as a service: Y
- LibreOffice Server Port: 8100
- Setup is ready to begin installing Alfresco... Yes
Your Alfresco Community should be started if not check the following.
- sudo service alfresco stop
- sudo service alfresco start
Now you should be able to connect to your ports.
I have this package exported and setup for Windows Hyper-V if you're interested send me an email and I'll send you the download link. (Maybe)
You can setup the desktop GUI or you can learn the command line setup along with me. System configuration for Alfresco Community Document Management system here.
Ubuntu Desktop on Server install
My take on the Ubunut Desktop install on the Server.
I'm new and I had to read over many documents to get this install this easy.
I've tested the steps several times on new Virtual Machines and all goes well expect a couple of things which I'll be asking the community to help with.
First of all, the Desktop really doesn't help unless you need to handle some file management but you might find permissions are the issue like I have found.
For my server setup I'm not running the desktop. Clean and Neat is all I want with a service that starts when my server shuts down to backup then restarts.
If you find anything out of wack or credits not given or you have something to add please contact me.
Have fun, now it's time to explore the working world of Alfresco Community Document Management System. Maybe if all goes well we can convert small business from overpriced and over administrated SharePoint to something simple to setup and use. I'll tell you what I think after I publish a few thousdand documents and get a few of you signed up to test as a group.
If you need the desktop installed follow the steps below.
sudo apt-get install ubuntu-desktop
- sudo reboot
Some very useful beginner information that I enjoyed finding.
- It all started with the need of a backup script and found
- The main wiki about backups from the Alfresco Community Wiki.
- Finding package downloads is easy. Finding the installation is not so easy.
- How to copy: cp -a /source/. /destination/ (add the file name to transfer the file. The period says to transfer all in the directory.
- rm or remove will remove files in a directory. I do believe a trigger of -i prompts before delete.
- Terminal Commands for Ubuntu.
When you are ready to update / upgrade you're going to wish you never started. (Just joking)
I'm putting together all the notes needed to update / upgrade your version.
Without knowing what database you are using I'll be only showing how I do my database. I hope you enjoyed learning like I have. This is my Second backup test. Took all weekend but now I'm ready to do it on production systems. Enjoy!
You are done!
If you don't believe it's that easy then I suggest you follow this link.
http://docs.mysmallcloud.com/alfresco if asked to login use Guest and Password.
The link above is to my development version of the whole thing.
The development version is running on Ubuntu Server 12.04.3 LTS on my Hyper-V server.
Now tell me what could be easier?
I've linked all the resources I used. I'm going to also include a more detailed referecne link section for you to learn more like I have.
Learning Ubuntu is important and the communities that support Ubuntu are fantastic in my opinion.
The Alfresco document pages are very well made. You and I both will be spending hours here reading about what we can do with the DMS of Alfresco.
NOTES: Follow the same process if you are installing the Ubuntu Server directly to your hardware and not to a virtual server.
IT Consulting / Systems Administration
Baton Rouge, LA.
I also cover Mississippi to McComb.
Follow up notes on 11-11-2013.
It was time to do a full recovery from a formated VHD.
First issue I ran into was the PostgreSQL roles and user names.
Appears the postgres pasword was not set or I used the worry type.
I was able to logon with the help of the sudo su postgres but that was a bad thing.
Following the recovery process I removed the DB.
Created a new DB
When I was to set users it allowed me to set the alfresco user but the role was not in place.
Create a Alfresco user role wasn't in the options.
So bascially all went well until, the backup didn't backup the db as planned.
the recovery stopped as soon as the super user password for the PostgreSQL failed.
Live and learn, I do have a good backup of everything from my Hyper-V server.
But, I'm installing everything a little different now.
I hope it will be easier to manage.
alfresco-4.2.d or alfresco-4.2.e should only be alfresco as the location and the DB that's another story.
CREATE DATABASE alfresco WITH OWNER alfresco didn't work at all. Role is missing.
That would mean we missed that part in the setup.
I have to admit, this is one mean learning curve and school of hard knocks at times.
I might have to read the full document, but is that admitting I needed to read the remote control programming instructions to set the clock in my DVR??? (humor)
Round II setup notes:
- folder alfresco
- not installing alfresco as part of the Ubuntu Install.
- Not installing PostgreSQL as part of the Ubuntu install.
- set internal IP not using DHCP.
- Skipped all options install. (Would like to have tested the Ubuntu management Landscape but no time in this VHD. )
- skip the auto update
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install ubuntu-desktop (yes you can tease me later for now, I am learning the file structure and then I'll return to the terminal install.)
- sudo reboot
I noticed that the components for Alfresco installed differently when I selected the Ubuntu components first. I also didn't like the lack of control ove rthe SQL files and locations.
I feel by setting up the GUI first I'll be able to document the file structure better for my 3rd and hopefully final install of Alfresco in this VHD.
Keep your fingers crossed. To make this work I have to load up documents, test a backup and recovery plan and be able to recreate the whole thing as fast as my Windows Servers. I've had more years practice with Windows than I have with Ubuntu server but the admin goals are the same. Keep things updated and backups ready to go.
I really like the Ubuntu feel on the Hyper-V 2008 R2 server environment. I've bumped it to 4Gb from 2Gb running Alfresco Community. It was at about 60% of usage.
Change background: http://fcorti.com/2013/08/12/customize-alfresco-share-login-light-theme/