2 # Add group bitdefender
4 useradd -r -g bitdefender -d /opt/BitDefender-scanner bitdefender -s /bin/bash
5 chown -R bitdefender:bitdefender /opt/BitDefender-scanner /etc/BitDefender-scanner
6 chmod a+r -R /opt/BitDefender-scanner/var/skins
7 chmod +s /opt/BitDefender-scanner/bin/ultool
9 # initialise license data
10 bdscan --help >/dev/null 2>&1
12 # update the desktop-database
13 update-desktop-database -q
15 echo "==> You must be in the bitdefender group to use BitDefender Antivirus Scanner."
16 echo "==># gpasswd -a USERNAME bitdefender"
18 echo "==> registration http://www.bitdefender.com/site/Products/ScannerLicense"
19 echo "==> to receive a key in your inbox"
20 echo "==> copy your key in /opt/BitDefender-scanner/etc/bdscan.conf"
24 # remove the bitdefender user and group
28 # update the desktop-database
29 update-desktop-database -q
30 rm -R /opt/BitDefender-scanner