LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-07-2016, 02:45 PM   #1
jek404
LQ Newbie
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 29

Rep: Reputation: Disabled
Antivirus for Slackware 14.2


(Solved)How do I get and install ClamAV on Slackware 14.2

Last edited by jek404; 11-17-2016 at 07:06 AM.
 
Old 11-07-2016, 02:47 PM   #2
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 677

Rep: Reputation: 502Reputation: 502Reputation: 502Reputation: 502Reputation: 502Reputation: 502
Did you try SBo?

https://slackbuilds.org/repository/14.2/system/clamav/
 
Old 11-07-2016, 02:53 PM   #3
jek404
LQ Newbie
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 29

Original Poster
Rep: Reputation: Disabled
Yes, and all I got was:

You must have a clamav group and clamav user in order
to run this script. Add them with something like this:
groupadd -g 210 clamav
useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav
bash-4.3# groupadd -g 210 clamav
bash-4.3# useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav

After doing this; I got:

bash-4.3# ./clamav.SlackBuild
tar: /home/"my directory"/Downloads/ClamAV/clamav-0.95.2.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
bash-4.3# ls
clamav clamav-0.99.2.tar.gz clamav.tar.gz
clamav-0.99.2 clamav.SlackBuild install
bash-4.3#
 
Old 11-07-2016, 02:57 PM   #4
orbea
Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 743

Rep: Reputation: Disabled
The script is trying to extract 0.95.2, you have 0.99.2.
 
Old 11-07-2016, 02:59 PM   #5
montagdude
Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 677

Rep: Reputation: 502Reputation: 502Reputation: 502Reputation: 502Reputation: 502Reputation: 502
Quote:
Originally Posted by jek404 View Post
Yes, and all I got was:

You must have a clamav group and clamav user in order
to run this script. Add them with something like this:
groupadd -g 210 clamav
useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav
bash-4.3# groupadd -g 210 clamav
bash-4.3# useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav

After doing this; I got:

bash-4.3# ./clamav.SlackBuild
tar: /home/"my directory"/Downloads/ClamAV/clamav-0.95.2.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
bash-4.3# ls
clamav clamav-0.99.2.tar.gz clamav.tar.gz
clamav-0.99.2 clamav.SlackBuild install
bash-4.3#
I suggest you re-download the files from SlackBuilds.org. It seems you have an out-of-date SlackBuild script.
 
Old 11-07-2016, 03:03 PM   #6
jek404
LQ Newbie
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 29

Original Poster
Rep: Reputation: Disabled
After conversion how to install? installpkg?
 
Old 11-07-2016, 05:34 PM   #7
slackb0t
Member
 
Registered: Apr 2005
Distribution: Slackware64-current on Thinkpad Carbon X1
Posts: 237

Rep: Reputation: 56
I didn't know people still used anti virus software :P

Yes.. installpkg is correct.
 
1 members found this post helpful.
Old 11-07-2016, 07:24 PM   #8
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,408
Blog Entries: 15

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
Basically this is the method you use...

1. Download both the slackbuild kit and the source kit.

2. Extract the slackbuild kit using "tar -xf clamav.tar.gz", and copy the clamav source tarball into the extracted directory.

3. Enter the clamav slackbuild kit directory and issue this command as root:

Code:
groupadd -g 210 clamav &&
useradd -u 210 -d /dev/null -s /bin/false -g clamav clamav &&
clamav.SlackBuild &&
installpkg /tmp/clamav-*.t?z
then modify the /etc/clamav.conf and /etc/freshclam.conf files as needed (make a backup of these) and then start the service as shown in the readme.
 
Old 11-07-2016, 08:39 PM   #9
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 Multilib
Posts: 360

Rep: Reputation: 82
I'm curious which setup you are going to apply the antivirus on, ie. desktop, laptop, or a server/mailserver? There are threads on LinuxQuestions about antivirus for Linux, and also specifically on Slackware. I'd recommend you review those threads before settling on CLAM-AV, it might not be the right tool for the job. Also, I'll encourage you to install an anti-virus, setup a firewall, and most importantly keep your application and packages up-to date for security.
 
Old 11-07-2016, 09:15 PM   #10
jek404
LQ Newbie
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 29

Original Poster
Rep: Reputation: Disabled
Laptop
 
Old 11-07-2016, 10:28 PM   #11
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 Multilib
Posts: 360

Rep: Reputation: 82
You would do well to search and read the antivirus threads on LinuxQuestions. Your laptop should also be sure to run a firewall, and shutdown all services you don't use. I'd also recommend you consider an encrypted harddisk for your installation. There are artiles on the Slackware.com http://docs.slackware.com/start?do=s...ulltext=Search. You should also check the capability of the anti-virus to detect malware. Personally I use ESET NOD32 for Linux because of its higher detection rates versus CLAM-AV.
 
Old 11-08-2016, 12:32 AM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,023

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by jek404 View Post
Laptop
Sharing anything with Windows users? Samba or mail server?
 
Old 11-08-2016, 05:28 AM   #13
jek404
LQ Newbie
 
Registered: Mar 2015
Location: USA
Distribution: Slackware
Posts: 29

Original Poster
Rep: Reputation: Disabled
Could, but just trying to get antivirus to work and one I trust on a full default install of Slackware 14.2 with only Apache Open Office 4.1.3 and Google Chrome
 
Old 11-08-2016, 09:52 AM   #14
hitest
LQ Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware
Posts: 5,227

Rep: Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219Reputation: 1219
Quote:
Originally Posted by jek404 View Post
Could, but just trying to get antivirus to work and one I trust on a full default install of Slackware 14.2 with only Apache Open Office 4.1.3 and Google Chrome
If you're running a mail server on Slackware and that mail is going to be downloaded by Windows laptops, desktops then having the mail scanned for viruses would protect your Windows machines. Or if you're using Samba to share files with Windows clients then scanning for viruses makes sense. However, if you're not running any Windows machines then it may be over kill. I have not heard of too many instances of Linux viruses.
There are rootkits in Linux that you may wish to scan for. I like and use the rkhunter utility.

https://slackbuilds.org/repository/1...earch=rkhunter

Last edited by hitest; 11-08-2016 at 10:03 AM. Reason: Edit added later
 
Old 11-08-2016, 05:58 PM   #15
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 2,023

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
Quote:
Originally Posted by jek404 View Post
Could, but just trying to get antivirus to work and one I trust on a full default install of Slackware 14.2 with only Apache Open Office 4.1.3 and Google Chrome
If you're not serving anything then it is most likely that you don't need AV software at all.

Viruses for Linux can only attack "server-type" services which are not required to run as an end user.

This is due to the design of the base system, which basically makes it impossible for a Windows-style virus to do anything.

Anyhow, to get ClamAV working, the SlackBuild should work: https://slackbuilds.org/repository/14.2/system/clamav/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ESET NOD32 Antivirus 4 Linux install on Slackware bamunds Linux - Security 1 01-18-2016 09:59 PM
slackware antispam and antivirus email server timsoft Slackware 12 12-24-2015 05:11 AM
Antivirus and slackware Carpo Slackware 5 08-16-2008 02:16 PM
Slackware 9.1 antivirus advise ivonski Slackware 1 05-14-2004 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration