pg_restore: [archiver (db)] connection to database “dvdrental” failed: FATAL: Peer authentication failed for user “postgres”

I wanted to learn postgresql operations on real database. So, I was following online tutorial where I downloaded a sample database ‘dvdrental.tar’ and got the error ‘ FATAL: Peer authentication failed for user “postgres” ‘ while loading into postgresql. I created a new database in postgresql using the following command. $ sudo -u postgres psql postgres=# CREATE DATABASE dvdrental; postgres=# \list List of… Read more →

OpenVPN Server and Client Setup on Linux

OpenVPN Server and Client setup on Linux becomes very easy from a single shellscript that we developed. The shellscript is open-sourced to the world on github repository. The script name is ““. Please clone the project or download the script on your server machine. And lets get started. Assumptions: Server and Certificate Authority (CA) works from same server Client certificate… Read more →

The new widgit id “Redirector” is invalid for type: Blog

I created this personal blog DevGeek and imported my all posts from old blogger blog: by following ‘Three Simple Steps‘ explained in my previous Blog – Import Blog from Blogger to WordPress. After successful import of my old blog, I wanted to redirect visitors from blogger to my current wordpress blog. I followed very nice blog “How to redirect… Read more →

Could not find a package configuration file – OpenCVConfig.cmake

I am playing nowadays with OpenCV for visual computing using C++ on Mac OS platform.I installed openCV and by default, it get installed in “/opt/local“. I wrote a test program in c++ using opencv library and tried to build it using cmake. But, I found following errors while running cmake. CMake Error at CMakeLists.txt:3 (find_package):   By not providing “FindOpenCV.cmake” in CMAKE_MODULE_PATH… Read more →

How to see/use Macbook Pro Hidden keys (character) on Keyboard

I already wrote about this in my OLD POST for finding Macbook Pro hidden keys / characters which are not directly visible on Macbook. These characters are frequently used by programmers or writing some technical things. I received a wonderful advice which made things very very simpler. I am going to just elaborate his comments. Here are the following steps… Read more →

Increase/Decrease LCD Brightness using Linux shell/commandline

You can increase your laptop brightness using Linux shell/commandline. There are some brightness levels predefined. You have to use these values for increasing or decreasing brightness from shell/commandline. Brightness levels: 4 16 28 40 52 64 76 88 100 The command for increasing the brightness is echo -n 88 > /proc/acpi/video/VGA/LCD/brightness You can select other brightness levels according to your… Read more →

Installation Guide for IF-MAP Server And Client

IF-MAP is a standard interface between the Metadata Access Point and other elements of the Trusted Network Connect (TNC) architecture. You can find documents define and specify IF-MAP HERE: IF-MAP Server (Java) – Install IF-MAP Client/Library (C/C++) – Install Download one zip file from project iron (SERVER): Download two zip file from libifmap2c (CLIENT):- “libifmap2c-0.2.0.tar.gz” & “libifmap2c-examples-0.2.0.tar.gz“.… Read more →

Animated Social Media Icons Powered by Acurax Wordpress Development Company