Enable autologin in Debian with Systemd

19 05 2017

For allow autologin in a Debian system with systemd (very usefull with testing virtual machines):

Create dir:
mkdir /etc/systemd/system/getty@tty1.service.d/

Create file /etc/systemd/system/getty@tty1.service.d/override.conf with the following content:
ExecStart=-/sbin/agetty --autologin root --noclear %I $TERM

More info:


Install VMware Horizon Client in Debian 8 Jessie

24 02 2017

Download the linux client from the VMware website:


The downloaded file is a bash script, execute it from a privileged user:

# bash VMware-Horizon-Client-4.3.0-4710754.x64.bundle

Install dependencies:

# apt-get install libudev-dev libffi-dev libglibmm-2.4-dev

Before finish the install, click into the “Scan” button. If libffi.so.5 is missing and you have libffi.so.6 only (usually in a modern Debian), create a symlink for bypass:

cd /usr/lib/x86_64-linux-gnu && ln -s libffi.so.6 libffi.so.5

Probably, if you execute now the client, it doesn’t start because the following:

$ vmware-view
/usr/lib/vmware/view/bin/vmware-view: error while loading shared libraries: libudev.so.0: cannot open shared object file: No such file or directory

Solve that creating a simlink:

# cd /lib/x86_64-linux-gnu && ln -s libudev.so.1 libudev.so.0

And run!:

$ vmware-view

Install VMWare Tools in Debian – 2016

1 09 2016

Since the supoort for the official and propietary VMWare Tools shiped from VMWare are ended in favour of the Open VM Tools, the execution of the “vmware-install.pl” script passed away.

The official document pointed to this change is the “VMware support for Open VM Tools (2073803)”, highlightning from there the following lines:

– VMware recommends using OVT redistributed by operating system vendors.
– VMware fully supports virtual machines that include OVT redistributed by operating system vendors, which is done in collaboration with the OS vendor and OS communities. However, the operating system release must be published as certified by the specific VMware product in the online VMware Compatibility Guide.
– VMware provides assistance to operating system vendors and communities with the integration of open-vm-tools with OS releases.
– VMware fully supports virtual appliances that include OVT , which is done in collaboration with the virtual appliance vendor.
– VMware does not recommend removing OVT redistributed by operating system vendors.

So, now, installing Open VM Tools is as easier as other package:

# apt-get install open-vm-tools



Install official vmware-view-client in Debian 8 Jessie

28 04 2015

As 2017, this document is deprecated, please, follow the method indicated here: https://elhombrequereventodeinformacion.wordpress.com/2017/02/24/1969/


For x64 systems aren’t available the official pacakge of Vmware View Client. The only solution is make the trick with an old Ubuntu version package and the multiarch support of Debian.

First, add the x86 multiarch support:
dpkg --add-architecture i386
apt-get update

Install Gdebi for an easy dependency resolution:
apt-get install gdebi
Download libssl and vmware-view-client from Ubuntu site or from my github account:
wget 'http://archive.canonical.com/ubuntu/pool/partner/v/vmware-view-client/vmware-view-client_2.2.0-0ubuntu0.12.04_i386.deb'
wget 'http://mirrors.kernel.org/ubuntu/pool/universe/o/openssl098/libssl0.9.8_0.9.8o-7ubuntu3.2_i386.deb'
wget 'https://github.com/rfrail3/misc/blob/master/vmware/vmware-view-client_2.2.0-0ubuntu0.12.04_i386.deb?raw=true'
wget 'https://github.com/rfrail3/misc/blob/master/vmware/libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb?raw=true'

Install the packages and accept dependencies:
gdebi libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb
gdebi vmware-view-client_2.2.0-0ubuntu0.12.04_i386.deb

If all was ok, the new VMware View Client is available under your desktop menu.

Instalar Vmware View Client en Debian x64

13 12 2013

Si se tiene un sistema linux x64 y se pretende instalar Vmware View Client tendremos el principal problema de que no se han publicado un cliente oficial para esta arquitectura.

Como solución, teniendo Debian 7, podemos habilitar multiarch para permitir la instalación de paquetes x86 y bajar algún que otro paquete de ubuntu para finalmente solventar las dependencias.

Primero habilitamos multiarch:
dpkg --add-architecture i386
apt-get update

Instalamos Gdebi, para facilitar la resolución de dependencias:
apt-get install gdebi

Descargar vmware-view-client_2.1.0-0ubuntu0.12.04_i386.deb desde alguno de estos sitios:

Descargar libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb desde alguno de estos sitios:

Instalar libssl y vmware view:
# gdebi libssl0.9.8_0.9.8o-7ubuntu3.1_i386.deb
# gdebi vmware-view-client_2.1.0-0ubuntu0.12.04_i386.deb

Si todo ha ido bien, ya tendremos disponible el acceso desde Aplicaciones > Internet > VMware View Client


VMWare tools time sync

11 01 2013

Para comprobar la configuración de la sincronización de la hora en un host virtual con las vmware tools instaladas:

# vmware-toolbox-cmd timesync status

Fuente: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006427

Tareas de cron ejecutables dentro de un periodo de tiempo aleatorio

6 06 2012

Si no queremos que en todos los servidores se ejecuten las tareas de cron a la misma hora y que se realicen dentro de un periodo de tiempo definido, se pude utilizar el ramdom antes de ejecutar el proceso.

Si queremos que sea un número entre 10, la tarea quedaría así:

00 * * * * /bin/sleep $[($RANDOM %10)+1]; /bin/echo hola

Con ello se ejecutará cada hora dentro de los 10 primeros minutos.