Tuesday, June 22, 2010

jPackage ant dependency fix

I need Ant package to try the Liferay theme development, I found the jPackage has most Java related rpm, install jPackage is easy.

http://www.jpackage.org/yum.php

When add Ant, I got dependency error
/usr/bin/rebuild-security-providers is needed by package java-1.4.2-gcj-compat-1.4.2.0-40jpp.115.i386

After search over Google, I found the solution here:
http://www.cpurigs.com/forums/showthread.php?t=4770

1. Remove jpackage-utils and tell it to ignore dependencies: rpm -e jpackage-utils --nodeps
2. Install the version offered through the standard repos: yum install jpackage-utils
3. Update everything else: yum update

Now I can install Ant from jPackage.

Wednesday, June 16, 2010

Preparing Postgres for Liferay

A. Configure Postgres:
Make Postgres listen from REMOTE host: PostgresSQL config

1. Modify /var/lib/pgsql/data/pg_hba.conf 
local    all    all    trust
lost    all    all    0.0.0.0/0    trust

2.Modify /var/lib/pgsql/data/postgresql.conf
listen_address='*'


B. Configure Liferay JDBC:

1. Create portal-ext.properties in webapps/ROOT/WEB-INF/classes

jdbc.default.driverClassName=org.postgresql.Driver
jdbc.default.url=jdbc:postgresql://localhost:5432/lportal
jdbc.default.username=liferay
jdbc.default.password=password

2. Change jdbc.properties in tomcat-6.0.18/webapps/wol-portlet/WEB-INF/jdbc.properties, that will disable HSQL
jira.driverClassName=org.postgresql.Driver
jira.url=jdbc:postgresql://localhost:5432/lportal
jira.username=postgres
jira.password=


C. Configure Liferay webserver port:
Modify tomcat-6.0.18/conf/server.xml, change the port in


D. Remove 7Cog sample portal:
remove sevencogs-hoot in webapps



References:

Reference link: http://www.liferay.com/community/wiki/-/wiki/Main/PostgreSQL%20with%20Glassfish;jsessionid=FC83246907BFF757693820C8890656C5.node-1

Create database user:
psql -U postgres -c "CREATE USER your_login WITH PASSWORD 'your_password' CREATEDB"


Prepare sample database for liferay


Download database script here:
http://www.liferay.com/downloads/liferay-portal/additional-files

psql template1 -U your_login -f create-postgresql.sql

Monday, June 7, 2010

Harvard reference generator

I almost finshed the 3rd revision of my dissertation proposal, now finishing the preliminary reference part. I search on the Internet and found this useful, it automatically generate the reference by book, website, etc.

Neil's Toolbox

Tuesday, June 1, 2010

Linux LVM and Smart

I alway not select LVM when setup linux as I don't have experience in LVM. I found the following link has detail explanation. It also explain how to check HD Smart info. Very useful for system administrator.

http://www.enterprisenetworkingplanet.com/nethub/article.php/3733141/Manage-Linux-Storage-with-LVM-and-Smartctl.htm