Tuesday, July 10, 2012

An error occurred while loading or saving configuration information for gnome-settings-daemon

When an account is deleted and a new account is created from the system with the same username, the GConf configuration system may fail to handle configuration for the gnome-settings-daemon etc

The error will look like

An error occurred while loading or saving configuration information for gnome-settings-daemon. Some of your configuration settings may not work properly.

You might lose a couple of icons as well and the screen seems unusable

To solve this issue, you might have to remove the user's gconf-username directory found in the /tmp
# rm -rf /tmp/gconfd-session/

If you are using the xrdp, do
# service xrdp restart

Similarly. if you are using vnc, remember to kill your older session and create a new session one

For more information, do look at

What can I do if I get 'An error occurred while loading or saving configuration information for gnome-settings-daemon' when I run a GNOME session?

Sunday, July 8, 2012

Enabling Server Side Includes - SSI on Apache 2

Enabling Server Side Include for Apache is a very simple process.

First thing first, you have to includes make sure APache knows which file to be parsed with should be parsed using SSI

At /etc/httpd/conf/httpd.conf, ensure the following has been done.
AddType text/html .shtml
AddHandler server-parsed .shtml

The next thing is to ensure that the Directory Section of the Apache where the .shtml reside should contains this. This is epsecially true if you set the AllowOverride

<Directtory /home/tester/public_html>
Options +Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory >

For more information and resources, see
  1. Apache Module mod_include
  2. Why my Apache Server Side Include (SSI) is not working?

Friday, July 6, 2012

Inserting leap second causing kernel to hang for CentOS 5.7

I have encountered an interesting problem today. I encountered an error on one of my server

kernel: Clock: inserting leap second 23:59:60 UTC

It results in the hanging of one of my node. There is a report on this Bug 479765 -Leap second message can hang the kernel. Apparently, the CPU ran into a

According to the report, the widely circulated fix as root fixes the symptoms

# date -s "`date -u`"


Using ntpdate in debugging mode

The command ntpdate set the date and time via NTP. For more information on how to setup the NTP, do look at Configuring NTP Server and Client on CentOS 5.x

I found that a simple flag -d for ntpdate is very helpful
# ntpdate -d 0.centos.pool.ntp.org


Looking for host 0.centos.pool.ntp.org and service ntp
host found : 202-150-213-154.rev.ne.com.sg
transmit(202.150.213.154)
.....
.....
reference time:    d3a041ca.66da1dd6  Fri, Jul  6 2012  0:39:38.401
originate timestamp: d3a04688.94d79870  Fri, Jul  6 2012  0:59:52.581
transmit timestamp:  d3a04688.93710d5e  Fri, Jul  6 2012  0:59:52.575



Resources:
How do I join pool.ntp.org?

Monday, July 2, 2012

Configuring Torque Submission Node

If you are planning to have more nodes where the users can do submission apart from the Head Node of the Cluster, you may want to configure a Submission Node. By default, TORQUE only allow one submission node. There are 2 ways to configure this submission node. One way is by using the Using RCmd authentication, the other is by using the “submit_host paramter” in the Torque Server.

We will focus on “submit_host paramter” in the Torque Server for this blog entry. For more information, see my other blog Configuring Torque Submission Node