It is possible to download and install rules manually, but there is a much easier and quicker way to do so. There are special programs which you can use for downloading and installing rules. For example, Pulled Pork and Oinkmaster. Here I’m going to show how to install & use Oinkmaster.
To install Oinkmaster, enter:
sudo apt-get install oinkmaster
There are several rulesets available. There are Emerging Threats (ET), ET Pro and VRT. In this example we are using ET Free edition.
Recently, I saw this kind or error quite frequent. At first I thought that it was nothing. But eventually, it’s kinda bothering me when I see the error message :p
Jul 6 15:18:01 lel CRON: pam_env(cron:session): Unable to open env file: /etc/default/locale: No such file or directory Jul 6 15:31:50 lel sshd: pam_env(sshd:session): Unable to open env file: /etc/default/locale: No such file or directory
So, here is the solution to solve this problem. First, run this command:
Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (SNMP-NOTIFICATION-MIB): At line 0 in (none) Cannot find module (SNMPv2-TM): At line 0 in (none)
Then, where are in the same path. Path where we searching for the answers. XD So, here is the solution to solve this error.
First, edit this sources.list file:
sudo vi /etc/apt/sources.list
add this line to the end of file:
deb http://fr.archive.ubuntu.com/ubuntu precise main multiverse
I think most of you will encounter with this kind of problem if you are using the previous version of Ubuntu.
W: Failed to fetch gzip:/var/lib/apt/lists/partial/us.archive.ubuntu.com_ubuntu_dists_natty_main_source_Sources Hash Sum mismatch, E: Some index files failed to download. They have been ignored, or old ones used instead.
The solution is to remove the content of /var/lib/apt/lists directory: