* put a launchpad ubuntu ppa in /etc/apt/sources.list >> ppa:ubuntu-clamav/ppa * put a ppa in sources.list for older ubuntus >>> deb http://ppa.lanuchpad.net/ubuntu-clamav/ppa/ubuntu karmic main Doing this allows us to get the latest version of clamav for ubuntu (rather than just the version supplied with the standard ubuntu installation) * get the keys for the server >> sudo apt-key adv --ekyserver keyserver.ubuntu.com --recv-keys 5ADC2037 * get the latest virus definitions >> sudo freshclam * get all the virus signatures in the virus db >> sigtool --list-sigs But what is this for exactly * get the clamtk gui frontend for clam and gnome >> sudo apt-get install clamtk (or get clamav-kde, or Klamav) * get the clamav daemon >> clamav-daemon * check if the clam daemon is running, should give 3 results >> ps ax | grep clamd * start the daemon >> sudo clamd * check the version of the daemon >> clamdscan -V * scan a whole folder tree >> clamscan -r /path/tree * scan a folder tree and ring the bell when finished with output >> clamscan -r --bell -i /path/ * mail result >> clamscan -r -i /path/ | mail me@me.com * scan and automatically remove files, a bit dangerous >> clamscan -r --bell --remove -i /path/ * schedule a virus scan for 3am one off >> at 3:00 tomorrow >> at> clamscan -i ~ | ~/test.txt * schedule it with cron on the hour every hour everyday >> export EDITOR=vim >> crontab -e >> append "0 * * * * sh /path/script.sh * schedule it without sending any mail >> append "0 * * * * sh /path/script.sh > /dev/null 2>&1 * schedule a virus signature update once a day >> append "0 3 * * * sh /path/script.sh > /dev/null 2>&1 == other security tools .. SELinux - harden the box .. AppArmor .. chrootkit = check for rootkits .. AVG - a free antivirus ..