System admin stuff and cooking


April 17, 2016
by davide

FreeBSD: Fetching metadata signature failed while upgrading from 10.1 to 10.2


Trying to update my *BSD from 10.1 to 10.2 using FreeBSD documentation,, I ran the command below

I get the error below

Fetching metadata signature for 10.2-RELEAS from update6.freebsd.org… failed.

Continue Reading →


April 9, 2015
by davide

Managing VmWare tools service on Centos 6

What ?

Looking at the vSphere console on a Centos 6 guest, you’ll see that the VmWare agent is installed but not running.

Why ?

The script which control the vmware agent “service”  for Centos version 6 is not in the right location.
It should be in

but here’s the script location

How to fix it ?

So how to fix the problem ? Simple as described below

Continue Reading →


November 26, 2014
by davide
1 Comment

Shell: Fixing shell script with ^M as carriage return character(s)

What appen ?

Running a shell (bash, sh, tcsh, or whatever) script fail with the error below

The source of the problem is that this file have been edited on Windows system (see below)

The ^M characters are carriage returns. Windows and DOS terminate lines of text with CR (^M, or ASCII code 13) followed by LF (^J, or linefeed, ASCII code 10). Linux uses just LF

if you edit this script vith vim in binary mode, you’ll see one or more ^M character(s)

$ vim -b script

Continue Reading →