|
|
|
Quick Install:
#!/bin/bash
# download and install
wget -P ~/Desktop "http://files.avast.com/files/linux/avast4workstation_1.3.0-2_i386.deb"
sudo dpkg --force-architecture -i ~/Desktop/avast4workstation*.deb
# check system architecture
sarch=`uname -m`
if [ "$sarch" != "x86_64" ]; then
# i386 only
sudo apt-get install libesmtp5
sudo ln -s /usr/lib/avast4workstation/lib/libavastengine-4.so.7 /usr/lib/libavastengine-4.so.7
else
# amd64 only
sudo apt-get install ia32-libs
wget -P ~/Desktop "http://frozenfox.freehostia.com/cappy/getlibs-all.deb"
sudo dpkg -i ~/Desktop/getlibs-all.deb
sudo ln -s /usr/lib/avast4workstation/lib/libavastengine-4.so.7 /usr/lib32/libavastengine-4.so.7
getlibs /usr/lib/avast4workstation/bin/avastgui
fi
# install registration key - REPLACE all of the 1's with your own key
mkdir ~/.avast
echo -e "[licence]\nkey=1111111111111111111-11111111\n" > ~/.avast/avastrc
# the code below fixes a bug related to the avast signatures database
sudo sed -i "s/^exec \/etc\/init.d\/rc S$/echo 128000000 \> \/proc\/sys\/kernel\/shmmax\nexec \/etc\/init.d\/rc S/g" /etc/init.d/rcS
sudo /etc/init.d/rcS restart
|
|
|
|