~ubuntu-branches/ubuntu/hardy/clamav/hardy-security

« back to all changes in this revision

Viewing changes to docs/html/node22.html

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2009-04-30 14:44:26 UTC
  • mfrom: (0.28.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090430144426-933t29chbo6phaa7
Tags: 0.94.dfsg.2-1ubuntu0.3~hardy4
No change rebuild from backports for use with ClamAV 0.94

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
2
 
3
 
<!--Converted with LaTeX2HTML 99.2beta8 (1.46)
 
3
<!--Converted with LaTeX2HTML 2002-2-1 (1.71)
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 -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Usage</TITLE>
11
 
<META NAME="description" CONTENT="Usage">
 
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">
15
15
 
16
 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
17
 
<META NAME="Generator" CONTENT="LaTeX2HTML v99.2beta8">
 
16
<META NAME="Generator" CONTENT="LaTeX2HTML v2002-2-1">
18
17
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
19
18
 
20
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
21
20
 
22
 
<LINK REL="next" HREF="node29.html">
23
 
<LINK REL="previous" HREF="node15.html">
24
 
<LINK REL="up" HREF="clamdoc.html">
 
21
<LINK REL="previous" HREF="node21.html">
 
22
<LINK REL="up" HREF="node17.html">
25
23
<LINK REL="next" HREF="node23.html">
26
24
</HEAD>
27
25
 
28
26
<BODY >
29
 
<!--Navigation Panel-->
30
 
<A NAME="tex2html464"
 
27
 
 
28
<DIV CLASS="navigation"><!--Navigation Panel-->
 
29
<A NAME="tex2html476"
31
30
  HREF="node23.html">
32
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html460"
34
 
  HREF="clamdoc.html">
 
32
<A NAME="tex2html472"
 
33
  HREF="node17.html">
35
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html454"
 
35
<A NAME="tex2html468"
37
36
  HREF="node21.html">
38
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html462"
 
38
<A NAME="tex2html474"
40
39
  HREF="node1.html">
41
40
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
41
<BR>
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
 
 &nbsp <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
 &nbsp; <B>  <A NAME="tex2html475"
50
49
  HREF="node1.html">Contents</A></B> 
51
50
<BR>
52
 
<BR>
 
51
<BR></DIV>
53
52
<!--End of Navigation Panel-->
54
53
 
55
 
<H1><A NAME="SECTION00060000000000000000">
56
 
Usage</A>
57
 
</H1>
 
54
<H2><A NAME="SECTION00054000000000000000">
 
55
Setting up auto-updating</A>
 
56
</H2>
 
57
    <code>freshclam</code> is the automatic database update tool for Clam AntiVirus.
 
58
    It can work in two modes:
 
59
    
 
60
<UL>
 
61
<LI>interactive - on demand from command line
 
62
</LI>
 
63
<LI>daemon - silently in the background
 
64
    
 
65
</LI>
 
66
</UL>
 
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
 
75
    running as):
 
76
    <PRE>
 
77
        # touch /var/log/freshclam.log
 
78
        # chmod 600 /var/log/freshclam.log
 
79
        # chown clamav /var/log/freshclam.log
 
80
</PRE>
 
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:
 
84
    <PRE>
 
85
        # freshclam -d
 
86
</PRE>
 
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
 
91
</PRE>
 
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.
 
98
    <PRE>
 
99
        HTTPProxyServer myproxyserver.com
 
100
        HTTPProxyPort 1234
 
101
        HTTPProxyUsername myusername
 
102
        HTTPProxyPassword mypass
 
103
</PRE>
58
104
 
59
105
<P>
60
106
<BR><HR>
61
107
<!--Table of Child-Links-->
62
108
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
63
109
 
64
 
<UL>
65
 
<LI><A NAME="tex2html466"
66
 
  HREF="node23.html">Clam daemon</A>
67
 
<LI><A NAME="tex2html467"
68
 
  HREF="node24.html">Clam<B>d</B>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>
73
 
<UL>
74
 
<LI><A NAME="tex2html470"
75
 
  HREF="node27.html">clamscan</A>
76
 
<LI><A NAME="tex2html471"
77
 
  HREF="node28.html">clamd</A>
78
 
</UL></UL>
 
110
<UL CLASS="ChildLinks">
 
111
<LI><A NAME="tex2html478"
 
112
  HREF="node23.html">Closest mirrors</A>
 
113
</UL>
79
114
<!--End of Table of Child-Links-->
80
 
<BR><HR>
 
115
 
 
116
<DIV CLASS="navigation"><HR>
 
117
<!--Navigation Panel-->
 
118
<A NAME="tex2html476"
 
119
  HREF="node23.html">
 
120
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 
121
<A NAME="tex2html472"
 
122
  HREF="node17.html">
 
123
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
 
124
<A NAME="tex2html468"
 
125
  HREF="node21.html">
 
126
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
 
127
<A NAME="tex2html474"
 
128
  HREF="node1.html">
 
129
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 
130
<BR>
 
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
 &nbsp; <B>  <A NAME="tex2html475"
 
138
  HREF="node1.html">Contents</A></B> </DIV>
 
139
<!--End of Navigation Panel-->
81
140
<ADDRESS>
82
141
Tomasz Kojm
83
 
2008-01-28
 
142
2008-11-26
84
143
</ADDRESS>
85
144
</BODY>
86
145
</HTML>