Otu esi etinye ma jiri ClamAV na Ubuntu 20.04

ClamAV bụ ngwa ngwanrọ na-emepe emepe na nke efu nwere ike ịchọpụta ọtụtụ ụdị ngwanrọ ọjọọ, gụnyere nje, trojans, malware, adware, rootkits na ihe egwu ọjọọ ndị ọzọ. Otu n'ime isi ihe eji ClamAV eme ihe bụ na sava mail dị ka ihe nyocha nje virus nke ihe nkesa ma ọ bụ jiri ya na sava nnabata faịlụ na-enyocha kwa oge iji jide n'aka na faịlụ dị ọcha, ọkachasị ma ọ bụrụ na ọha mmadụ nwere ike bulite na sava ahụ. ClamAV na-akwado ọtụtụ ụdị faịlụ (akwụkwọ, executable, ma ọ bụ Archives), na-eji njirimara nyocha ọtụtụ eriri, ma na-enweta mmelite maka nchekwa data mbinye aka ya kwa ụbọchị ruo mgbe ụfọdụ ọtụtụ ugboro kwa ụbọchị maka nchebe kachasị ọhụrụ.

N'ime nkuzi a, ị ga-amụta Otu esi ahazi ClamAV na Ubuntu 20.04 LTS. Otu ụkpụrụ ahụ ga-arụ ọrụ maka ụdị ọhụrụ Ubuntu 21.04 (Hirsute Hippo).

Prerequisites

  • OS akwadoro: Ubuntu 20.04 - nhọrọ (Ubuntu 21.04 na Linux Mint 20)
  • Akaụntụ onye ọrụ: Akaụntụ onye ọrụ nwere sudo ma ọ bụ ohere mgbọrọgwụ.

Lelee ma kwalite sistemụ arụmọrụ Ubuntu 20.04 gị na mbụ site na iwu a:

sudo apt update && sudo apt upgrade -y

Advertisement


Ịwụnye ClamAV

ClamAV na-abịa na ebe nchekwa ndabere Ubuntu, nke na-emekarị ka ọ dị ọhụrụ, nyere ClamAV bụ ngwaahịa nchekwa. Ubuntu na-eme mmelite n'oge oge, ọbụlagodi na mwepụta LTS dị ka 20.04.

Iji tinye ClamAV site na ebe nchekwa APT, mebie iwu a:

sudo apt install clamav clamav-daemon -y

Ugbu a ị tinyela ClamAV, ị nwere ike ịga n'ihu imelite nchekwa data nje.

Na-emelite Database Virus ClamAV

Ị ga-achọ ugbu a imelite nchekwa data ClamAV gị tupu ịmalite iji nyocha nje (clamscan). Ka imelite nkọwa ndị a, ị ga-achọ ka ejikọrọ sistemụ gị na ịntanetị site na iji ya (freshclam) iwu ọnụ.

Mbụ, ịkwesịrị ịkwụsị (clamav-freshclam) ọrụ tupu ị nwee ike imelite. Iji mee nke a, pịnye iwu a:

sudo systemctl stop clamav-freshclam

Ugbu a, ị nwere ike ịga n'ihu imelite nchekwa data nkọwa nje gị site na iwu njedebe a:

sudo freshclam

Na mmepụta, ị ga-enweta ihe ndị a dịka ọmụmaatụ:

Otu esi etinye clamav na ubuntu 20.04

Ozugbo emelitere nchekwa data, ị nwere ike ịmalite (clamav-freshclam) ọrụ, yabụ ọ na-eji iwu a na-emelite nchekwa data mbinye aka n'azụ:

sudo systemctl start clamav-freshclam

Mara, hụ na i meela ma ọ bụ gbanyụọ ClamAV na buut. Ị ga-achọkarị ka enyere nke a aka; Otú ọ dị, ịnwere ike ịnwe nke a nwere nkwarụ na-akpaghị aka maka sistemu nwere oke akụrụngwa yana ma ọ bụ chọrọ iji aka mee ya n'oge na-adịghị mma mgbe ịchọrọ ịme nyocha akwụkwọ ntuziaka.

Kwado ClamAV na mmalite:

sudo systemctl enable clamav-freshclam
Otu esi etinye clamav na ubuntu 20.04

Gbanyụọ ClamAV na mmalite:

sudo systemctl disable clamav-freshclam

Rịba ama, (freshclam) na-ebudata ClamAV CVDS na ọdụ data na ebe ndekọ (/var/lib/clamav).

Ka ilele ndekọ aha, jiri ya (ls) iwu:

ls /var/lib/clamav/

Ihe atụ mmepụta:

Otu esi etinye clamav na ubuntu 20.04

Advertisement


Na-ewepụ ClamAV

Iji wepu ClamAV na sistemụ arụmọrụ Ubuntu 20.04 gị bụ usoro ngwa ngwa. Mezuo iwu ọnụ ọnụ iji wepụ:

sudo apt remove clamav clamav-daemon -y

