Search This Blog

Thursday, March 14, 2013

Downloading and Installing Alfresco Community Edition 4.2 on Ubuntu

Update: A more recent post discusses deploying Alfresco 5.0 Community Edition on Ubuntu 13.10

In this post, I want to write about downloading and installing Alfresco, an Open Source Enterprise Content Management System.

From the primary site, I navigated to url to see available installers for the Community Edition of the software.

Clicking on the second link for Linux installer, brought the following page.

Clicking on the Download Now link, started downloading the installer on my Downloads folder. The download was a large file. As download began, it gave a link to join the alfresco community, which I did.

Once download was complete, I closed the browser to proceed. To install, move the installer to a target folder from the downloads folder.

Next, we need to make the installer executable

$ chmod a+x *.bin

Now, we need to run the installer by issuing the following command

$ ./alfresco-community-4.2.c-installer-linux-x64.bin

This brings the dialog box for default language

Next screen, informs that we are setting up the community edition of the software

Clicked on forward gives the following screen. Since, I knew I would have to modify the port entries, I selected the Advanced option to change default ports and other settings.

On the next screen, I checked off the software components that I already had on my machine (Java, PostgreSQL, LibreOffice) and turned off the components I did not need (SharePoint). Ended up making the following selections

In the next screen, we select the installation folder. I updated the default location to something of my preference.

I wanted to deploy the software against PostgreSQL, which is the option it gave me. I created a user called alfresco and a database called alfresco with the following commands.

$ su - postgres
postgres$ psql -d template1
psql > create user alfresco with password 'alfresco';
psql > create database alfresco;
psql > grant all on database alfresco to alfresco;

With the database created, I can resume the installation to go to the next screen that prompts to enter the database connection values.

The next screen displays the ports to be setup. I checked my open ports using appropriate tools. I have posted on the way to check available ports here. Based on the results, I modified the default port entries as follows:

Next the installation prompted for a ftp port setting. I left it as default.

Next the installer prompted for the RMI port for remote invocation. I again left it as default.

Finally, the installer asks the installer to specify a password for the admin user. I kept it as “alfresco”.

Clicking on Forward brought a prompt indicating the setup was ready as shown below.

Clicking on the Forward button, starts the installation. It takes a while after setting up the files for the installation to complete.

After the installation is complete, the following prompt is shown.

Next, I launched a browser and accessed the location ( on my browser.

The application took some time as the initial tables were setup in the database repository and finally the Alfresco site was displayed on the browser.

In this post, we saw how to setup Alfresco Community Edition, an Enterprise Content Management software on an Ubuntu 12.04 machine.


To install alfresco on a machine without xwindows, you can run the installer in text mode with the following command.

$ ./alfresco-community-4.2.c-installer-linux-x64.bin --mode text

See the screenshot below.

Cheers .....

Testing available ports on my Ubuntu machine

As the title suggests, I was setting up a software on my machine and I needed to know which ports were already used up and which were available for the new install.

I found some posts on the Internet to help me resolve this, and here is a summary of what I found.

First, I logged in as root using the command

$ sudo -i

Next I listed all processes that are listening on a port using the following command.

$ lsof -i

Now, I wanted to know all the used ports on my machine. The following command gave the answer.

$ netstat -tulpn

Finally, I wanted to list only those ports that were being used along with the processes.

$ netstat -lptu

This gave a list of ports that are currently in use on my machine. Using this list, I was able to find out which ports could be assigned to the new installation.

Wednesday, March 13, 2013

Adding a Network based scanner to Ubuntu

I have a network based scanner that I wanted to connect to Ubuntu 12.04 LTS. The steps to install it are straightforward and can be easily found on the web. As these blogs are more logs of my own adventures, I have decided to document these in this post.

Installing the libraries

The first step is to install hplip. This is done by entering the following command on a terminal window as follows:

$ sudo apt-get install hplip

Setting up the scanner

The next step is to run hp-setup

$ sudo hp-setup

The opening screen shows options to select the connectivity, which in my case was the second option, i.e. Network. Then click on the Next button.

Luckily my printer was found and it showed up on the discovered devices.

Clicking next presented the following dialog with some additional options. I did not change anything and proceeded to the next step.

Clicking on Add Printer added the printer (and scanner) to the configuration.

Testing the Network Scanning

Next I went to the Ubuntu menu and accessed the SimpleScan software that comes pre-installed.

The SimpleScan software was launched. I clicked the scan button on the top menu, and the document in my scanner was scanned by the software.

That's it, my network scanner is now operational on Ubuntu 12.