Tuesday, January 02, 2018

Recovering from Currepted RPM Database

RPM Package
(Image Source: https://www.taringa.net/posts/linux/16751463/Crear-repositorio-de-paquetes-RPM-fedora.html)


I had to interrupted the DNF command in my Fedora 27 Workstation at very initial state. This ended up with corrupting RPM database with following output.

[root@localhost ~]# dnf update -y
error: rpmdb: BDB0113 Thread/process 2779/140691506923328 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 -  (-30973)
error: cannot open Packages database in /var/lib/rpm
Error: Error: rpmdb open failed
[root@localhost ~]#


I used following commands to resolve issue.

Step 1: Move the corrupted database

[root@localhost ~]# mv /var/lib/rpm/__db* /tmp/
[root@localhost ~]#

Tuesday, October 10, 2017

Joomla Error 500 Workround/Fix for 3.7.5 to 3.8.0 Update



Today I updated Joomla to version 3.8.1 from from the 3.7.5 version. Update method I used was, downloading the upgrade zip and extract. 

Result I got was a blank administration page (in blue) and blank web page. 

However I was able to get the site up with following steps:

Note: Make sure to take web root and SQL backup before proceeding. 

Step 1: Apply the 3.8.1 upgrade by unzipping the upgrade zip to web root. (You will see blank pages and blue admin page)

Wednesday, March 11, 2015

First Look of Fedora 22 Alpha Workstation - Screenshots


I installed fedora 22  Alpha on Gnome box (KVM). Here are the screenshots. Click the image to view in full size.

Thursday, February 05, 2015

How to fix Nautilus Always Shows Hidden Files



Even I untick show hidden files or use Ctrl + H in Gnome File Manager, Every next time when I open the nautilus it showed me the hidden files (dot files). Following small trick will fix it.

Wednesday, July 23, 2014

X-Frame-Options Header for Red Hat Linux and CentOS Apache Web Server (httpd)


X-Frame-Options header restricts web page's ability to open in a Frame. Opening in a frame can result a Clickjacking attack which the authentic page is open in a frame a place layer exactly on top of a login section which can capture usernames and passwords.

According to the 'X-Frame-Options response header' reference in Mozilla Developer site, There are three possible values for X-Frame-Options:

Thursday, December 19, 2013

Workaround for Wired Network Connection Switching with nmcli - Gnome 3.10 Fedora 20


Fedora 20 is released on 17th December 2013. It was shipped with Gnome 3.10. There is a issue with Gnome 3.10 by design. There is no Wired Network Control from Network Manager applet. (GNOME Bugzilla – Bug 708966)