30 November 2010

Unzip Multiple Zip Files At Once (Via the Shell) - (Ubuntu)

Situation

A directory is full of multiple zip archives and the user does not want to manually extract each one as it is time consuming.

Solution

In the shell change directory to the directory containing all the zip files then type the following command

ls *.zip | xargs -n1 unzip

All the zip files will be extracted to the current directory.

26 November 2010

IPBlock - (IP Blocker/Filter) - Ubuntu

IPBlock is an IPblocker for Linux although IPblockers / IPfilters are generally associated with peer to peer filtering they are very useful for filtering out advertising, maleware and other dubious IP ranges with the appropriate lists. Iplist is also available on a variety of Linux Distros however see below for Ubuntu.

The instructions for each version of Ubuntu require their own repository thus you will find a link HERE on the Ubuntu forums providing support for each Ubuntu Version along with instructions on how to install.

24 November 2010

SME Server - Adding Extra SaneSecurity Lists

Sanesecurity distribute databases to extend ClamAV and to use them on SME Server you first need to implement the install script before using the below method to use the databases you want on your server.


After installing, to add additional databases you need to edit the file with your favorite editor in the terminal. I use pico

pico /etc/unofficial-clamav-sigs.conf

And comment out the ones you don't want with # or add the additional database names in on a seperate line:

# ========================
# SaneSecurity Database(s)
# ========================
# Add/remove/modify database file names between quote marks as needed.
# To disable any of the SaneSecurity database file downloads, remove
# the appropriate database file name line(s) below. To disable all
# SaneSecurity database downloads, comment out all of the following lines.
ss_dbs="
phish.ndb
scam.ndb
junk.ndb
rogue.hdb
spear.ndb
spamimg.hdb
# lott.ndb - Disabled
spam.ldb
sanesecurity.ftm
"

then reload:
clamdscan --reload