Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old April 27th, 2005   #1
crazybill
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: California USA
Beans: 108
Clam AV nuts and bolts

To install Clam Antivirus:

sudo apt-get install clamav
(Providing that your /etc/apt/sources.list file is up to date, you will get a good recent version of Clam antivirus installed on your machine.)

To update your virus definitions:

freshclam

To check files in your home directory:

clamscan

To check files in the entire home directory:

clamscan -r /home

To check files on the entire drive (displaying everything):

clamscan -r /

To check files on the entire drive but only display infected files and ring a bell when found:

clamscan -r --bell --mbox -i /

Run Clam AV from a terminal window!

Why would you run an antivirus scan on an Ubuntu Linux Hoary computer. At this time, the only reason is if you transfer files back and forth to a Windows machine or transfer/serve email. There are yet no known virus/worm/trojan/root-violation problems with properly set-up Ubuntu computers. However, if you use a Hoary distribution as a computer to transfer files from one location to another, they originate/end up on Windows machines, or if you want to scan a network.. this can be useful.

Here is a sample readout from: clamscan -r --bell --mbox -i /home

Quote:
clamscan -r --bell --mbox -i /home
(infected file would be listed here)

----------- SCAN SUMMARY -----------
Known viruses: 33840
Scanned directories: 145
Scanned files: 226
Infected files: 1
Data scanned: 54.22 MB
I/O buffer size: 131072 bytes
Time: 20.831 sec (0 m 20 s)
Here is a sample readout from freshclam :
Quote:
root@ubuntu4:/etc/clamav # freshclam
ClamAV update process started at Wed Apr 27 00:06:47 2005
main.cvd is up to date (version: 31, sigs: 33079, f-level: 4, builder: tkojm)
daily.cvd is up to date (version: 855, sigs: 714, f-level: 4, builder: ccordes)
To find out what version you have:
Quote:
root@ubuntu4:/etc/clamav # clamscan -V
ClamAV 0.83/855/Tue Apr 26 06:40:32 2005
You can use the --remove flag (clamscan --remove) too automatically remove virus-infected files, but it is not recommended it. Sometimes, clam AV will figure a file is a virus when it is not. Thus, I look at the results and make a decision whether a file should be removed.

For learning about more flags for clamscan, try man clamscan or info clamscan

You can use the at command to schedule clamscan and/or freshclam.
For example:
at 3:30 tomorrow
at>freshclam
at> <CTRL-D>
job 3 at 2005-04-28 03:30
(You have scheduled and confirmed that the Clam AV update will occur at 3:30 AM tomorrow.


I hope this helps and clears some confusion out there.

Last edited by crazybill; April 27th, 2005 at 04:55 AM..
crazybill is offline   Reply With Quote
Old April 27th, 2005   #2
lao_V
Dipped in Ubuntu
 
lao_V's Avatar
 
Join Date: Feb 2005
Location: London
Beans: 599
Ubuntu Jaunty Jackalope (testing)
Re: Clam AV nuts and bolts

There's a great quote I saw at The Register: "To mess up a Linux box, you need to work at it; to mess up your Windows box, you just need to work on it", writes SecurityFocus columnist Scott Granneman.

I hope this tradition continues
__________________
Linux Registered User: 381155
lao_V is offline   Reply With Quote
Old April 27th, 2005   #3
crazybill
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: California USA
Beans: 108
Re: Clam AV nuts and bolts

Iao V, only use the best:

OpenBSD for webserver
Ubuntu Linux for desktop applications
Windows for Solitare
crazybill is offline   Reply With Quote
Old April 27th, 2005   #4
lao_V
Dipped in Ubuntu
 
lao_V's Avatar
 
Join Date: Feb 2005
Location: London
Beans: 599
Ubuntu Jaunty Jackalope (testing)
Re: Clam AV nuts and bolts

I wouldn't even use Windows for solitaire
__________________
Linux Registered User: 381155
lao_V is offline   Reply With Quote
Old April 27th, 2005   #5
Chayyiel
5 Cups of Ubuntu
 
Join Date: Apr 2005
Beans: 18
Re: Clam AV nuts and bolts

Thanks for the HOWTO!
Chayyiel is offline   Reply With Quote
Old April 28th, 2005   #6
crazybill
A Carafe of Ubuntu
 
Join Date: Apr 2005
Location: California USA
Beans: 108
Re: Clam AV nuts and bolts

No problem
crazybill is offline   Reply With Quote
Old May 14th, 2005   #7
stubby
A Carafe of Ubuntu
 
Join Date: Jan 2005
Beans: 46
Dapper Drake Testing/
Re: Clam AV nuts and bolts

Cheers mate, I appreciate the HOWTO
stubby is offline   Reply With Quote
Old May 14th, 2005   #8
benplaut
100% Pure Ubuntu
 
benplaut's Avatar
 
Join Date: Apr 2005
Location: Not-So-Sunny Hawaii
My beans are hidden!
Send a message via AIM to benplaut Send a message via MSN to benplaut Send a message via Yahoo to benplaut Send a message via Skype™ to benplaut
Re: Clam AV nuts and bolts

<offtopic>i still don't get it! what's the point of antivirus in a "virus free" operating system?!?! </offtopic>

lao_V: great quote!
benplaut is offline   Reply With Quote
Old May 18th, 2005   #9
rum beverage
5 Cups of Ubuntu
 
Join Date: Mar 2005
Beans: 31
Re: Clam AV nuts and bolts

a virus free operating system hasn't been written yet and never will be.
rum beverage is offline   Reply With Quote
Old May 18th, 2005   #10
Arthemys
Ubuntu Espresso Roast
 
Join Date: May 2005
Location: Burlington, VT
Beans: 162
Ubuntu 6.10 Edgy
Send a message via ICQ to Arthemys Send a message via AIM to Arthemys Send a message via MSN to Arthemys Send a message via Yahoo to Arthemys
Re: Clam AV nuts and bolts

Quote:
Originally Posted by rum beverage
a virus free operating system hasn't been written yet and never will be.
That's not wishful thinking now is it? Aspire to be great (linux), and you will be. It gives you something to develop towards, a goal that will prove to be an ever changing target.
__________________
~Arthemys
-Reg. Linux User #211085
IBM Thinkpad R51 [1836-Q4U]
Arthemys is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:09 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry