3 steps to live an extraordinary life

There are times when our life seems almost mechanical, doing the same thing everyday. This experience is something we got to be watchful for. Neuroscience says that human brain is wired in a way that it gets ‘used to’ things done repeatedly and then it hardly wants to break that pattern. This is because human brain, right from the stone age has conditioned itself for ‘survival’.  At the same time, every one of us is gifted with something extraordinary, way beyond survival. Such an irony! The key question is – inspite of our survival instinct, how do we live an extraordinary life, a life of purpose, fulfillment and freedom?

The key to living an extraordinary life is breaking our existing patterns and doing things beyond the norm.  Here are three steps you can use anytime to defy your pattern and create an extraordinary life…

Step 1: Identify the Symptoms

When you start living a monotonous schedule, you will know it before anyone else. Here are some symptoms you can identify:

  • You are complaining about someone or about something over and over
  • You do not feel excited when you wake up during the morning
  • You check your e-mail several times during the day, even when it is not necessary
  • Tasks you take up take longer than anticipated or just keep getting delayed for no reason

There could be more symptoms, but the key is –  Identify these patterns and identify them early.

Write all these ‘sticky’ patterns on a piece of paper. Once you identify these patterns, do not judge or blame or hide yourself under a ‘valid reason’,  simply go to step 2 below.

Step 2: Create a new space

I am not referring to the physical space; what I am referring to is the mental space – your mental frame in which you operate everyday. You cannot create something new in the old. In order to commit to something new, you need to create new a space and the way create a new space is to be complete with the old stuff.

To do that – make a list of all top priority tasks, put them in your schedule and start getting them done feverishly. The best way to get long pending tasks done is to get them done in short notice, as fast as you can; so that your brain does not get time to ponder over them (remember your sticky pattern!). It can be as simple as making that long pending phone call to your relative or as complex as reviewing your financial accounts. Just get it done!

As soon as your pending tasks list gets to minimum, you will have a new breath of life.  Then reward yourself by taking a weekend off to a nice outdoor, just doing nothing. Do not stay at home. This is the time to go to step 3.

Step 3: Commit to something new

In your weekend break, when you have nothing to do, take some time out and write down things that you always wanted to do but somehow you could not do it.  Don’t worry if the list gets long. Just keep writing.

Now pick-up one item from that list which you are really inspired to take on and write it down as a goal for a confined period of time (3 months, 6 months, one year).  You can also create a visual chart or a sketch to describe your goal and stick it on your bedroom wall. Carefully allocate a time slot to this activity out of your daily schedule. Shuffle your schedule if needed and get started.

This is not over. In most probability, you will face a lot of hurdles and important items from other areas  may overlap with your new activity. Don’t worry if you miss a couple of times, the key is to get back on track and stick to it.

In a few weeks, you will be right on the course to master a new skill, learn a new art or perhaps began a new career. Be open to possibilities that may arise. As you practice this again and again, you will keep discovering your own self and expanding your horizon, paving the way to a life of self mastery. Life will unfold for you in all it’s glory and beauty.

As you practice this, being extraordinary will become a norm!

What’s your experience out of living an extraordinary life?

Advertisements

How to set-up Ruby on Rails server on a Linux cloud (Ubuntu 10.04 LTS)

Setting up Ruby on Rails using passenger on a Linux server is a fascinating experience….provided everything works well :). I had to try several times before getting it right. I would like to share what I learned the hard way; so that, doing the same for you becomes a breeze.

I am assuming that you have some familiarity with Apache web server, Ruby on Rails and basic Linux commands. So let’s get started…

When you sign-up for a cloud server or a VPS, you get the server IP address, username and password. This is all we need! Log-in to your Linux server using the SSH protocol.

I have chosen Ubuntu 10.04 LTS (Lucid Lynx) as the Linux flavor. I prefer Ubuntu due to it’s simplicity compared to other Linux flavors.

Step 0: Update your Linux

Update your Linux source repository:

sudo aptitude update

In order to make sure our packages install correctly we need to set the locale information for Perl correctly:

sudo aptitude install language-pack-en-base

Now to keep the server secure, we will update the server using following command:

sudo aptitude update

Your Linux server is ready for some real action!

Step:1: Install Apache

You will be serving your website over the web and you need a web server. So, here is the command to install Apache web server:

sudo aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert

Now open the main apache config

sudo vim /etc/apache2/apache2.conf

At the bottom of the file add the following line

ServerName demo

In the above line change the text “demo” with your ServerName of your Cloud Server hostname or a FQDN. Remember for the sake of example I am using the Server Name  as “demo”

Once done, save the file and restart Apache gracefully using the following command:

sudo apache2ctl graceful

Now, if you navigate to your cloud server IP address, you will find the default Apache welcome screen “It works”

http://233.49.493.43

