I have an Alfresco installation with Tomcat server. Which file shall I use to setup JAVA_OPTS for tomcat?
The JAVA_OPTS is not set in alfresco.sh or catalina.sh. Instead, it is in tomcat/scripts/ctl.sh. Stop tomcat, make necessary changes and restart tomcat. You can verify it by
sudo ps -ef | grep java
Friday, October 7, 2011
Wednesday, October 5, 2011
Start CentOS without GUI
I have a VM with CentOS 6.0. It runs quite slow. To speed it up, I decide to turn off X11 GUI. Following the instructions here, this can be done by editing /etc/inittab. Just change from
id:5:initdefault:
to
id:3:initdefault:
and restart.
Install VirtualBox Guest Additions on CentOS
Follow these steps to install VirtualBox Guest Additions for a CentOS VM.
1. Download guest addition.
This is done by by VirtualBox menu Devices > Install Guest Additions. This will download the file to /media folder.
2. Install dkms
According to this, you need to install dkms before installing guest addition. On CentOS, this is done by "yum install dkms". However, new installation does not have RPMForge repository configured. Follow the instructions here to add RPMForge then go back to install dkms.
3. Install guest additions
Open terminal, change to /media/CentOS-6.0-x86_64-LiveDVD, then run "sh ./VBoxLinuxAdditions.run".
4. Restart
Note run the commands as root by su -c 'your command'.
1. Download guest addition.
This is done by by VirtualBox menu Devices > Install Guest Additions. This will download the file to /media folder.
2. Install dkms
According to this, you need to install dkms before installing guest addition. On CentOS, this is done by "yum install dkms". However, new installation does not have RPMForge repository configured. Follow the instructions here to add RPMForge then go back to install dkms.
3. Install guest additions
Open terminal, change to /media/CentOS-6.0-x86_64-LiveDVD, then run "sh ./VBoxLinuxAdditions.run".
4. Restart
Note run the commands as root by su -c 'your command'.
Alfresco Mimetype & Transformer
Alfresco has a web script that lists the registered mimetypes. http://localhost:8080/alfresco/service/mimetypes. Clicking one of the mimetype also shows the transformer and to/from formats it supports.
Create a CentOS 6 VM with VirtualBox
The steps to create a CentOS 6 VM using VirualBox.
- Download CentOS 6 Live DVD X86_64
- Start VirtualBox and create a new virtual machine. Select RedHat (64 bit) as OS. Make sure to allocate > 512M RAM to the VM.
- Power on VM. In First Run Wiard, browse to the downloaded Live DVD iso file.
- After the system starts, hit "Install to Hard Drive" on the desktop to start installation.
- Follow the instructions to install CentOS
- The hard drive for the VM will need partition. Select "Re-initialize" when prompted
- Restart after installation is complete (in VirtualBox VM settings, make sure it boots from hard disk instead of CD/DVD. Or it will still use the Live DVD)
It is important for the VM to have more than 512M RAM. Otherwise, the "Install to Hard Drive" won't run in GUI mode.
Tuesday, September 27, 2011
How to install Alfreso Bulk Import tool?
Alfresco Bulk Filesystem Import Tool just had 1.0 release. The following steps describe how to install it.
- Download the latest AMP file containing the tool from here
- Shutdown your Alfresco instance
- Make a backup of the original alfresco.war file. On Tomcat, this is located in ${ALFRESCO_HOME}/tomcat/webapps
- Use the Alfresco Module Management Tool to install the AMP file obtained in step 1
- Delete the tomcat work and temp directories - run "sudo /opt/alfresco-3.4.1/bin/clean_tomcat.sh"
- Remove the ~/tomcat/webapps/alfresco directory (make sure to backup any file you have modified in this directory)
- Preview - "/opt/alfresco-3.4.1/java/bin/java -jar /opt/alfresco-3.4.1/bin/alfresco-mmt.jar install /home/alfresco/alfresco-bulk-filesystem-import-1.0.amp /opt/alfresco-3.4.1/tomcat/webapps/alfresco.war -preview"
- Install - "/opt/alfresco-3.4.1/java/bin/java -jar /opt/alfresco-3.4.1/bin/alfresco-mmt.jar install /home/alfresco/alfresco-bulk-filesystem-import-1.0.amp /opt/alfresco-3.4.1/tomcat/webapps/alfresco.war"
- Restart Alfresco, watching the log carefully for errors
- http://code.google.com/p/alfresco-bulk-filesystem-import/
- http://code.google.com/p/alfresco-bulk-filesystem-import/wiki/Install
- http://wiki.alfresco.com/wiki/Module_Management_Tool
Friday, September 23, 2011
Where can I find Alfresco content model definition?
Alfresco content model definition can be found here
http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/config/alfresco/model/contentModel.xml
Subscribe to:
Posts (Atom)