1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
3
<!--Converted with LaTeX2HTML 2008 (1.71)
3
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
4
4
original version by: Nikos Drakos, CBLU, University of Leeds
5
5
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
6
6
* with significant contributions from:
7
7
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
11
<META NAME="description" CONTENT="clamd">
10
<TITLE>Setting up auto-updating</TITLE>
11
<META NAME="description" CONTENT="Setting up auto-updating">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
16
<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
16
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
17
18
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
20
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="next" HREF="node22.html">
22
22
<LINK REL="previous" HREF="node19.html">
23
<LINK REL="up" HREF="node19.html">
23
<LINK REL="up" HREF="node15.html">
24
24
<LINK REL="next" HREF="node21.html">
29
<DIV CLASS="navigation"><!--Navigation Panel-->
28
<!--Navigation Panel-->
31
30
HREF="node21.html">
32
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
35
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
37
36
HREF="node19.html">
38
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
41
40
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
43
<B> Next:</B> <A NAME="tex2html468"
44
HREF="node21.html">On-access scanning</A>
45
<B> Up:</B> <A NAME="tex2html464"
46
HREF="node19.html">Configuration</A>
47
<B> Previous:</B> <A NAME="tex2html458"
48
HREF="node19.html">Configuration</A>
49
<B> <A NAME="tex2html466"
42
<B> Next:</B> <A NAME="tex2html445"
43
HREF="node21.html">Closest mirrors</A>
44
<B> Up:</B> <A NAME="tex2html441"
45
HREF="node15.html">Configuration</A>
46
<B> Previous:</B> <A NAME="tex2html437"
47
HREF="node19.html">Testing</A>
48
  <B> <A NAME="tex2html443"
50
49
HREF="node1.html">Contents</A></B>
53
52
<!--End of Navigation Panel-->
55
<H2><A NAME="SECTION00051000000000000000">
54
<H2><A NAME="SECTION00054000000000000000">
55
Setting up auto-updating</A>
58
Before you start using the daemon you have to edit the configuration file
59
(in other case <code>clamd</code> won't run):
62
ERROR: Please edit the example config file /etc/clamd.conf.
64
This shows the location of the default configuration file. The format and
65
options of this file are fully described in the <SPAN CLASS="textit">clamd.conf(5)</SPAN>
66
manual. The config file is well commented and configuration should be
57
<code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
58
It can work in two modes:
61
<LI>interactive - on demand from command line
63
<LI>daemon - silently in the background
67
<code>freshclam</code> is advanced tool: it supports scripted updates (instead
68
of transferring the whole CVD file at each update it only transfers the
69
differences between the latest and the current database via a special
70
script), database version checks through DNS, proxy servers (with
71
authentication), digital signatures and various error scenarios.
72
<B>Quick test: run freshclam (as superuser) with no parameters
73
and check the output.</B> If everything is OK you may create the log file in
74
/var/log (owned by <I>clamav</I> or another user <code>freshclam</code> will be
77
# touch /var/log/freshclam.log
78
# chmod 600 /var/log/freshclam.log
79
# chown clamav /var/log/freshclam.log
81
Now you <I>should</I> edit the configuration file <code>freshclam.conf</code>
82
and point the <I>UpdateLogFile</I> directive to the log file. Finally, to
83
run <code>freshclam</code> in the daemon mode, execute:
87
The other way is to use the <I>cron</I> daemon. You have to add the
88
following line to the crontab of <B>root</B> or <B>clamav</B> user:
89
<FONT SIZE="-1"> </FONT><PRE>
90
N * * * * /usr/local/bin/freshclam --quiet
92
to check for a new database every hour. <B>N should be a
93
number between 3 and 57 of your choice. Please don't choose any multiple
94
of 10, because there are already too many clients using those time slots.</B>
95
Proxy settings are only configurable via the configuration file and
96
<code>freshclam</code> will require strict permission settings for the config
97
file when <code>HTTPProxyPassword</code> is turned on.
99
HTTPProxyServer myproxyserver.com
101
HTTPProxyUsername myusername
102
HTTPProxyPassword mypass
71
107
<!--Table of Child-Links-->
72
108
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
74
<UL CLASS="ChildLinks">
75
<LI><A NAME="tex2html469"
76
HREF="node21.html">On-access scanning</A>
111
<LI><A NAME="tex2html446"
112
HREF="node21.html">Closest mirrors</A>
78
114
<!--End of Table of Child-Links-->
116
<!--Navigation Panel-->
117
<A NAME="tex2html444"
119
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
120
<A NAME="tex2html440"
122
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
123
<A NAME="tex2html436"
125
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
126
<A NAME="tex2html442"
128
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
130
<B> Next:</B> <A NAME="tex2html445"
131
HREF="node21.html">Closest mirrors</A>
132
<B> Up:</B> <A NAME="tex2html441"
133
HREF="node15.html">Configuration</A>
134
<B> Previous:</B> <A NAME="tex2html437"
135
HREF="node19.html">Testing</A>
136
  <B> <A NAME="tex2html443"
137
HREF="node1.html">Contents</A></B>
138
<!--End of Navigation Panel-->