A chronological documentation test project, nothing serious, really!

28 Nov 2011 Switching to a graphical login on RHEL6

This is a short post on how to install the necessary components to get X Server running on a bare bone RedHat 6 Enterprise Server (CentOS6) installation.
The following commands should be run from a console window as the root user.

Install barebone X support

# yum groupinstall "X Window System"

Install X and the Gnome Environment

# yum groupinstall "X Window System" "GNOME Desktop Environment"

Install X and the KDE Window System

# yum groupinstall "X Window System" KDE

Install the XFCE desktop environment

# yum groupinstall "X Window System" XFCE

When you have chosen your desired desktop environment, make the final change to make the Gnome Display Manager show you a logon screen.
Edit the file /etc/inittab and change the line




You will be greeted with a graphical logon screen the next time you have rebooted your server.

Tags: , , , ,

Posted by

14 Nov 2011 How to corrupt a disk partition using dd

I wanted to test corruption of a 41TB XFS filesystem and the dd command was the perfect tool for the job.
I used a block size of 512 bytes and wrote 10 blocks of data from device /dev/urandom to the partition /dev/sdb1.
The “Seek” option specifies how many blocks are skipped, counting 100 blocks from the beginning of the partiton, before writing the random/corrupted data.

# dd bs=512 count=10 seek=100 if=/dev/urandom of=/dev/sdb1

This procedure WILL most likely corrupt your disk partition or files on the partition. Use it ONLY on test systems and with a valid backup!


Posted by

10 Nov 2011 Remove white space from file names

This is a one liner to remove white space in filenames using a linux console

# rename 'y/ /_/'  *

You could also do this the other way, remove underscore with space

# rename 'y/_//' *


Posted by