RPM: how to get changelog from package

Often there’s a need to get changelog of RPM package. Here is a way to do that: [root@playground ~]# rpm -qp –changelog kernel-2.6.41.9-1.fc15.x86_64.rpm | head * Fri Jan 13 2012 Josh Boyer <jwboyer@redhat.com> 2.6.41.9-1 – Linux 3.1.9 – CVE-2012-0045 kvm: syscall instruction induced guest panic (rhbz 773392) * Wed Jan 11 2012 Josh Boyer <jwboyer@redhat.com>…

Bind: how to get statistics information

To get statistics information about query numbers that Bind has served you need to add next line to configuration file: statistics-file “/var/stats/named.stats”; It should be added in a ‘global’ options statement. After that you need to restart Bind and run: rndc stats Bind will dump statistics to this file. Note that if you run Bind…

munin: fixing ‘Can’t locate object method “new” via package “LWP::UserAgent” ‘

If you get next message Can’t locate object method “new” via package “LWP::UserAgent” at /usr/share/munin/plugins/nginx_request line 106. when you are installing nginx plugins for munin in Debian, this means that you don’t have perl LWP library. Installing it fixes an issue: apt-get install liblwp-useragent-determined-perl After munin-mode restart munin will start to create graphs.

Trac: fixing ‘Warning: Can’t synchronize with repository “(default)” (Unsupported version control system “svn”: No module named svn).’

If you get a message ‘Warning: Can’t synchronize with repository “(default)” (Unsupported version control system “svn”: No module named svn). Look in the Trac log for more information’ while setting up or migrating you Trac, it means that you don’t have SVN library for Python installed. Note that Trac uses subversion-python package and not pysvn.…

Migrating OTRS from Apache to Nginx

Installing OTRS on Fedora is quite easy considering it has pre-built RPM packages and clean documentation. Usually OTRS is used with Apache. It’s stable well-tested solution. But what to do if you have nginx and you don’t want to have Apache? An issue becomes more complicated considering that nginx doesn’t support CGI from a box,…