Ruby on Rails for RHEL 5

Here is the quick and dirty Ruby on Rails setup for Redhat Enterprise Linux v5.0 with MySQL.

(2009-12-04 Update: This does not work with RHEL 5.4. The mysql ruby gem requires ruby 1.8.6 and RHEL 5.4 only ships with ruby 1.8.5)

Using yum install ruby and mysql. The command below does not list all the required packages, but due to dependencies, the additional packages will be installed (or should be – this is all from memory).
(more…)

Tagged with:
 

For those running Xen on servers with no back-end SAN, the following instructions detail the steps necessary to move an LVM-based virtual machine to a new physical host. There may be more elegant ways to achieve this, but this is what worked for me.

Environment
Ok, so let’s set the scene:

  • vmhost is a RHEL 5 server running several virtual machines using the Xen virtualization technology. Each virtual machine is allocated a 60 GB logical volume within an LVM volume group. One of these virtual machines, “win2k3vm”, needs to be moved to a new server.
  • new-vmhost is almost identical to vmhost, but has updated hardware and more memory. This is the server that “win2k3vm” will be moved to.

(more…)

Tagged with:
 

Install phpMyAdmin

phpMyAdmin is web-based PHP application for managing MySQL databases. It is fairly easy to install and configure.

Download the latest stable version from the phpMyAdmin web site, and extract it to a location of your choice. I prefer to keep the installation outside of the web root and use an apache alias to reference it.
(more…)

Tagged with:
 

Mount an ISO file

You can mount a CD or DVD image in Linux so that it appears like a regularly inserted disc. Use the following command:

prompt# mount Fedora-8-x86_64-DVD.iso /mnt/isofile/ -o ro,loop=/dev/loop0

Ensure that the /mnt/isofile directory exists before trying to mount the ISO to that location.

 

VNC over SSH

Sometimes it is useful to manage a Linux server remotely using VNC. A simple and secure method for doing so is to tunnel the VNC connection using Secure Shell. The following instructions have been tested on Redhat Enterprise Linux 5 AS.

On the server side:
First, we need to ensure the vncserver is actually running. SSH to the server or logon at the console as your regular user account. No root privileges are necessary. Once logged in, just type vncserver. You should see something like this:
(more…)