Step 2: Install MySql

Use this command to install MySql server:

sudo aptitude install mysql-server

When you are prompted for your root password, enter it and press OK

When you are prompted for your root password, enter it and press OK

After the installation is finished, it begins to run your server. Your MySql server is ready.

Securing MySql

The default MySql server set up is unsafe especially when your server is going to be exposed in public. It’s important to secure your MySql server installation. Let’s secure it by using the following command:

sudo /usr/bin/mysql_secure_installation

When you are asked for your current root password, enter the password you chose earlier and press Enter.

Because you have already chosen a root password, press N and then Enter.

You will be prompted to remove the MySQL anonymous users. For security reasons we want to do this. The text above the question explains this in more detail. Press Y and then Enter.

When you are asked if you would like to disallow remote login for the root user and only allow connections from the server itself, press Y and then Enter to keep the server secure.

MySQL ships with a default database called test. You do not need this and can delete it. Press Y and then Enter to delete the test database and it’s associated users.

This step reloads the user settings (called privilege tables) so that all user changes take effect. Press Y and then Enter to continue.

That’s it your MySql server is now secure and ready for production use.

Step 3: Install Ruby, Ruby Gems and Rails

Note: we will be installing Ruby 1.8.7 in this example. If you want to choose the latest version of ruby simply find out the latest version and replace it in the following command.

sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby

Once the Ruby packages are installed, we need to symlinks from the installs to the locations every program would work:

sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby
sudo ln -s /usr/bin/ri1.8 /usr/bin/ri
sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc
sudo ln -s /usr/bin/irb1.8 /usr/bin/irb

Once done, use the following command to verify if everything is working correctly:

ruby -v

You will probably get something like the following in return:

ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

Now let’s go ahead and install Ruby Gems from source. The reason why we are doing this is to ensure that we get the latest and most stable version of Ruby Gems onto the Cloud Server and the easiest way to do that is by installing from source.

Let’s create a folder called “sources” in our root directory

mkdir ~/sources

Now go inside the “source” directory

cd ~/sources

And download the latest version of Ruby Gems. At the time of writing this article, the latest version was 1.8.11

wget http://production.cf.rubygems.org/rubygems/rubygems-1.8.11.tgz

Once the file is downloaded, unpack  it and go inside the unpacked directory

tar xzvf rubygems-1.8.11.tgz
cd  rubygems-1.8.11

Now we can compile it:

sudo ruby setup.rb

Once the compile and install process is complete (it will take a couple of minutes or less) you will get the following message:

RubyGems installed the following executables:
    /usr/bin/gem1.8

If `gem` was installed by a previous RubyGems installation, you may need
to remove it by hand.

Now lets create another symlink

sudo ln -s /usr/bin/gem1.8 /usr/bin/gem

Once done, check the version of Ruby Gems installed by typing the following command

gem -v
...
1.8.11

We need to update the gems to the latest version

sudo gem update --system

Now the foundation is ready, so let’s go ahead and install Rails:

sudo gem install rails

You can now install any gems specific to your rails application. I will leave that up to you and lets’ move down to the last and the most important part of this installation i.e. Passanger a.k.a mod_rails installation.

Step 4: Mod Rails Installation

Mod Rails Installation can get tricky at times if you do not follow the instructions carefully. Let’s install the passanger Gem first:

sudo gem install passenger

Once completed, we need to install the Apache2 Module for passanger. Without installing this module Apache will never know that it should route the incoming requests to Passanger. So let’s go ahead and install it:

sudo passenger-install-apache2-module

Now, here is the surprise. The system will not allow you to install Passanger module for Apache.  Apache 2 module requires some dependencies before it can install the Passanger module. The good part is, it will tell us which dependencies are required and the command line to install those dependencies. So carefully copy/paste all the commands mentioned in the error screen and start installing the dependencies one by one.

Important note:  This is the area most susceptible to problems. If some dependencies do not get installed using the command mentioned in the error output; instead of using the usual “Aptitude” Linux command use the “Apt-get” command to install those dependencies. I could figure this out after wasting a lot of time!

Once all dependencies are installed, we can try installing the Passanger apache 2 module again:

sudo passenger-install-apache2-module

Everything should go well. At the end of installation, you will get an output similar to the following:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6/ext/apache2/mod_passenger.so
   PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.6
   PassengerRuby /usr/bin/ruby1.8

Copy these lines and paste them at the end of your “apache2.conf” file.

Note: The above output is specific to every installation. So do not copy/paste the above output. Instead copy/paste the output which you got from your installation.

Once done, restart Apache:

/etc/init.d/apache2 restart

Bingo, you just installed a Ruby on Rails Server from scratch. Now start deploying and sharing your app to the world!

Thanks for coming this far….Let me know how your experience was following instructions in this article and if I can improve any aspect of it further.