PHP5 for CentOS 4.4

Submitted by str on Tue, 02/27/2007 - 23:13

I’m using right now CentoS 4.4 and PHP5 is not yet part of the rpm package. I can always download the source and compile it or search some pre-pack PHP5 RPM and install it.

Alternatively, here’s how to do it using the good old yum one liner command.

Edit CentOS-Base.repo
vi /etc/yum.repos.d/CentOS-Base.repo
Enable CentOSPlus by changing:

Restrict printing time

Submitted by str on Tue, 02/27/2007 - 10:18

Sometimes there are some requirements that you want to restrict the time a printer can print. Here’s how to do it:

Open the Printers and Faxes Control Panel.
Right-click the printer you want to configure in this manner and select Properties.
Go to the Advanced tab, and then click Available From.
To set the time period that the printer is available, click the up or down arrows, or alternatively, type a start and end time, such as "7:00 a.m. to 4:00 p.m."
Click OK to finish the wizard.

How to find files in Linux

Submitted by str on Tue, 09/12/2006 - 10:30

This is how to find files in Linux assuming you know some little detail about it.

To find "myfile.txt" in the current directory and any subdirectory under the current one.

find -name 'myfile.txt'

To find for any file named "myfile.txt" on the root and all subdirectories from the root.

find / -name 'myfile.txt'

To find for any file beginning with "file" in the current directory and any subdirectory.

find -name 'file*'

To find for any file that is larger then 1000k.

find -name '*' -size +1000k

Xaraya and Drupal Cron Setup

Submitted by str on Mon, 09/04/2006 - 10:48
  1. Create a text file

    vi crons.txt
  2. Write your cron job on the first line, it should read something like this:

    For Drupal:

    0 * * * * lynx http://www.yourdomain.com/cron.php

    or
    For Xaraya:

    0 * * * * lynx http://www.yourdomain.com/?module=scheduler

    Select one, as what you need; and line break is only at the end of the cron job.