How to scan share folder using Clamav

Friday, August 10, 2007 | Label: | 2 komentar |

At our office, we have a problem. Various viruses were detected in our Maxtor storage server. Yes, it's a public file server. And Maxtor didn't have any antivirus tool. So, the only solution is to mount it using Samba and scan it with Clamav.

How to do it?

First, create a folder where it's your mount point.

mkdir [Mount point]

2nd, mount your storage server using Samba

mount -t smbfs //[Maxtor IP address]/[Shared folder] /mnt/[Mount point]/

3rd, put your mount point into fstab

//[MAxtor IP address]/[Shared folder] /mnt/[Mount point] smbfs defaults 0 0

4th, if you want it to work automatically, just write the automatization into crontab

crontab -e

Put this line below into it,

00 07 * * * clamscan --move=/root/karantina -r /mnt/
00 11 * * * clamscan --move=/root/karantina -r /mnt/
00 15 * * * clamscan --move=/root/karantina -r /mnt/
00 19 * * * clamscan --move=/root/karantina -r /mnt/

*)
"karantina" is the folder name from which we move the infected file.
"--move=[Folder repository]" is the command to move the infected file into a specific folder.

Update :
Mbon, dah dibenerin :P

Upgrade Flock in Ubuntu

Thursday, August 09, 2007 | Label: | 0 komentar |

Upgrade Flock from 0.7.0.14 version to 0.9.0.2 version in Ubuntu, just like installing a brand new Flock browser. Download Flock from here, then.

sudo tar -C /opt -xzvf flock-0.9.0.2.en-US.linux-i686.tar.gz

August 9, 2007, Earthquake in Jakarta

| Label: | 23 komentar |

I lived in Jakarta, and suddenly, at 12.04 AM, I felt an earthquake. Quite big. Coz all my family woke up from their sleep. Include me. It was scary, coz like bumpy and then shook the floor. I had never felt an earthquake like this in Jakarta before.

From detik, epicentrum in Indramayu. As detik said, earthquakes not only in Jakarta but also hit west java, central java, and east java.

update :
From the forecast, the magnitude is around 7,5.
My cousin Amir in Solo, Central Java, sent me a short message if his city was also hit by the earthquake.