Category Archives: Operating Systems

VMware : Install ESX tools for RHEL / CentOS Linux using YUM

To install VMware Tools from the ESX repository on RedHat/CentOS Linux guests using YUM, you need first to install the public key : rpm –import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-RSA-KEY.pub [Updated 06/03/12 : key URL has changed. Old location : http://packages.vmware.com/tools/VMWARE-PACKAGING-GPG-KEY.pub)] Now, you need to create the repository file located in /etc/yum.repos.d : vi /etc/yum.repos.d/vmware-tools.repo And then, paste the… Read More »

Linux : How to generate SSL certificate key pair

Here are the few steps to generate the private key, certificate signed request, self-signed certificate and how to get rid of the passphrase request when starting you’re application . Okay, let’s start. Go to the directory you want to store you’re certificate stuff. This example will assume you’re common name (aka : host name) will… Read More »

FreeBSD : How to setup a software RAID-1

First, avoid any problem by getting two identical hard drive (or at least, same size and speed at least if not from same manufacturer). This tutorial assume both your hard disk are “da0” and “da1“. If you don’t know you’re devices name, simply use “dmesg” or “df -h” command to find out. First, let’s temporary… Read More »

Linux : Search and replace across multiple files

To search and replace across multiple text file on a Linux/Unix system, use the following command : find . -name “*.extension” -print | xargs sed -i ‘s/search_for_text/replace_with_text/g’ So, as example, let’s assume you want to replace an IP address in multiple Bind zone file (using the extension .hosts) and replace IP address 10.10.1.1 for 192.168.1.1… Read More »

Windows : How to rename a power plan name

On Windows Vista/7, there is no GUI option to rename a power plan. You must use the “powercfg” command line utility to achieve this task. Open the command line (Start, Run – or type directly in the bottom search bar) : cmd Then, in the command prompt, type this command to list all power plan… Read More »