Install BitDefender

BitDefender (1)
Marius Gologan



BitDefender Antivirus Scanner for Unices (Unixes) is a commercial (non-free) antivirus product with 30 days free trial.
To extend your trial license submit this form.

Note:


All commercial antivirus (third-party products) are distributed under different licenses.
During the following steps, you will be required to read (accept or decline) the license terms.
Commercial antivirus products can be added thanks to Amavisd-new module. Ensure you run the latest Scrollout release.
Hardware requirements: 512MB - 1024MB in addition to the existing RAM.

Download and Install


cd /tmp/

wget http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Antivirus_Scanner_for_Unices/Unix/Current/EN_FR_BR_RO/Linux/BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run

test -f /tmp/BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run && /bin/bash /tmp/BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run

Read the license agreement.
Scroll down by pressing "Space bar".
Type "accept" if you agree.

Do you want to install BitDefender Antivirus Scanner GUI package ? (Y/n)
Type "N" and press Enter.

Set hourly update

echo '#!/bin/bash' > /etc/cron.hourly/bdupdate
echo "bdscan --update > /dev/null 2>&1" >> /etc/cron.hourly/bdupdate
chmod +x /etc/cron.hourly/bdupdate && /etc/cron.hourly/bdupdate

Patch
Copy all lines below into Linux CLI:

test -f /opt/BitDefender-scanner/var/lib/scan/bdcore.so && rm /opt/BitDefender-scanner/var/lib/scan/bdcore.so; awk '/bdcore.so.linux/ {print $3}' /opt/BitDefender-scanner/var/lib/scan/versions.dat.* | while read bdcore_so; do touch /opt/BitDefender-scanner/var/lib/scan/$bdcore_so;
bdscan --update;
mv /opt/BitDefender-scanner/var/lib/scan/bdcore.so /opt/BitDefender-scanner/var/lib/scan/bdcore.so.old;
ln -s /opt/BitDefender-scanner/var/lib/scan/$bdcore_so /opt/BitDefender-scanner/var/lib/scan/bdcore.so;
chown bitdefender:bitdefender /opt/BitDefender-scanner/var/lib/scan/$bdcore_so;
done

Add permissions

sudo adduser bitdefender amavis
sudo adduser amavis bitdefender

/etc/init.d/amavis restart

Check license key expiration.

bdscan --info

Change license key:


sn="your-new-key";
sed -i "s/^Key = .*/Key = $sn/" /opt/BitDefender-scanner/etc/bdscan.conf

or edit file /opt/BitDefender-scanner/etc/bdscan.conf manually.

Activate cache to improve performance


touch /opt/BitDefender-scanner/var/lib/scan/Plugins/cache.000
chown bitdefender:bitdefender /opt/BitDefender-scanner/var/lib/scan/Plugins/cache.000

Uninstall


cd /tmp/

wget http://download.bitdefender.com/SMB/Workstation_Security_and_Management/BitDefender_Antivirus_Scanner_for_Unices/Unix/Current/EN_FR_BR_RO/Linux/BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run
test -f /tmp/BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run && /bin/bash /tmp/BitDefender-Antivirus-Scanner-7.6-4.linux-gcc4x.amd64.deb.run --uninstall

test -f /etc/cron.hourly/bdupdate && rm /etc/cron.hourly/bdupdate