clamav-devel/docs/html/node13.html
28e73e95
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
 
 <!--Converted with LaTeX2HTML 2K.1beta (1.48)
 original version by:  Nikos Drakos, CBLU, University of Leeds
 * revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
 * with significant contributions from:
   Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
 <HTML>
 <HEAD>
5def21ff
 <TITLE>freshclam: Setting up auto-updating</TITLE>
 <META NAME="description" CONTENT="freshclam: Setting up auto-updating">
28e73e95
 <META NAME="keywords" CONTENT="clamdoc">
 <META NAME="resource-type" CONTENT="document">
 <META NAME="distribution" CONTENT="global">
 
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
 <META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
 <META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
 
 <LINK REL="STYLESHEET" HREF="clamdoc.css">
 
 <LINK REL="next" HREF="node14.html">
 <LINK REL="previous" HREF="node12.html">
 <LINK REL="up" HREF="node6.html">
 <LINK REL="next" HREF="node14.html">
 </HEAD>
 
 <BODY >
 <!--Navigation Panel-->
5def21ff
 <A NAME="tex2html331"
28e73e95
   HREF="node14.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
  SRC="/usr/share/latex2html/icons/next.png"></A> 
5def21ff
 <A NAME="tex2html327"
28e73e95
   HREF="node6.html">
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
  SRC="/usr/share/latex2html/icons/up.png"></A> 
5def21ff
 <A NAME="tex2html321"
28e73e95
   HREF="node12.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
  SRC="/usr/share/latex2html/icons/prev.png"></A> 
5def21ff
 <A NAME="tex2html329"
28e73e95
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
  SRC="/usr/share/latex2html/icons/contents.png"></A>  
 <BR>
5def21ff
 <B> Next:</B> <A NAME="tex2html332"
   HREF="node14.html">freshclam: Mirrors and mirrors.txt</A>
 <B> Up:</B> <A NAME="tex2html328"
28e73e95
   HREF="node6.html">Installation</A>
5def21ff
 <B> Previous:</B> <A NAME="tex2html322"
   HREF="node12.html">Testing</A>
  &nbsp <B>  <A NAME="tex2html330"
28e73e95
   HREF="node1.html">Contents</A></B> 
 <BR>
 <BR>
 <!--End of Navigation Panel-->
 
 <H2><A NAME="SECTION00037000000000000000">
5def21ff
 freshclam: Setting up auto-updating</A>
28e73e95
 </H2>
5def21ff
     <I>freshclam</I> is a default database updater for Clam AntiVirus.
     It may work in two modes:
     
 <UL>
 <LI>interactively - from command line
 </LI>
 <LI>daemon - alone, silently
     
 </LI>
 </UL>
     When started by a superuser it drops privileges and by default switches
     to the <I>clamav</I> user. <I>freshclam</I> uses the
     <TT><A NAME="tex2html13"
   HREF="database.clamav.net">database.clamav.net</A></TT> round-robin DNS which automatically selects
     a database mirror<A HREF="node14.html#mirrors">2.8</A>. freshclam is advanced tool: supports
     proxy servers (with authentication), digital signature verification and
     various error scenarious. <B>Quick test: run <I>freshclam</I> (as
     a superuser) with no parameters and check the output.</B> If everythin
     is OK, you may create a log file in /var/log (owned by <I>clamav</I> or
     another user freshclam is running as (<I>-user</I>):
     <PRE>
 	# touch /var/log/clam-update.log
 	# chmod 600 /var/log/clam-update.log
 	# chown clamav /var/log/clam-update.log
 </PRE>
     Now you can start <I>freshclam</I> in the daemon mode:
28e73e95
     <PRE>
5def21ff
 	# freshclam -d -c 6 -l /var/log/clam-update.log
 </PRE>
     This enables checking for a new database six times per day (and this is a
     minimal suggested value). You should add that line to your startup scripts.
     The other way is to use the <I>cron</I> daemon.  You have to add the
     following line to the crontab of <B>root</B> or <B>clamav</B>:
     <FONT SIZE="-1">    </FONT><PRE>
 0 * * * *	/usr/local/bin/freshclam --quiet -l /var/log/clam-update.log
28e73e95
 </PRE>
5def21ff
     to check for a new database every hour. To setup proxy support
     you may set the environment variable <I>$http_proxy</I>:
28e73e95
     <PRE>
5def21ff
 	export http_proxy="my.proxy.server:8080"
28e73e95
 </PRE>
5def21ff
     or use <I>-http-proxy</I> and <I>-proxy-user</I> options.
28e73e95
 
 <P>
5def21ff
 <HR>
 <!--Navigation Panel-->
 <A NAME="tex2html331"
   HREF="node14.html">
 <IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
  SRC="/usr/share/latex2html/icons/next.png"></A> 
 <A NAME="tex2html327"
   HREF="node6.html">
 <IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
  SRC="/usr/share/latex2html/icons/up.png"></A> 
 <A NAME="tex2html321"
   HREF="node12.html">
 <IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
  SRC="/usr/share/latex2html/icons/prev.png"></A> 
 <A NAME="tex2html329"
   HREF="node1.html">
 <IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents"
  SRC="/usr/share/latex2html/icons/contents.png"></A>  
 <BR>
 <B> Next:</B> <A NAME="tex2html332"
   HREF="node14.html">freshclam: Mirrors and mirrors.txt</A>
 <B> Up:</B> <A NAME="tex2html328"
   HREF="node6.html">Installation</A>
 <B> Previous:</B> <A NAME="tex2html322"
   HREF="node12.html">Testing</A>
  &nbsp <B>  <A NAME="tex2html330"
   HREF="node1.html">Contents</A></B> 
 <!--End of Navigation Panel-->
28e73e95
 <ADDRESS>
 Tomasz Kojm
5def21ff
 2003-11-11
28e73e95
 </ADDRESS>
 </BODY>
 </HTML>