Friday, April 5, 2013

Error encountered when running ant on CentOS 5

Apache Ant is a Java library and command-line tool whose mission is to drive processes described in build files as targets and extension points dependent upon each other.

After yum installing the following packages

# yum install ant javacc
which will install the package ant-1.6.5-2jpp.2.x86_64.rpm, javacc.x86_64 0:4.0-3jpp.3.rpm

When I type ant, I encountered the following error
/usr/bin/build-classpath: error: Could not find xml-commons-apis Java
>> extension for this JVM

Solution:
---------
# yum install xml-commons xml-comms-apis

$ ant
Buildfile: build.xml does not exist!
Build failed


I think you can specify the ants using the ant -f "build_file"

Thursday, April 4, 2013

Device eth0 does not seem to be present, delaying initialization on CentOS

When I use the command
# ifup eth3

I received the error
"device eth3 does not seem to be present, delaying initialization"

First thing first, Do check whether the network card is there, do use the command
# lspci |grep Mellanox

If the card is detected, do use this command to show the link. This will give you the clues on

# ip -o link

.....
.....
2: eth3:  mtu 1500 qdisc pfifo_fast qlen 1000\ 
link/ether 00:00:00:00:00:01 brd ff:ff:ff:ff:ff:ff
3: eth4:  mtu 1500 qdisc pfifo_fast qlen 1000\ 
link/ether 00:00:00:00:00:02 brd ff:ff:ff:ff:ff:ff
.....
.....

References:
  1. device eth1 does not seem to be present, delaying initialization from AR

Wednesday, April 3, 2013

Using pam_pbssimpleauth.so to authorise login for users for Torque

For a cluster shared by many users, it is important to prevent errant users from directly ssh into the compute nodes, thus bypassing the scheduler. To implement the pam module, compile the Torque Server based on Installing Torque 2.5 on CentOS 6
Step 1: You should be able to find the pam_pbssimpleauth.so packages at
$TORQUE_HOME/tpackages/pam/lib64/security/pam_pbssimpleauth.a
$TORQUE_HOME/tpackages/pam/lib64/security/pam_pbssimpleauth.la
$TORQUE_HOME/tpackages/pam/lib64/security/pam_pbssimpleauth.so
Step 2: Copy the  pam_pbssimpleauth.so to the compute nodes. Step 2b: DO not put the pam_pbssimpleauth.so in on the Head Node
# scp $TORQUE_HOME/tpackages/pam/lib64/security/pam_pbssimpleauth.so node1:/lib64/security/
Step 3: Verify that the access.so is also present in the /lib64/security/ directory
# ls /lib64/security/access.so
Step 4: Add the access.so and pam_pbssimpleauth.so in the PAM configuration files
# vim /etc/pam.d/sshd

auth       required     pam_sepermit.so
auth       include      password-auth
account    required     pam_nologin.so

account    required     pam_pbssimpleauth.so
account    required     pam_access.so

account    include      password-auth
password   include      password-auth
.....
.....
When a user ssh’s to a node, this module will check the .JB files in $PBS_SERVER_HOME/mom_priv/jobs/ for a matching uid and that the job is running.
You can try the configuration

Tuesday, April 2, 2013

Unable to launch VNCServer due to fontpath issues on CentOS 6

When trying out VNCServer on both CentOS 6.2 and CentOS 6.3

$ vncserver 

WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured.  Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc.

/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: 
pixman_composite_trapezoids
/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: 
pixman_composite_trapezoids

The solution is to Install / Update
  1. The Pixel manipulation library development package (pixman, pixman-devel)
  2. X font handling library for server (libXfont) 
 Interestingly, the default installation of X Windows misses out these packages

# yum install pixman pixman-devel libXfont

Monday, April 1, 2013

Intel Parallel Studio XE 2013 Software Updates


Intel Software has a couple of updates for Compilers, Math Kernel Libraries, Threading Building Blocks that have been released on 28 March

  1. Intel® C++ Composer XE for Linux* 2013 Update 3 Eng/Jpn
  2. Intel® Fortran Composer XE for Linux* 2013 Update 3 Eng/Jpn
  3. Intel® Math Kernel Library for Linux* 11.0 Update 3
  4. Intel® Threading Building Blocks for Linux* 4.1 Update 3
For more information, do look at Intel Parallel Studio XE 2013