Está en la página 1de 9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

Installing And Scanning By ClamAV On Ubuntu


14.04 LTS
By Mohammad Forhad Iftekher

TodaywewillinstallClamAVonourUbuntu14.04Linuxdistribution.Theprocessisalmost
similarforotherLinuxdistributions.
Letsbegan.
WeallknowaboutAntivirus.Right?Antivirusisacomputerprogramwhichdetectandheal
virusesfromourcomputers/servers/workstations.
https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

1/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

What is ClamAV?
ClamAntiVirus(ClamAV)isafreeandopensource,crossplatformantivirussoftwaretool
kitabletodetectmanytypesofmalicioussoftware,includingviruses.Oneofitsmainuses
is on mailserversasa serversideemailvirus scanner. The application wasdeveloped for
Unix and has third party versions available for AIX, BSD, HPUX, Linux, OS X, OpenVMS,
OSF(Tru64)andSolaris.
ClamAV includes a number of utilities: a commandline scanner, automatic database
updaterandascalablemultithreadeddaemon,runningonanantivirusengine.
It is widely used for mail gateway scanning software. ClamAV includes a multithreaded
scanner daemon, command line utilities for on demand file scanning and automatic
signatureupdateswhichmakesitpowerfull.
#STEP1
Download&installClamAV
You can download the source from this link.This is the official download site for ClamAV.
Hereisadirectdownloadlinkforthesourceforthecurrentversion.
Lets update the repository for packages lists by issuing the following command in the
terminal.Itsagoodpracticetodoso.Butitisnotmandatory.

sudo apt-get update


ToinstallClamAV,issuethefollowingcommandintheterminal.Thiswillalsoinstallclamav
freshclaminyoursystemautomatically.

sudo apt-get install clamav clamav-daemon

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

2/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

#STEP2
Bythistime,ClamAVisalreadyinstalledonyoursystem.Butweneedtoupdatethevirus
definition database or virus signature. This is the database used by the clamAV to
search for a virus or threat. Issue the following command in the terminal to update your
database.Youwillseethatitwilldownloadthelatestdatabasetomatchanyvirus.Itwill
downloadmain.cvdanddaily.cvdfiles.

sudo freshclam

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

3/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

#STEP3
ScanningfilesbyusingClamAVfromterminalbyusingcommandlineinterface.
Tocheckfilesintheallusershomedirectoriesissuethefollowingcommandintheterminal.

clamscan -r /home
Tocheckallfilesonthecomputer,issuethefollowingcommandintheterminal.

clamscan -r /
Note:Abovecommandwillslowsdownyourserverperformanceandmaytakealongtime
dependingonthesizeofthediskandthecapacityofthedisk.
Pleaseissuethefollowingcommandintheterminaltocheckallfilesonthecomputer,but
onlydisplayinfectedfilesandringabellwhenfoundathreat.

clamscan -r --bell -i /
Afterfinishingthescanning,itwillshowasummaryreportofthescanningjustlikebelow.

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

4/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

To put all the infected files list on a particular file, please issue the following command in
theterminal.

sudo clamscan -r /folder/to/scan/ | grep FOUND >> /path/to/save/report/myfile.txt

Theabovecommandwilltaketheoutputoftheclamscancommandandputitfortheinput
for grep command by using pipe command and which will match the word FOUND and
redirectsallthoseinfectedfileslisttoafilenamedmyfile.txtbyappendingit.
ToknowtheversionofClamAV,pleaseissuethebelowcommandintheterminal.

clamdscan -V

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

5/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

ForschedulingClamAVforrunningonaparticulartime,issuethefollowingcommandinthe
terminal.

crontab -e
Thiswillopencronjobforyou.
Nowappendthefilebyputtingfollowinglineatthebottomofthefile.

00 00 * * * clamscan -r /location_of_files_or_folder
TheabovecronjobwillrunClamAVforscanningthatparticularfolderdirectoryeverydayat
midnight.Ihopeyouknowaboutcronjob.
#STEP4
Till now, we showed all things of ClamAV form terminal. But in fact, we can run ClamAV
withaGUIaswell.ClamAVDoesnotcomewithaGUIbydefault.
Lets install the GUI. To install it, issue the below command on the terminal. It will
downloadallthenecessarypackagestoinstalltheGUI.

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

6/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

sudo apt-get install ClamTK

Now,opentheGUIandyouwillseesomethinglikebelowimage.Youcannoweasilyscan
andviewalltheoptionsbyusingmenuandavailablebuttonsthatitprovides.

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

7/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

Thatsallfortoday.Ihopeyouenjoyit.

HTML5FullscreenBackground
VideowithCSSandJS
(Plugin/Library)

Guide(Introduction,
ImplementationandHowitWorks)
toA/BTestingandSplitURLTesti
(VWO,Optimizely,Google

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

GettingStartedwithReact
SettinguptheDevelopment
Environment

8/9

9/25/2016

Installing And Scanning By ClamAV On Ubuntu 14.04 LTS | Unixmen

78YearOldFindsSecretToEnding
NervePain

"Stunning"TruthAboutNeuropathy
NervePain

WhatYouNeedtoKnowAbout
NeuropathyNervePain

CompilingNextGeneration
JavaScript(ES6,ES7,React)in
BrowserwithBabel6andAbove

CSSApplyFilterEffects(blur,
grayscale,hue)totheAreaBehind
anElementwithbackdropfilter
Property

CustomValidationMessagesfor
HTML5FormConstraints

https://www.unixmen.com/installing-scanning-clamav-ubuntu-14-04-linux/

9/9

También podría gustarte