~ubuntu-branches/ubuntu/feisty/clamav/feisty

« back to all changes in this revision

Viewing changes to docs/html/node20.html

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2007-02-20 10:33:44 UTC
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20070220103344-zgcu2psnx9d98fpa
Tags: upstream-0.90
ImportĀ upstreamĀ versionĀ 0.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2
2
 
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 -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>clamd</TITLE>
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">
15
15
 
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">
18
19
 
19
20
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
21
 
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">
25
25
</HEAD>
26
26
 
27
27
<BODY >
28
 
 
29
 
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html467"
 
28
<!--Navigation Panel-->
 
29
<A NAME="tex2html444"
31
30
  HREF="node21.html">
32
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html463"
34
 
  HREF="node19.html">
 
32
<A NAME="tex2html440"
 
33
  HREF="node15.html">
35
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html457"
 
35
<A NAME="tex2html436"
37
36
  HREF="node19.html">
38
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html465"
 
38
<A NAME="tex2html442"
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="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
 
 &nbsp; <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
 &nbsp <B>  <A NAME="tex2html443"
50
49
  HREF="node1.html">Contents</A></B> 
51
50
<BR>
52
 
<BR></DIV>
 
51
<BR>
53
52
<!--End of Navigation Panel-->
54
53
 
55
 
<H2><A NAME="SECTION00051000000000000000">
56
 
clamd</A>
 
54
<H2><A NAME="SECTION00054000000000000000">
 
55
Setting up auto-updating</A>
57
56
</H2>
58
 
    Before you start using the daemon you have to edit the configuration file
59
 
    (in other case <code>clamd</code> won't run):
60
 
    <PRE>
61
 
        $ clamd
62
 
        ERROR: Please edit the example config file /etc/clamd.conf.
63
 
</PRE>
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
67
 
    straightforward.
 
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
    <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
 
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 <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:
 
84
    <PRE>
 
85
        # freshclam -d
 
86
</PRE>
 
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
 
91
</PRE>
 
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.
 
98
    <PRE>
 
99
        HTTPProxyServer myproxyserver.com
 
100
        HTTPProxyPort 1234
 
101
        HTTPProxyUsername myusername
 
102
        HTTPProxyPassword mypass
 
103
</PRE>
68
104
 
69
105
<P>
70
106
<BR><HR>
71
107
<!--Table of Child-Links-->
72
108
<A NAME="CHILD_LINKS"><STRONG>Subsections</STRONG></A>
73
109
 
74
 
<UL CLASS="ChildLinks">
75
 
<LI><A NAME="tex2html469"
76
 
  HREF="node21.html">On-access scanning</A>
 
110
<UL>
 
111
<LI><A NAME="tex2html446"
 
112
  HREF="node21.html">Closest mirrors</A>
77
113
</UL>
78
114
<!--End of Table of Child-Links-->
79
 
<BR><HR>
 
115
<HR>
 
116
<!--Navigation Panel-->
 
117
<A NAME="tex2html444"
 
118
  HREF="node21.html">
 
119
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 
120
<A NAME="tex2html440"
 
121
  HREF="node15.html">
 
122
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
 
123
<A NAME="tex2html436"
 
124
  HREF="node19.html">
 
125
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
 
126
<A NAME="tex2html442"
 
127
  HREF="node1.html">
 
128
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 
129
<BR>
 
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
 &nbsp <B>  <A NAME="tex2html443"
 
137
  HREF="node1.html">Contents</A></B> 
 
138
<!--End of Navigation Panel-->
80
139
<ADDRESS>
81
140
Tomasz Kojm
82
 
2010-08-12
 
141
2007-02-12
83
142
</ADDRESS>
84
143
</BODY>
85
144
</HTML>