Archive for July, 2009

Cool “OLD” Way to Restart RSyslog – Fedora 11

July 23, 2009

#kill -HUP `cat /var/run/syslogd.pid`

Its the same as

#service rsyslog restart

But in a different way

There are another signals, each one can be represented by a number, here is a small list of signals available:

  • HUP = 1
  • KILL = 9
  • TERM = 15

I realized that it did not change the PID of the process and I got an interesting comment about that saying that rsyslog v5 does not support HUP anymore.

sangoku

Compiling the Linux Kernel – CentOS 5.3

July 21, 2009

Steps:

#yum -y  install kernel-devel kernel-headers

#yum -y groupinstall “Development-Tools”

#cd /usr/src

#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.30.2.tar.bz2

#tar -jxvf linux-2.6.30.2.tar.bz2

#cd /usr/src/linux-2.6.30.2/

#make menuconfig

#make clean

*#make dep (is no more necessary)

#make bzImage

#make modules

#make modules_install

#make install

*make install will copy the files: System.map, vmlinuz and the initial ram disk initrd-2.6.30.2.img to /boot. It will also add the lines you will need on grub, now just restart your computer and choose the new kernel on the grub screen.

Have Fun !!!

centos

Installing Microsoft Fonts on Fedora 11 x64

July 10, 2009

Follow the steps:

1) Install some dependencies using yum

#yum -y install rpm-build cabextract ttmkfdir xorg-x11-xfs

Paul Frields comment that he made a better spec, available here which does no require the chkfontpath dependence.

2) Installing the last dependence not available by yum

#rpm -ivh http://dl.atrpms.net/all/chkfontpath-1.10.1-2.fc9.i386.rpm

3) Making the msttcorefonts rpm

  • Download the file http://corefonts.sourceforge.net/msttcorefonts-2.0-1.spec to the folder ~/rpmbuild/SPECS/
  • cd ~/rpmbuild/SPECS/
  • rpmbuild -bb msttcorefonts-2.0-1.spec
  • rpm -ivh ~/rpmbuild/SRPMS/msttcorefonts-2.0-1.src.rpm
  • rpm -ivh ~/rpmbuild/RPMS/noarch/msttcorefonts-2.0-1.noarch.rpm

Now just open your openoffice the have fun with the new fonts(TImes new roman, verdana, etc …)

[1] http://corefonts.sourceforge.net/

logo_fedoralogo