Wednesday, June 4, 2014

VMware Player certificate error in Linux

When installing a virtual machine and attempting to install VMware Tools on it it will fail complaining about being unable to check a certificate and display an error message.

A certificate error occurred for the update server. Check your Internet settings or contact your system administrator

I searched on the internet and foud this page [1] and I modified the instructions as shown below.

This is the VMware version I'm using:


This is the error message


This is the normal application dialog appearing after the issue has been fixed:


The dialog when downloading the VMware Tools ISO image:


After the ISO has been downloaded it shows the instructions for installing.


















As always the patch on github

Related resources
  1. http://www.fedoraforum.org/forum/showthread.php?t=240980

--
= ^ . ^ =

Wednesday, May 28, 2014

./hibernate.sh

My Debian Jessie hibernation option is somehow broken and I needed a quick way to set the laptop to hibernate when I'm on the road. As always, the github gist is below for both the script and the sudo config:


--
= ^ . ^ =

Monday, May 26, 2014

Drupal 2 Pgpass - Convert Drupal 6 pgsql db_url to .pgpass format and set permissions

I needed to automagically connect to the database of some drupal 6 instances, so I wrote this script to convert the settings.php [1] $db_url [2] into the ~/.pgpass [3] file, remember to also set the apropriate permissions (0600) and also be sure to own the file, otherwise it won't work.

Related resources
  1. https://api.drupal.org/api/drupal/sites!default!default.settings.php/6
  2. https://api.drupal.org/api/drupal/developer!globals.php/global/db_url/6
  3. https://wiki.postgresql.org/wiki/Pgpass

--
= ^ . ^ =

Monday, March 10, 2014

Wednesday, March 5, 2014

Apache httpd configuration sections

To understand how Apache httpd apply configuration blocks. gist @Github.

Related resources
  1. http://httpd.apache.org/docs/2.2/sections.html

--
= ^ . ^ =

Apache httpd configuration file and directory structure

Might be handy when working with different Linux distributions.
I also created a gist @Github.


--
= ^ . ^ =

Apache Security Settings - /etc/apache2/conf.d/security

Common Apache httpd security settings to prevent information disclosure. This file must be placed under:
/etc/apache2/conf.d/security
I also created a gist @Github.
Related resources
  1. http://httpd.apache.org/docs/2.2/

--
= ^ . ^ =

Apache httpd debug mode on Debian GNU/Linux

I use this script most of the times I'm debugging Apache-specific issues on Debian GNU/Linux. I also created a gist @Github.

Related resources
  1. http://httpd.apache.org/docs/2.2/

--
= ^ . ^ =

Monday, February 17, 2014