19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
<LINK REL="next" HREF="node29.html">
22
<LINK REL="previous" HREF="node15.html">
23
<LINK REL="up" HREF="clamdoc.html">
21
<LINK REL="previous" HREF="node21.html">
22
<LINK REL="up" HREF="node17.html">
24
23
<LINK REL="next" HREF="node23.html">
29
28
<DIV CLASS="navigation"><!--Navigation Panel-->
31
30
HREF="node23.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="node21.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="tex2html465"
44
HREF="node23.html">Clam daemon</A>
45
<B> Up:</B> <A NAME="tex2html461"
46
HREF="clamdoc.html">clamdoc</A>
47
<B> Previous:</B> <A NAME="tex2html455"
48
HREF="node21.html">Closest mirrors</A>
49
<B> <A NAME="tex2html463"
42
<B> Next:</B> <A NAME="tex2html477"
43
HREF="node23.html">Closest mirrors</A>
44
<B> Up:</B> <A NAME="tex2html473"
45
HREF="node17.html">Configuration</A>
46
<B> Previous:</B> <A NAME="tex2html469"
47
HREF="node21.html">Testing</A>
48
<B> <A NAME="tex2html475"
50
49
HREF="node1.html">Contents</A></B>
53
52
<!--End of Navigation Panel-->
55
<H1><A NAME="SECTION00060000000000000000">
54
<H2><A NAME="SECTION00054000000000000000">
55
Setting up auto-updating</A>
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
<SPAN CLASS="textbf">Quick test: run freshclam (as superuser) with no parameters
73
and check the output.</SPAN> If everything is OK you may create the log file in
74
/var/log (owned by <SPAN CLASS="textit">clamav</SPAN> 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 <SPAN CLASS="textit">should</SPAN> edit the configuration file <code>freshclam.conf</code>
82
and point the <SPAN CLASS="textit">UpdateLogFile</SPAN> 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 <SPAN CLASS="textit">cron</SPAN> daemon. You have to add the
88
following line to the crontab of <SPAN CLASS="textbf">root</SPAN> or <SPAN CLASS="textbf">clamav</SPAN> user:
89
<SMALL CLASS="SMALL"> </SMALL><PRE>
90
N * * * * /usr/local/bin/freshclam --quiet
92
to check for a new database every hour. <SPAN CLASS="textbf">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.</SPAN>
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
62
108
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
64
110
<UL CLASS="ChildLinks">
65
<LI><A NAME="tex2html466"
66
HREF="node23.html">Clam daemon</A>
67
<LI><A NAME="tex2html467"
68
HREF="node24.html">Clam<SPAN CLASS="textbf">d</SPAN>scan</A>
69
<LI><A NAME="tex2html468"
70
HREF="node25.html">Clamuko</A>
71
<LI><A NAME="tex2html469"
72
HREF="node26.html">Output format</A>
74
<LI><A NAME="tex2html470"
75
HREF="node27.html">clamscan</A>
76
<LI><A NAME="tex2html471"
77
HREF="node28.html">clamd</A>
111
<LI><A NAME="tex2html478"
112
HREF="node23.html">Closest mirrors</A>
79
114
<!--End of Table of Child-Links-->
116
<DIV CLASS="navigation"><HR>
117
<!--Navigation Panel-->
118
<A NAME="tex2html476"
120
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A>
121
<A NAME="tex2html472"
123
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A>
124
<A NAME="tex2html468"
126
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A>
127
<A NAME="tex2html474"
129
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>
131
<B> Next:</B> <A NAME="tex2html477"
132
HREF="node23.html">Closest mirrors</A>
133
<B> Up:</B> <A NAME="tex2html473"
134
HREF="node17.html">Configuration</A>
135
<B> Previous:</B> <A NAME="tex2html469"
136
HREF="node21.html">Testing</A>
137
<B> <A NAME="tex2html475"
138
HREF="node1.html">Contents</A></B> </DIV>
139
<!--End of Navigation Panel-->