Wednesday, August 25, 2010

Downloading and Installing WCM


From AlfrescoWiki

Jump to: navigation, search
These procedures describe how to download and install WCM (Web Content Management) to work with Alfresco on any platform.

[edit] Prerequisites

Before you start, ensure that:
  • Alfresco is installed (for information on how to install Alfresco, see Installing on Microsoft Windows or Installing on Linux
  • the WCM version you choose is the same as your Alfresco version
  • the latest JDK 6 version is installed
  • the following two environment variables are set to the path of your JDK installation:
  1. Set the JAVA_HOME environment variable to point to the base directory of your Java installation
Linux:
export JAVA_HOME='This is where your java installation is.'
  1. Add Java's /bin directory to the PATH environment variable
Linux:
export PATH=$PATH:$JAVA_HOME

[edit] Download WCM

To download and install WCM:
  1. Go to http://sourceforge.net/projects/alfresco/files/WCM/3.3%20Community%20Edition/ or Alfresco Network for the Enterpise version and download the package matching your Alfresco, which is one of the following files:
    • (Windows) alfresco-community-wcm-3.x.x.zip
    • (Linux) alfresco-community-wcm-3.x.x.tar.gz
  2. Download the file into the Alfresco home directory. For example:
    • (Windows) C:\Alfresco
    • (Linux) /opt/alfresco

[edit] Configure WCM

To configure WCM:
  1. Browse to the Alfresco home directory, and unzip the file. If your unzip program asks about existing directories, allow this because no existing files will be overwritten.
  2. In the root of the Alfresco home directory, move the file wcm-bootstrap-context.xml to the Alfresco extension directory. For example, for tomcat the directory is at:
  • (Windows) C:\Alfresco\tomcat\shared\classes\alfresco\extension
  • (Linux) tomcat/shared/classes/alfresco/extension.
  1. Restart the Alfresco server. This ensures that the Alfresco server starts to use the installed WCM components. For more information on restarting the Alfresco server, see Running Alfresco
  2. To check that the WCM installation is successful, check the alfresco.log file, which is in the Alfresco home directory. Search for the following text The Web Forms folder was successfully created: and The Web Projects folder was successfully created:
    Which should be shown the first time WCM is bootstrapped.
  3. Check using Alfresco Explorer that the following additional spaces are in your Alfresco repository:
  • Web Projects in Company Home
  • Web Forms in Data Dictionary

Sunday, August 22, 2010

Recursively adding files to CVS in LINUX



The following commands can become handy if you are still stuck with cvs and cannot use the excellent eclipse cvs client.

  find . -type d -print | grep -v CVS | xargs cvs add
  find . -type f -print | grep -v CVS | xargs cvs add
Explanation: 
find . -type d -print : find and displays only directories            
grep -v CVS : grep cvs displays the lines contains "cvs". -v optin is inverse selection
xargs cvs add : xargs get the input put from the previous output and give it to the command "cvs add" and execute the command