Jumat, 01 Juli 2011

Install Clamav di Ubuntu dan Update Via Proxy (Install Clamav in Ubuntu and Update Via Proxy)

Add this on Software Source:
deb http://ppa.launchpad.net/ubuntu-clamav/ppa/ubuntu lucid main 
deb-src http://ppa.launchpad.net/ubuntu-clamav/ppa/ubuntu lucid main 

Open terminal
$ sudo apt-get update
$ sudo apt-get install clamav clamtk
$ sudo apt-get upgrade

Note: if you failed update, reffer to this link:
http://onlinenote.blogspot.com/2011/02/cara-mudah-menambahkan-public-key.html 

If you have connection via proxy, open terminal, then:
$ sudo gedit /etc/clamav/freshclam.conf

# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package

DatabaseOwner clamav
UpdateLogFile /var/log/clamav/freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogTime true
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav
DNSDatabaseInfo current.cvd.clamav.net
AllowSupplementaryGroups false
PidFile /var/run/clamav/freshclam.pid
ConnectTimeout 30
ReceiveTimeout 30
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.id.clamav.net
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net
# Proxy: http://xxx.xxx.xxx.xxx:yyyy
HTTPProxyServer xxx.xxx.xxx.xxx
HTTPProxyPort yyyy
See at the "# Proxy", where x is IP and y is port. If you don't want to manually edit, you can do this:
$ sudo dpkg-reconfigure clamav-freshclam

Source:
http://ubuntuforums.org/showthread.php?t=1427157
http://linux.die.net/man/5/freshclam.conf
https://launchpad.net/~ubuntu-clamav/+archive/ppa