view counter

Linux Feed

Linux Support, Oracle Linux, Red Hat Enterprise Linux, SUSE, Oracle Unbreakable Enterprise Kernel and the Oracle Unbreakable Linux Support Program (ULN) resources, news, and support articles.

liblogging-stdlog - code reviewers sought

I am looking for some code reviewers.I have worked hard on liblogging-stdlog, which aims at becoming the new enhanced syslog() API call. The library is thread- and signal-safe and offers support for multiple log drivers, just like log4j does.

Perl/Nagios – Can’t locate in @INC

This is one more issue related Nagios Plugin which is written as Perl script.
While trying to use a Nagios plugin I got an error saying that “Can’t locate in @INC”.
Following is complete error:
Can’t locate in @INC (@INC contains: /root /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)
This issue is occurred due wrong library path in Nagios Plugin(Perl Script).

Perl/Nagios – Can’t locate Sys/Statistics/ in @INC

While trying to use a Nagios plugin I got an error saying that “Can’t locate Sys/Statistics/ in @INC”.
Following is complete error:
Can’t locate Sys/Statistics/ in @INC (@INC contains: /usr/lib/nagios/plugins /root /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .)

wkhtmltopdf converts HTML to PDF

Most - if not all - new electronic devices don't come with printed manuals. For the Sony laptop SVF15A1 I bought, I had to go to the Sony web site to access the user guide. The user guide is composed of many individual HTML pages. This posted a problem for me because I wanted to convert some HTML pages to PDF documents for easier off-line access. Modern web browsers, such as Chrome and Firefox, have the built-in print to PDF feature.

Nginx disable logging

To disable logging in nginx we need to change values of access_log and error_log to off.
Lets say if you have config file for website in sites-enabled and you want to disable logging for it.
Just open configuration file related to your website and look for access_log & error_log in server block, change their values to off.

Compiling GSL/4.1 from GIT on CentOS 5

GSL/4.1  is a code construction tool. It will generate code in all languages and for all purposes. To compile GSL, do the followings
# yum install pcre
# git clone git://
# cd gsl/src
# make
# sudo make install
To show command-line help

Support for binding Oracle PL/SQL BOOLEAN introduced in PHP OCI8 2.0.7

I've released PHP OCI8
which has oci_bind_by_name() support for binding
PL/SQL's href="">BOOLEAN
type to PHP's href="">boolean.
The feature is available when PHP OCI8 2.0.7 is linked-with and
connects-to Oracle Database 12c. (The necessary Oracle C library
support for binding BOOLEAN was introduced in 12c).

Python dictionary sum of all values

By sum and values() functions in dictionary we can get sum of all values.
Lets say we have a dictionary d defined as following:
d = {'a' : 1, 'b' : 2, 'c' : 3}
To print sum of all values in above dictionary use following function:
To print only values from dictionary:
We will get output as list
[1, 3, 2]

Find out when a package was last installed or updated

If you administer a Linux computer, you may occasionally ask when a software package was last installed or updated on your system. For a Red-Hat-based operating system - Centos, Fedora, RHEL, etc - getting the answer is a simple task of querying the RPM database. The RPM database stores, among other things, the last install date of rpm packages. To query information about the curl package: $ rpm -qi curlName : curlVersion : 7.29.0Release : 7.fc19Architecture: i686Install Date: Sun 11 Aug 2013 03:55:52 PM PDT

Video recording of my talk at FOSDEM’14 in Brussels

Configuration management in an Enterprise Linux Team — How I automated myself out of my job Thanks to the FOSDEM video team for this video! It nicely integrates the slides and me talking! It’s just a pity the sound from the camera was used instead of the mic I was wearing. Therefore you hear a […]

view counter