create an executable file named rc.avgd in /etc/rc.d/
(you can copy and paste the following):
Code:
#!/bin/sh
# Start/stop/restart avgd:
avgd_start() {
avgctl --start
}
avgd_stop() {
avgctl --stop
}
avgd_restart() {
avgctl --restart
}
case "$1" in
'start')
avgd_start
;;
'stop')
avgd_stop
;;
'restart')
avgd_restart
;;
*)
echo "usage $0 start|stop|restart"
esac
add the following to the bottom of /etc/rc.d/rc.local
(this will run rc.avgd with the start option so that the
avgd daemon gets started when the system boots up):
Code:
if [ -x /etc/rc.d/rc.avgd ]; then
/etc/rc.d/rc.avgd start
fi
create an executable file named rc.local_shutdown in /etc/rc.d/ and add the following
This will shutdown the avgd daemon when the system shuts down.
(you can copy and paste the following):
Code:
if [ -x /etc/rc.d/rc.avgd ]; then
/etc/rc.d/rc.avgd stop
fi
If the avgd daemon is not shut down the program's lock file (/opt/avg/av/var/run/avgd.pid)
gets left behind and it will not start on the next boot claiming that it is already running.
There is a way to get avg to scan files on-access but I have not figured that out yet.
As for the GUI...one of the announcements on the avg website mentions that the program
does have a GUI interface but looking through the forums I came across several posts
where it is mentioned that there is no GUI packaged with avg for linux.
I did come across a youtube video where someone was using a GUI interface to the avgd
daemon using some python scripts but the scripts are no longer available for download.
HTH
Cheers
On this page there are several links explaining how to enable
on-access scanning but it is for an older version of avg.
I'm not sure if the information applies to the newer versions of avg.
(faq 1749, 1752, and 1753)
http://www.avg.com/ww-en/faq.pnuid-1253866647