<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>clamav Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/clamav/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 17 Jan 2021 16:04:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to enable ClamAV on Nextcloud?</title>
		<link>https://www.osradar.com/how-to-enable-clamav-on-nextcloud/</link>
					<comments>https://www.osradar.com/how-to-enable-clamav-on-nextcloud/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 20 Jan 2021 02:59:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[Nextcloud]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=27770</guid>

					<description><![CDATA[<p>Hello, friends. Enabling ClamAV on Nextcloud is a logical step to take to ensure the integrity of our files and to protect our server and the operating systems such as Windows that will access it. So, in this post, you will learn how to do it. In this post, it is assumed that we have [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-enable-clamav-on-nextcloud/">How to enable ClamAV on Nextcloud?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Enabling ClamAV on Nextcloud is a logical step to take to ensure the integrity of our files and to protect our server and the operating systems such as Windows that will access it. So, in this post, you will learn how to do it.</p>



<p>In this post, it is assumed that we have an instance of Nextcloud configured correctly as we taught you in this post.</p>



<p>So that will be our starting point.</p>



<h2>Enabling ClamAV on Nextcloud</h2>



<h3>1.- Install ClamAV on Ubuntu 20.04</h3>



<p>The first thing we have to do is to <a href="https://www.osradar.com/install-clamav-debian-9-ubuntu-18/" target="_blank" rel="noreferrer noopener">install ClamAV from the official Ubuntu 20.04 </a>repositories or from the distribution you are using.</p>



<pre class="wp-block-preformatted">sudo apt install clamav clamav-daemon
Reading package lists… Done
 Building dependency tree       
 Reading state information… Done
 The following additional packages will be installed:
   clamav-base clamav-freshclam libclamav9 libmspack0 libtfm1
 Suggested packages:
   clamav-docs daemon libclamunrar9
 Recommended packages:
   clamdscan
 The following NEW packages will be installed:
   clamav clamav-base clamav-daemon clamav-freshclam libclamav9 libmspack0 libtfm1
 0 upgraded, 7 newly installed, 0 to remove and 24 not upgraded.
 Need to get 1,403 kB of archives.
 After this operation, 5,199 kB of additional disk space will be used.
 Do you want to continue? [Y/n]</pre>



<p>After the installation is done, you can start the service:</p>



<pre class="wp-block-preformatted">sudo systemctl start clamav-daemon.service</pre>



<p>And then check the status of it</p>



<pre class="wp-block-preformatted">sudo systemctl status clamav-daemon.service
● clamav-daemon.service - Clam AntiVirus userspace daemon
      Loaded: loaded (/lib/systemd/system/clamav-daemon.service; enabled; vendor preset: enabled)
     Drop-In: /etc/systemd/system/clamav-daemon.service.d
              └─extend.conf
      Active: active (running) since Thu 2021-01-14 20:56:34 CET; 2s ago
        Docs: man:clamd(8)
              man:clamd.conf(5)
              https://www.clamav.net/documents/
     Process: 20021 ExecStartPre=/bin/mkdir -p /run/clamav (code=exited, status=0/SUCCESS)
     Process: 20024 ExecStartPre=/bin/chown clamav /run/clamav (code=exited, status=0/SUCCESS)
    Main PID: 20027 (clamd)
       Tasks: 1 (limit: 2286)
      Memory: 129.0M
      CGroup: /system.slice/clamav-daemon.service
              └─20027 /usr/sbin/clamd --foreground=true
 Jan 14 20:56:34 osradar systemd[1]: Starting Clam AntiVirus userspace daemon…
 Jan 14 20:56:34 osradar systemd[1]: Started Clam AntiVirus userspace daemon.</pre>



<p>As you can see, everything is going well.</p>



<h3>2.- Download Antivirus for File Nextcloud App</h3>



<p>ClamAV is the backend of an official Nextcloud extension that scans the files we upload.</p>



<p>In the official documentation, we are told that it is already installed by default, but in my case, it was not.</p>



<p>There are no problems. From a client machine, go to <a href="https://apps.nextcloud.com/apps/files_antivirus" target="_blank" rel="noreferrer noopener">this</a> link and download the latest available version of the extension.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="589" src="https://www.osradar.com/wp-content/uploads/2021/01/download-extension-1024x589.png" alt="Download the extension" class="wp-image-27798" srcset="https://www.osradar.com/wp-content/uploads/2021/01/download-extension-1024x589.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-300x173.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-768x442.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-696x400.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension-1068x614.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/download-extension.png 1363w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Download the extension</figcaption></figure>



<p>Then, copy it to the server using the <code>scp</code> command</p>



<pre class="wp-block-preformatted">scp files_antivirus.tar.gz [user]@[your-domain]:/tmp</pre>



<p>And on the server, decompress it in the place where the Nextcloud APPS are.</p>



<pre class="wp-block-preformatted">sudo tar xvzf /tmp/files_antivirus.tar.gz -C /var/www/html/nextcloud/apps/</pre>



<p>You can check that everything is ok, by accessing the apps folder and checking that there is a folder called files_antivirus</p>



<pre class="wp-block-preformatted">cd /var/www/html/nextcloud/apps/</pre>



<p>So, we&#8217;re doing well.</p>



<h3>3.- Enabling ClamAV on Nextcloud</h3>



<p>So, we have to enable the add-on for ClamAV to work its magic.</p>



<p>To do so, from the Nextcloud dashboard, click on your user and access the APPS section.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="953" height="1024" src="https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-953x1024.jpg" alt="Nextcloud dashboard!" class="wp-image-27799" srcset="https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-953x1024.jpg 953w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-279x300.jpg 279w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-768x825.jpg 768w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-696x747.jpg 696w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud-1068x1147.jpg 1068w, https://www.osradar.com/wp-content/uploads/2021/01/nextcloud.jpg 1366w" sizes="(max-width: 953px) 100vw, 953px" /><figcaption>Nextcloud dashboard!</figcaption></figure>



<p>Then download and locate the add-on we have just installed, which is <em>Antivirus for Files</em>, and click on <em>Enable</em>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="655" src="https://www.osradar.com/wp-content/uploads/2021/01/3-7-1024x655.png" alt="Enabling the extension" class="wp-image-27800" srcset="https://www.osradar.com/wp-content/uploads/2021/01/3-7-1024x655.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-300x192.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-768x491.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-696x445.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/3-7-1068x683.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/3-7.png 1353w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enabling the extension</figcaption></figure>



<p>Then, you will be asked for the password of the Nextcloud admin user that you defined during the installation.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="527" src="https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-1024x527.png" alt="Enabling ClamAV on Nextcloud" class="wp-image-27801" srcset="https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-1024x527.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-300x154.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-768x395.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-696x358.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330-1068x550.png 1068w, https://www.osradar.com/wp-content/uploads/2021/01/password-e1610899132330.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Enabling ClamAV on Nextcloud</figcaption></figure>



<p>After that, it is enabled, you have to go to the Nextcloud settings, in the <em>Security</em> section, and in the <em>Antivirus for Files</em> section, follow these settings:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="401" src="https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-1024x401.png" alt="Configuring ClamAV on Nextcloud" class="wp-image-27802" srcset="https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-1024x401.png 1024w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-300x117.png 300w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-768x301.png 768w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud-696x272.png 696w, https://www.osradar.com/wp-content/uploads/2021/01/clamavnextcloud.png 1040w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Configuring ClamAV on Nextcloud</figcaption></figure>



<p>Then, click on <em>Save</em> and you&#8217;re done. ClamAV will now monitor your files for viruses.</p>



<h2>Conclusion</h2>



<p>So, Nextcloud is a great tool but when working with files it is best to have an anti-virus, especially if it is to be used with Windows computers that are very vulnerable to these situations. So, this tutorial makes the integration between ClamAV and Nextcloud very easy to do.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-enable-clamav-on-nextcloud/">How to enable ClamAV on Nextcloud?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-enable-clamav-on-nextcloud/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