Otu esi eji Clamscan jiri Ọmụmaatụ

Ugbu a ị wụnyela ma kwalite ClamAV, oge eruola inyocha sistemụ gị ka ijide n'aka na ọ dị ọcha. A na-eme nke a na (clamscan) iwu. Ihe atụ nke syntax:

sudo clamscan [options] [file/directory/-]

Nke a bụ ndepụta ihe atụ:

Bipụta enyemaka ClamAV:

sudo clamscan -h

Nyochaa faịlụ:

sudo clamscan /home/script.sh

Nyochaa ndekọ:

sudo clamscan /home/

Bipụta naanị faịlụ ndị butere ọrịa:

sudo clamscan -i /home/

Kwụsị ibipụta faịlụ OK:

sudo clamscan -o /home/

Bipụtala nchịkọta na njedebe nyocha:

sudo clamscan --no-summary /home/

Ozi mgbịrịgba na nchọpụta nje:

sudo clamscan --bell -i /home

Nyochaa akwụkwọ ndekọ aha ugboro ugboro:

sudo clamscan --bell -i -r /home

Chekwaa repo nyochart ka faịlụ:

sudo clamscan --bell -i -r /home -l output.txt

Nyochaa faịlụ ndị edepụtara n'ahịrị n'ahịrị na faịlụ:

sudo clamscan -i -f /tmp/scan

Wepu faịlụ ndị butere ọrịa:

sudo clamscan -r --remove /home/USER

Mara, nke a na-ehichapụ faịlụ na sistemụ gị. Ọ bụrụ na ọ bụ ezigbo ụgha, ị gaghị enwe ike iweghachite faịlụ ahụ.

Bugharịa faịlụ ndị butere n'ime akwụkwọ ndekọ aha iche:

sudo clamscan -r -i --move=/home/USER/infected /home/

Advertisement


Machie ojiji ClamAV CPU

ClamAV n'oge nyocha nwere ike ịdị oke ike nke CPU, sistemụ na-arụ ọrụ na ngwaike nwere oke ma ọ bụ nke ochie nwere ike ịchọta usoro ịtụ ụtụ na sistemụ ha. Ụzọ dị mfe bụ ịmachi (CPU) n'oge nyocha bụ iji (mma) iwu n'ihu iwu ClamAV ọ bụla.

Ihe atụ nke a (mma) iwu iji belata ClamAV CPU:

sudo nice -n 15 clamscan && sudo clamscan --bell -i -r /home

Uru dị ukwuu nke iji usoro a bụ na ọ bụrụ na ọ nweghị ihe ọzọ na-eji CPU, ClamAV na-eji (clamscan) ga-abawanye ojiji CPU. Agbanyeghị, ọ bụrụ na usoro ọzọ nwere mkpa dị elu chọrọ CPU, mgbe ahụ clamscan ga-agbadata nke ọma iji kwe ka usoro nke ọzọ bute ụzọ.

Enwere nhọrọ ndị ọzọ ole na ole; Otú ọ dị, na (mma) iwu bụ ngwọta kacha mma. Ọ ga-ebuli CPU ma ọ bụrụ n'efu ma wedata ala mgbe ndị nrụpụta ndị ọzọ chọrọ ya, na-enye gị nchikota kacha mma na nchekwa.

Okwu na mmechi

Ị mụtala otu esi etinye, melite na iji ihe atụ ClamAV na nkesa Ubuntu 20.04 gị na nkuzi na-esonụ. N'ozuzu, ClamAV bụ nnukwu nyocha nje. Ọ bụ nke kacha mma? Ọfọn, nke ahụ bụ ruo arụmụka mgbe nile na ngwaahịa ndị ọzọ na-ebili ma na-ada; Otú ọ dị, ClamAV bụ mgbe niile n'elu 1 ruo 3 n'ime ọtụtụ akwụkwọ ndị mmadụ na ọ bụ mgbalị siri ike iji nyere aka chebe sistemụ arụmọrụ gị na email na ma ọ bụ sava weebụ site na nje, malware na ihe egwu ndị ọzọ.

Biko mara, n'agbanyeghị ụdị sọftụwia antivirus ndị a dị maka iji n'efu na sistemụ gị, o kwesịghị inye gị echiche nke nchekwa dị ka ijide n'aka na sava weebụ ma ọ bụ desktọpụ gị siri ike site na usoro dị mma ga-akacha zọpụta gị karịa. software ọ bụla nwere ike. Agbanyeghị, ClamAV bụ ngwa ọzọ dị na ngwa agha iji lụso iyi egwu na-eto eto nke cyber ransomware, malware na ndị ọzọ ma ọ bụrụ na ị na-eme usoro ahụ na mbụ.

Maka ozi ndị ọzọ gbasara iji ClamAV, ịga na onye ọrụ gọọmentị akwụkwọ.

Idenye aha
Gwa nke
0 Comments
Inline nzaghachi
Lee echiche niile
0
Ga-ahụ n'anya gị echiche, biko okwu.x