Here a quick walk through on how to install and perform a file system scan with ClamAV. I’ll be installing and scanning on a RedHat 7.3 machine.
First download the required files listed below. For other distributions you should refer to the download page to get the suitable packages. I saved the files to /opt/clamav/
1. clamav (Scanning tools)
2. clamav-db (Virus database)
3. main.cvd (Virus database update file)
4. daily.cvd (Virus database update file)
Let’s start installing the packages.
[root@pinky:~]# rpm -ivh clamav-db-0.93.3-1.rh7.rf.i386.rpm
[root@pinky:~]# rpm -ivh clamav-0.93.3-1.rh7.rf.i386.rpm
[root@pinky:~]# cp main.cvd /var/clamav/
[root@pinky:~]# cp daily.cvd /var/clamav/
That concludes the install process. Now lets scan.
Continue Reading ->
rpm -qa --last will return all installed rpm packages with their installed time. The last installed packages will be at the top of the list.
rpm -qa --last | less is will return all installed packages with their install date. Less allows you to scroll through the results.
rpm -qa --last | tail -n [lines] will return the last 5 packages. Replace [line] with any number you want, in my case 5 for file lines.
[root@bambee root]# rpm -qa –last | tail -n 5
termcap-11.0.1-17.1 Tue 09 May 2006 03:02:53 PM MYT
setup-2.5.27-1 Tue 09 May 2006 03:02:52 PM MYT
filesystem-2.2.1-3 Tue 09 May 2006 03:02:52 PM MYT
basesystem-8.0-2 Tue 09 May 2006 03:02:52 PM MYT
redhat-logos-1.1.14.3-1 Tue 09 May 2006 03:02:51 PM MYT
rpm -qa --last | grep [package name] will return the install date for a specific RPM package. In my case the apache web server [httpd]
[root@jumbo root]# rpm -qa –last | grep httpd
redhat-config-httpd-1.1.0-4.30.2 Sat 29 Mar 2008 09:03:40 PM MYT
httpd-2.0.46-70.ent Sat 29 Mar 2008 08:58:19 PM MYT
Webmin is a web based control panel for system administrators for Unix/Linux. I use Webmin for reports mainly. More about Webmin here.
This is how you would install Webmin on Centos 4.
1. First start by downloading the latest version of Webmin. The current version is 1.400.
I prefer to use use wget to directly download the file onto the server but it’s up to you.
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.400-1.noarch.rpm
2. Install the Webmin rpm package.
rpm -ivh webmin-1.400-1.noarch.rpm
[root@proxy0 /]# rpm -ivh webmin-1.400-1.noarch.rpm
warning: webmin-1.400-1.noarch.rpm: V3 DSA signature: NOKEY, key ID 11f63c51
Preparing... ########################################### [100%]
Operating system is CentOS Linux
1:webmin ########################################### [100%]
Webmin install complete. You can now login to https://proxy0.klm1.netcel360.com:10000/
as root with your root password.
3. Check if the Webmin service has been started.
service webmin status
[root@proxy0 /]# service webmin status
webmin (pid 4878) is running
That’s it, you can now login using your root id at https://localhost:10000
Continue Reading ->