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 →

Import Blog from Blogger to WordPress

Now, it is very easy to import blogs to wordpress. The WordPress provided a comfortable tool for importing and exporting blog. Visit “Dashboard” of your wordpress blog and goto “Tools” and click on option “import” as shown in the given figure below. After you click on “import“, you’ll be navigated to the page where you will find lots of  options… 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 →

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