How to setup a redundant NFS server with DRBD and Heartbeat in CentOS 5

How to setup a redundant NFS server with DRBD and Heartbeat in CentOS 5

This tutorial will guide you through the entire process of setting up a highly available NFS server.  To proceed, you must have the following:

1. 2 servers with similar hard disk setup (These will be used to create a redundant nfs server)
2. atleast 1 server where the nfs share will be mounted.
3. Static IPs
4. Basic knowledge of vi (:q! = quit, :wq = write and then quit, i = insert mode, esc = leave insert mode, dd = delete line when not in insert mode)

First off, install CentOS on both machines.  During the install process, create a separate blank partition on both machines to be used as your nfs mount.  Set the mount point to /data during installation.

From this point on i’m going to be referring to both nfs servers by their IPs and hostnames.  Server1 will be nfs1 with ip 10.132.196.221 and server2 will be nfs2 with ip 10.132.196.222.  Your private IPs might be different so make sure to put in the correct IPs where necessary within this tutorial.

(more…)

How to Install ThinkorSwim in Linux

How to Install ThinkorSwim in Linux

Here are the quick an easy steps on how to install TOS in Linux (Debian Distro).

First you will need to setup Java on your computer so lets go ahead and do that. Open up the console and login as super user.

su

Now that we have full privileges, lets edit the sources.list file so that we can fetch the much needed java packages.

pico /etc/apt/sources.list

This will bring up your sources.list file in the editor. You should see something that looks like this:

deb http://debian.lcs.mit.edu/debian etch main
deb-src http://debian.lcs.mit.edu/debian etch main

Add the words “contrib non-free” at the end of both lines so it looks like the following:

deb http://debian.lcs.mit.edu/debian etch main contrib non-free
deb-src http://debian.lcs.mit.edu/debian etch main contrib non-free

Now hit “Ctrl + O” to write the changes to the file. Then hit enter to accept the changes. Now hit “Ctrl + X” to exit the editor. That was the hard part :) . Lets update our package listing and download the java packages by running the following commands:

apt-get update
apt-get install sun-java5-jre sun-java5-jdk

Follow the onscreeen instructions to complete the installation of the java packages. Its pretty much gonna ask you to agree to the licenses. After you are done you can close the console window.

(more…)