Saturday, May 29, 2010

Signals from the Command Lines

Read an interesting article from LINUX format May 2010 on "Sending the right signal". Learned quite a bit from this article on signals.

Name: SIGHUP 
No: 1
Description. Tells a daemon that its configuration file has changed and named to be re-read
Default action: Terminate

Name: SIGINT
No: 2
Description: SIGINT is sent to the foreground process when you type Ctrl + C. It terminate the process
Default action: Terminate

Name: SIGQUIT
No: 3
Description: SIGQUIT is sent to the foreground process and you type Ctrl + \. It terminate the process with a core dump
Default action: Terminate with core dump.
Note: For Fedora, the core file are suppressed. You can check with the command umlimit -a

Name: SIGKILL
No: 9
Description: Extreme signal that can't be caught or ignored.
Default action: Terminate

Name: SIGSEGV
No: 11
Description: It is sent from within the the program when it tried to access a memory that is not in it allocated range. The memory management hardwre notice the attempt and inform the kernel which send a SIGSEGV to terminate the program

Friday, May 28, 2010

Basic xCAT installation

This Blog entry Basic xCAT Installation is a write-up on how to setup a cluster using xCAT

Thursday, May 27, 2010

Installng xsensors and lm-sensors on fedora 12



Background
It is quite useful to know information regarding  your hardware especially the temperature.

Lm-sensors is the low level driver and service that connects to the motherboard components capable of monitoring temperatures and voltages. Lm-sensors collects the data over the reevant subsystem, an I2C interface.

XSensors is the front-end to display the data collected by Lm-sensors

Hardware Prerequisites.
For more information on hardware support by lm_sensors, please visit the Device lm-sensors wiki



Install Prerequisites and XSensors
Step 1: Install lm_sensors package
yum install lm_sensors lm_sensors-devel

Step 2: Install gtk2

yum install gtk+

Step 3: Download the xsensors from the http//linuxhardware.org). The current version at this point in writing is xsensors-0.70.
*Ensure you have GNU compilers installed so that you can compile the program
tar -zxvf xsensors-0.70.tar.gz
cd xsensors-0.70
./configure
make
make install

Tuesday, May 25, 2010

Use Yum to download without installing it

Step 1: First, you have to install the yum-downloadonly plugin for yum
# yum install yum-downloadonly

Step 2: Run the command to download the latest vsftpd
# yum install vsftpd --downloadonly 

Step 3: To specifies an alternate directory to store packages
# yum install vsftpd --downloadonly --downloaddir=/opt

Monday, May 24, 2010

Using yum to local install without checking repository

To prevent yum from going online and check with the repositories, you will need to include --disablerepo flag. For example:
 
yum localinstall --disablerepo=* gcc-4.1.2-48.el5.x86_64.rpm --nogpgcheck