Thursday, December 13, 2012

Ruby gem no such file to load — mkmf

Setup GEM on your machine:

When you try to install packages with gem, most of the time it does not work due to the wrong setup. Always do it completely:

sajan@test10:~$ sudo gem install mysql
Building native extensions.  This could take a while...
ERROR:  Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
extconf.rb:5:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:5


Gem files will remain installed in /var/lib/gems/1.8/gems/mysql-2.9.0 for inspection.
Results logged to /var/lib/gems/1.8/gems/mysql-2.9.0/ext/mysql_api/gem_make.out

What are the packages needed: 

1. sudo apt-get install ruby
2. sudo apt-get install rubygems<LateVersion>
3. sudo apt-get install ruby<version>-dev


Things should work now. Enjoy!

Friday, December 7, 2012

DRAC/ILOM SSH/TELNET Command line helps

DRAC SSH/TELNET Command line helps

DRAC (Dell Remote Access Console) is a cool utility for remote server management. Unfortunately Crazy Java may not work properly most of the time, and luckily we have ssh/telnet access to the DRAC and we can do most of the stuffs there with commands.

Note: DRAC ssh/telnet works like serial console server. You may need serial console redirection enabled sometimes.

HOW TO USE:

I am explaining couple of important Utilities with SSH/TELNET

1. ssh/telnet to the DRAC/ILOM IP (Being a Linux guy you should know this :) )
2. You will see a prompt like below:


$ ssh 192.168.75.10 -l root
root@192.168.1.19's password:
/admin1->

3. How to reboot the machine:

/admin1-> cd /admin1/system1
/admin1/system1
/admin1/system1-> reset
/admin1/system1 reset at Sat Dec  8 07:23:51 2012

/admin1/system1-> 

3. How to Connect to Console:

/admin1/system1-> cd /admin1
/admin1
/admin1-> console com2

4. How to PXEBOOT of get other Boot Options:
You will see options displayed like below, Choose the one u need:

Press the spacebar to pause...

KEY MAPPING FOR CONSOLE REDIRECTION:

Use the <ESC><1> key sequence for <F1>
Use the <ESC><2> key sequence for <F2>
Use the <ESC><0> key sequence for <F10>
Use the <ESC><!> key sequence for <F11>
Use the <ESC><@> key sequence for <F12>

Use the <ESC><Ctrl><M> key sequence for <Ctrl><M>
Use the <ESC><Ctrl><H> key sequence for <Ctrl><H>
Use the <ESC><Ctrl><I> key sequence for <Ctrl><I>
Use the <ESC><Ctrl><J> key sequence for <Ctrl><J>

Use the <ESC><X><X> key sequence for <Alt><x>, where x is any letter
key, and X is the upper case of that key

Use the <ESC><R><ESC><r><ESC><R> key sequence for <Ctrl><Alt><Del>

 For More Options, type help on the prompt ;)