by   September 23 2013   
Yet another guide on "How to install Alfresco Community Document Management System on Ubuntu Server 12.04 LTS with Desktop Graphical Interface. Windows 2008 R2 Server Hyper-V AD . You actually can skip the GUI desktop if you follow all the steps and setup things the first time. I setup the GUI to test and play with the installation. My production version is without the GUI. I'm no GURU with Ubuntu or Alfresco and it took me allot of reading and 4 virtual machines to finally get the one that worked for me.

Document Management System Alfresco Community

Alfresco _Community _LogoUpdated: 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: 

  1. MS Hyper-V or VM server
  2. Ubuntu 12.04 LTS Server
  3. Alfresco Community

Summary:
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:

  1. sudo apt-get update
  2. sudo apt-get upgrade

Java _oracle _sunJava:
Resource: http://www.whiteboardcoder.com/2013/01/install-alfresco-community-42-on-ubuntu_31.html

  1. sudo apt-get purge openjdk-\*
  2. sudo apt-get install openjdk-7-jdk
  3. sudo apt-get install python-software-properties
  4. sudo add-apt-repository ppa:webupd8team/java
  5. sudo apt-get update
  6. sudo apt-get install oracle-java7-installer

Image MagickImageMagick

  1. sudo apt-get install ghostscript
  2. whereis ghostscript
  3. ghostscript --version
  4. sudo apt-get install imagemagick
  5. whereis imagemagick
  6. imagemagick --version (that's 2 dashes)

FfmpegFFMpeg

  1. sudo apt-get install ffmpeg
  2. whereis ffmpeg
  3. ffmpeg --version

Libre OfficeLibreOffice

  1. sudo apt-get install libreoffice
  2. whereis libreoffice
  3. libreoffice --version

Apache -tomcat -7Tomcat Version 7: 
Alfresco will install version 6 if you skip this step.

  1. sudo service tomcat* --version (or status)
  2. sudo apt-get purge tomcat-\*
  3. sudo apt-get install tomcat7

Postgre SQLPostgreSQL version 9.2 (9.3 is announced out)

  1. sudo service postgresql* --version
  2. sudo apt-get purge postgresql-\*
  3. sudo add-apt-repository ppa:pitti/postgresql
  4. sudo apt-get update
  5. sudo apt-get install postgresql-9.2

PostgreSQL verison updated 11-10-2013

  1. You can follow the instructions here to update your postgreSQL
  2. apt-get install postgresql-9.3

Install the Alfresco Community DMS
Reference: http://askubuntu.com/questions/15093/how-can-i-install-a-bin-file

Alfresco _Community _Logo

 (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
  • http://wiki.alfresco.com/wiki/Category:Downloads
  • 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. 

  1. Java: Y
  2. PostgreSQL: Y
  3. Alfresco: Y
  4. SharePoint: Y
  5. Web Quick Start: Y
  6. Google Docs: Y
  7. LibreOffice: Y
  8. Answer the "Is the section above correct?" with "Maybe" or better yet, Y
  9. Select a folder: /opt/alfresco-4.2.d: (leave default press enter)
  10. Database Server Parameters: 4532
    1. 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.
  11. 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. 
  12. Web Server Domain: 192.168.1.201
  13. Tomcat Server Port: 8081 (changed from 8080)
  14. Tomcat Shutdown Port: 8006 (changed from 8005)
  15. TomCat SSL Port: 8443
  16. Tomcat AJP Port: 8009
  17. FTP Port: 21
  18. Alfresco RMI Port: 50500
  19. Admin Password: Pick a good one
  20. SharePoint Port: 7070
  21. Install as a service: Y
  22. LibreOffice Server Port: 8100
  23. Setup is ready to begin installing Alfresco... Yes

Your Alfresco Community should be started if not check the following.

  1. sudo service alfresco stop
  2. 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
http://www.noobslab.com/2012/11/install-graphical-user-interface-gui-in.html

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.

  1. sudo apt-get install ubuntu-desktop

  2. sudo reboot

Some very useful beginner information that I enjoyed finding.

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. 

http://docs.alfresco.com/4.0/index.jsp?topic=%2Fcom.alfresco.enterprise.doc%2Fconcepts%2FWQS-intro.html

NOTES: Follow the same process if you are installing the Ubuntu Server directly to your hardware and not to a virtual server. 

Murray W.
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:

  • SBC2
  • 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.

 

Notes: 

Change background: http://fcorti.com/2013/08/12/customize-alfresco-share-login-light-theme/

 

Yet another guide on "How to install Alfresco Community Document Management System on Ubuntu Server 12.04 LTS with Desktop Graphical Interface. Windows 2008 R2 Server Hyper-V AD . You actually can skip the GUI desktop if you follow all the steps and setup things the first time. I setup the GUI to test and play with the installation. My production version is without the GUI. I'm no GURU with Ubuntu or Alfresco and it took me allot of reading and 4 virtual machines to finally get the one that worked for me.