Install CPAN’s Perl Module in openSUSE 11.x

Several days ago I had a chance to work with a Perl application again. Luckily, this application needs several Perl modules to be able to work.

The easiest way to install Perl modules is through CPAN. Fortunately there are several software packages that are available to help you working with CPAN. In openSUSE, the helper packages are :

After downloading them, I went to install those packages using the rpm :

# rpm -Uvh cpanm-1.5002-1.1.noarch.rpm perl-App-cpanminus-1.5002-1.1.x86_64.rpm
warning: cpanm-1.5002-1.1.noarch.rpm: Header V3 DSA/SHA1 Signature, key ID dcef338c: NOKEY

Preparing... ########################################### [100%]

1:perl-App-cpanminus ########################################### [ 50%]
2:cpanm ########################################### [100%]

Next, to install a Perl module, just use the following command (you need to run this command as “root“) :

cpanm <module_name>

For example, if I want to install a Perl module named Excel::Writer::XLSX here is the command to do it :

cpanm Excel::Writer::XLSX

--> Working on Excel::Writer::XLSX
Fetching http://search.cpan.org/CPAN/authors/id/J/JM/JMCNAMARA/Excel-Writer-XLSX-0.34.tar.gz ... OK

Configuring Excel-Writer-XLSX-0.34 ... OK
Building and testing Excel-Writer-XLSX-0.34 ... OK
Successfully installed Excel-Writer-XLSX-0.34
1 distribution installed

That’s it for today’s article. See you and take care.

LAME’s options for best quality/size ratio

Recently I need to convert several WAV files to MP3 format. I found the lame program can be used for this purpose. But due to my little knowledge in LAM I have difficulties to use the right options.

Thanksfully after reading the manual page and an article on the Internet, I found the following options generate the best quality and size ratio :

lame -V2 --vbr-new -q 2 -b 112  --lowpass 17 <WAV_file.wav>

And here is the picture of lame in action :

It took around 19 seconds to convert a 58 MB WAV file to MP3 format. Quite fast.

K3b 2.0.1 Not Able to Find cdrecord

Recently, I planned to burn several files to a CD-ROM using K3b version 2.0.1 software. Unfortunately when I started the application, it complained about missing the missing of cdrecord program. Then I checked my system and I found out the cdrecord program is in the cdrtools package. But K3b didn’t know about this.

After doing a little research I found out the solution. It’s very easy and simple. I removed the K3b configuration so it will recreate a new configuration. Here is the command I used to remove the K3b configuration file :

rm .kde4/share/config/k3brc

Note :

Several days ago I did an upgrade to my system to openSUSE 11.3. This problem may be caused by the different configuration used by previous K3b version.

Suricata RC1 Has Been Released

Suricata RC1 has been released. The latest version include the following new features :

  • Support for the http_headers keyword was added
  • libhtp was updated to version 0.2.3
  • Privilege dropping using libcap-ng is now supported
  • Proper support for “pass” rules was added
  • Inline mode for Windows was added

I have also updated the openSUSE RPM specfile for the latest Suricata release.

RPM Spec File for Suricata 0.8.x

Several days ago, Suricata version 0.8.1 was released. One of the change in this release is that the LibHTP is included with the Suricata package.

To ease the Suricata installation, I am developing an RPM spec file for openSUSE 11.1. It was based on the work of Josh at SecureMind and several openSUSE packagers.

Here is the files included in the RPM :

/etc/suricata/suricata.yaml
/usr/bin/suricata
/usr/include/htp/bstr.h
/usr/include/htp/dslib.h
/usr/include/htp/hooks.h
/usr/include/htp/htp.h
/usr/include/htp/htp_decompressors.h
/usr/include/htp/utf8_decoder.h
/usr/lib64/libhtp-0.2.so.1
/usr/lib64/libhtp-0.2.so.1.0.2
/usr/lib64/libhtp.a
/usr/lib64/libhtp.so
/usr/share/doc/packages/suricata
/usr/share/doc/packages/suricata/AUTHORS
/usr/share/doc/packages/suricata/INSTALL
/usr/share/doc/packages/suricata/LIBHTP_LICENSING_EXCEPTION
/usr/share/doc/packages/suricata/QUICK_START
/usr/share/doc/packages/suricata/TODO
/usr/share/doc/packages/suricata/doxygen.conf

You can download the spec file here.

ModSecurity 2.5.11

ModSecurity version 2.5.11 has been released.

Here are several changes in this release according to the CHANGES file included in the tarball.

  • Added a new multipart flag, MULTIPART_INVALID_QUOTING, which will be set true if any invalid quoting is found during multipart parsing.
  • Fixed parsing quoted strings in multipart Content-Disposition headers. Discovered by Stefan Esser.
  • Cleanup persistence database locking code.
  • Added warning during configure if libcurl is found linked against gnutls for SSL.  The openssl lib is recommended as gnutls has proven to cause issues with mutexes and may crash.
  • Cleanup some mlogc (over)logging.
  • Do not log output filter errors in the error log.
  • Moved output filter to run before other stock filters (mod_deflate, mod_cache, mod_expires, mod_filter) to avoid analyzing modified data in the response.  Patch originally submitted by Ivan Ristic.

I’ve also updated my RPM spec file (for OpenSUSE 11.x).