Hai orang-orang yang beriman, diwajibkan atas kamu berpuasa sebagaimana diwajibkan atas orang-orang sebelum kamu agar kamu bertakwa, (yaitu) dalam beberapa hari yang tertentu. Maka jika di antara kamu ada yang sakit atau dalam perjalanan (lalu ia berbuka), maka (wajiblah baginya berpuasa) sebanyak hari yang ditinggalkan itu pada hari-hari yang lain. Dan wajib bagi orang-orang yang berat menjalankannya (jika mereka tidak berpuasa) membayar fid-yah, (yaitu): Memberi makan seorang miskin. Barangsiapa yang dengan kerelaan hati mengerjakan kebajikan, maka itulah yang lebih baik baginya. Dan berpuasa lebih baik bagimu jika kamu mengetahui.
(QS. AL BAQARAH:183-184)

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