How to authenticate on a machine with ssh (protocol 1) without password

This document describes the necessary steps to be carried out in order to authenticate with ssh protocol 1 without password. 1. Generate private/public pair of keys on client computer (let’s say desktop) 2. Copy the public key to the server 3. Try to authenticate on server Note: If authenticate on step 3 fails with the … Continue reading How to authenticate on a machine with ssh (protocol 1) without password

How to convert a vmware linux virtual machine to xenserver virtual machine

As the title of this documents says, this document describes how to convert a vmware virtual machine to xenserver virtual machine. Although so far this procedure hasn’t fail, please use this procedure on your own risk. 1. Install quemu on the vmware Server or another Linux machine (on debian based distribution use apt-get install qemu-utils, … Continue reading How to convert a vmware linux virtual machine to xenserver virtual machine

Vmware: How do you merge multiple 2GB disk files to single vmdk file

In case of the 2GB split disk format, your virtual disk consists of multiple data files (e.g. <vmname>-sNNN.vmdk) and one header/descriptor file (<vmname>.vmdk) which describes the virtual disk. In the vmware-vdiskmanager command, it’s only the header/descriptor vmdk which you need to supply as the source virtual disk. Convert to a pre-allocated disk. The following line … Continue reading Vmware: How do you merge multiple 2GB disk files to single vmdk file

Execute a command in all running OpenVZ Containers

If you wish to execute a command in all running Containers, you can use the following script: where <command> is the command to be executed in all the running Containers. For example: Container 12:26pm up 6 days, 1:28, 0 users, load average: 0.00, 0.00, 0.00Container 1012:26pm up 6 days, 1:39, 0 users, load average: 0.00, … Continue reading Execute a command in all running OpenVZ Containers

How to install mercurial on debian squeeze

This document describes how to install and configure mercurial on linux debian squeeze. With minor changes you can use this procedure on different linux distributions. 1. Install required packages 2. Create repositories directories mkdir -pv /repositories chown -R www-data:www-data /repositories cd /repositories 3. Configure hgweb.cgi script in order to server the repositories via Apache 4. … Continue reading How to install mercurial on debian squeeze

Configuring Postfix as a Gmail Relay

This document describes how to configure postfix to use gmail as relay server on debian squeeze. 1. Install the required package. On the dialog window please select No configuration. 2. Configure postfix relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes alias_maps = hash:/etc/aliases inet_interfaces = … Continue reading Configuring Postfix as a Gmail Relay

I can't memorize much, so I take notes!