Archive for the 'Linux Support' Category

SBDavid

Verifying Signed RPM Package

Verifying Signed Packages

All Red Hat Enterprise Linux packages are signed with the Red Hat GPG key. GPG stands for GNU Privacy Guard, or GnuPG, a free software package used for ensuring the authenticity of distributed files. For example, a private key (secret key) locks the package while the public key unlocks and verifies the package. If the public key distributed by Red Hat Enterprise Linux does not match the private key during RPM verification, the package may have been
altered and therefore cannot be trusted.

If the disc is mounted in /mnt/cdrom, use the following command to import it into the keyring (a database of trusted keys on the system):

rpm –import /mnt/cdrom/RPM-GPG-KEY

To display a list of all keys installed for RPM verification, execute the following command:

rpm -qa gpg-pubkey*

The output will look similar to the following:

gpg-pubkey-db42a60e-37ea5438

To display details about a specific key, use the rpm -qi command followed by the output from the previous command, as in this example:

rpm -qi gpg-pubkey-db42a60e-37ea5438
SBDavid

kill - terminate a process

kill - terminate a process

The command kill sends the specified signal to the specified process or process group. If no signal is specified, the TERM signal is sent.
The TERM signal will kill processes which do not catch this signal. For other processes, it may be necessary to use the KILL (9) signal, since this signal cannot be caught.

Most modern shells have a builtin kill function, with a usage rather similar to that of the command described here. The `-a’ and `-p’ options, and the possibility to specify pids by command name is a local extension.

$ kill -l
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL 5) SIGTRAP
………
………

Negative PID values may be used to choose whole process groups; see the PGID column in ps command out?put. A PID of -1 is special; it indicates all processes except the kill process itself and init.

EXAMPLES

kill -9 -1
Kill all processes you can kill.

kill -l 11
Translate number 11 into a signal name.

SBDavid

Installing Ruby on Centos with Yum

Installing Ruby on Centos with Yum

Ruby on Rails is an open-source web framework that’s optimizied for programmers happiness and sustainable productivity.

How to upgrade to the minimal requirement.

The below instructions are for 32-bit architecture.

#rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
#rpm -Uvh http://download.elff.bravenet.com/5/i386/elff-release-5-3.noarch.rpm
#yum install ruby ruby-shadow ruby-ri ruby-rdoc gcc gcc-c++ ruby-devel -y
#ruby -v

RubyGems

You can download and then install RubyGems from:

http://rubyforge.org/projects/rubygems/

You will see a list of all files for the project.

#wget http://rubyforge.org/frs/?group_id=126&release_id=43601
#tar xzvf rubygems-1.3.7.tgz
#cd cd rubygems-1.3.7
#sudo ruby setup.rb
#gem –version

yum-updatesd.conf - Configuration file

yum-updatesd uses a configuration file at /etc/yum/yum-updatesd.conf.

There is one section in the yum-updatesd configuration file, main, which defines all of the global configuration options.

Mail Options

email_to
List of email addresses to send update notification to. Defaults to ‘root@localhost’.

email_from
Email address for update notifications to be from. Defaults to ‘yum-updatesd@localhost’.

yum-updatesd, which provides notification of updates which are available to be applied to your system. This notification can be done either via syslog, email or over dbus.

Configuration is done via the /etc/yum/yum-updatesd.conf file.

vi /etc/yum/yum-updatesd.conf

Setup variables as follows:

# how to send notifications (valid: dbus, email, syslog)
emit_via = email
# who to send the email to:
email_to = admin@serverbuddies.com
# who send the notifications
email_from = yum-updatesd@serverbuddies.com
SBDavid

IPV6 Network Configuration in Linux

IPV6 Network Configuration in Linux

Add nameserver to resolv.config

vi /etc/resolv.conf

Add line for ipv6 nameserver

nameserver 1407:f800::113:23:133:101

vi /etc/sysconfig/network

Add a line at the bottom

NETWORKING_IPV6=”yes”

vi /etc/sysconfig/network-scripts/ifcfg-eth0

Add lines at the bottom

IPV6INIT=yes
IPV6ADDR=
IPV6_DEFAULTGW=

Example:

IPV6INIT=yes
IPV6ADDR=2407:f800:101::2
IPV6_DEFAULTGW=2407:f800:101::1

Restart network services:

service network restart

« Prev - Next »