Skip to main content

Linux

Syslog-ng

Posted in

This website http://www.campin.net/syslog-ng/faq.html has amble information on syslog-ng. It also collected a goodly number of links on various log processing information:

CentOS SSH X11 Forwarding

Posted in

To setup SSH X11 forwarding on CentOS, we need to:

1. On the remove server, edit /etc/ssh/sshd_config, and set the following values:

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

2. On the remove server, install the package xorg-x11-xauth:

Convert PDF to JPEG on Linux

Posted in

There is a small tool called Imagemagick that helps to convert PDF file into JPEG. Just install it:

# aptitude update
# aptitude install imagemagick

Then run the command "convert":

$ convert abc.pdf abc.jpg

That's it. Very simple.

 

Install Zimbra on OpenVZ CentOS

Prepare the VPS

Before we install Zimbra, we must install the follow packages

root@HN# vzctl exec 101 yum install ant sysstat gmp compat-libstdc++-296 compat-libstdc++-33

The above list should be good enough for Zimbra 6. If installing Zimbra 5, then we also have to have:

/dev/sda1 does not have any corresponding BIOS drive

Posted in

After a grub update, we were instrusted to do install the new version's stage1 to MBR. A first attempt failed as follow:

# grub-install hd0
/dev/sda1 does not have any corresponding BIOS drive.

(hd0 was the boot disk for this system. You can find out yours from your grub.conf file.) To fix this problem, we just needed to add the "--recheck" option:

Newer Software Versions in CentOS

The general, the software version in CentOS are behind. It's just the way CentOS and Red Hat operate. They aim for long term support and stability.

But if you have to use a newer software package, you may find the some newer packages in CentOS's test repository, as listed in this page Available Repositories for CentOS. For CentOS 5 testing packages, you can find them in http://dev.centos.org/centos/5/testing/.

YUM Download Source RPM

How do I yum install SRPM from CentOS/Red Hat site, instead of manually download the srpm from one of the ftp website?

Install yum-utils

# yum install yum-utils

Support dm-crypt in Linux Kernel

When you compile your own kernel, in order to enable support for dm-crypt, please make sure you check

Device Drivers --->
     [*] Multiple devices driver support (RAID and LVM) --->
        <*> Device mapper support
        <*> Crypt target support

 

X Server on ATI Rage XL

Posted in

Kernel configuration

ATI Rage XL is a  very acient video card. The hardest part was to find the correct video driver for it. After much guess and trial and searching around, I believe the correct answer is "mach64".

I first tried to use some ati drivers, such as "fglrx" and "radeon". This would bring in ati-drivers. In order to ati-drivers, I had to set the following kernel options. I haven't removed the them to find out whether I can go without them.

Syndicate content