Set Up Ubuntu-Server 6.10 As A Firewall/Gateway For Your Small Business Environment - Page 11
Version numbers in the next commands apply to the latest stable source at the time of writing this article. Adjust as needed.
Like before, pick a mirror close to you.
useradd -g clamav -s /bin/false -c "Clam Antivirus" clamav
tar -zxvf clamav-0.88.7.tar.gz
chmod 600 /var/log/freshclam.log
chown clamav /var/log/freshclam.log
Now edit /etc/clamd.conf. Comment out "EXAMPLE" (without quotes). Next do the same in/etc/freshclam.conf.
Now make this a cron job and run it every hour. Preferably not on the hour or anywhere near, as the clamav servers will be flooded when everybody does so. Choose a smart time for this job. The service is absolutely FREE! Let's keep it that way.
Now I want to do some perl jobs. If you actually use the ancient hardware I did to make this tuto, be advised that it is going to take some time.
Note that you can do without this, for starters. You may wish to schedule this job anywhere soon. If you choose so, you are
Alternatively go all the way right now and do:
perl -MCPAN -e shell
Accept all defaults, except for the question where you can answer "UNINST=1" (without the quotes). I think it is best to actually do UNINST=1.
The "reload cpan" command should be given right after each step in the cpan shell. Better safe than sorry. I only mention this once.
As a result of the next commands you will be asked some questions. Just hit "enter" in all cases.
Now leave the cpan shell:
Now clean your /root directory. That's where all the downloads went.
Warning!!! Don't install Mail::SpamAssassin from cpan alongside the ubuntu spamassassin package as it will breake your system. No more rules du jour, and the rules, my friends, that's what it is mostly about!
If you really want Mail::SpamAssassin from cpan, you will have to purge your spamassassin package and compile, instal and configure it from the latest stable source, which at the time of writing is version 3.1.7.
Samba is installed. As every setup of Samba is unique, I can't help you out here. Don't know how to do it? This is a good starting point.