Tuesday, September 13, 2011

Downgrading my Firefox5 to Firefox3.6 in Natty Narwhal 11.04


The same with any other day, Mr. Google has once again help me in finding solution to my problem. This time downgrading my Firefox browser. Below are the steps that I followed on one of the blogs that have help me.
(Credit goes to "http://blog.troyastle.com/2011/06/downgrade-to-firefox-36-on-ubuntu-natty.html)
Important Reminder: Make sure you are really using Ubuntu 11.04(Natty Narwhal ... :-) ). Also if you are having trouble installing add-ons like Firebug, Selenium IDE, etc. on your newly downgraded Firefox try deleting the language pack that keeps on popping-up everytime you open Firefox along with the previous add-ons and extensions installed on Firefox5
Step 1: Edit your software sources to add Maverick
  1. Open your sources.list file:
    sudo gedit /etc/apt/sources.list
  2. Add the folowing three lines:
    # Maverick, used for firefox and firefox-branding  deb http://ftp.iinet.net.au/pub/ubuntu/ maverick main  deb http://ftp.iinet.net.au/pub/ubuntu/ maverick-updates main
  3. Save and close the file
Step 2: Pin the packages firefox and firefox-branding
  1. Create the pin file for firefox:
    sudo gedit /etc/apt/preferences.d/firefox
  2. Add the following:
    Package: firefox Pin: release n=natty Pin-Priority: -10  Package: firefox Pin: release n=maverick Pin-Priority: 900
  3. Save and close the file.
  4. Create the pin file for firefox-branding:
    sudo gedit /etc/apt/preferences.d/firefox-branding
  5. Add the following:
    Package: firefox-branding Pin: release n=natty Pin-Priority: -10  Package: firefox-branding Pin: release n=maverick Pin-Priority: 900
  6. Save and close the file.
Step 3: Check your apt policy to make sure it worked
  1. Update your apt cache:
    sudo apt-get update
  2. Show the apt policy for firefox:
    sudo apt-cache policy firefox

    Sample output:
    sudo apt-cache policy firefox firefox:   Installed: 5.0+build1+nobinonly-0ubuntu0.11.04.2   Candidate: 3.6.18+build2+nobinonly-0ubuntu0.10.10.1   Package pin: 3.6.18+build2+nobinonly-0ubuntu0.10.10.1   Version table:  *** 5.0+build1+nobinonly-0ubuntu0.11.04.2 900         500 http://ftp.iinet.net.au/pub/ubuntu/ natty-updates/main i386 Packages         500 http://ftp.iinet.net.au/pub/ubuntu/ natty-security/main i386 Packages         100 /var/lib/dpkg/status      4.0+nobinonly-0ubuntu3 900         500 http://ftp.iinet.net.au/pub/ubuntu/ natty/main i386 Packages      3.6.18+build2+nobinonly-0ubuntu0.10.10.1 900         500 http://ftp.iinet.net.au/pub/ubuntu/ maverick-updates/main i386 Packages      3.6.10+build1+nobinonly-0ubuntu3 900         500 http://ftp.iinet.net.au/pub/ubuntu/ maverick/main i386 Packages

    The line you are most interested in is "Candidate".
    This indicates the package that apt ranks as the installation candidate.
  3. Repeat this check for firefox-branding
    sudo apt-cache policy firefox-branding
Step 4: Install firefox 3.6
  1. Remove firefox 5.x:
    sudo apt-get remove firefox
  2. Install firefox 3.6:
    sudo apt-get install firefox
And you're done. Enjoy your outdated version of Firefox!

Monday, September 12, 2011

A day with ruby-oci8 and natty

After more than half a day of searching through the net with the help of Mr. Google, at long last I have successfull installed ruby-oci8 on Natty Narwhal. If anyone's interested, you can also follow the steps below (or you can visit "http://www.inlinecomment.com/")

1.) For this installing I'am using Sql Developer
2.) Download the Instant Client Basic and Instant Client SDK (http://www.oracle.com)
3. )
$ sudo mkdir -p /opt/oracle
$cd /opt/oracle
$sudo unzip /path to /downloads/instantclient-basic*.zip
$sudo unzip /path to /downloads/instantclient-sdk*.zip
$cd instantclient_11_2
$sudo ln -s libclntsh.so.11.1 libclntsh.so
$LD_LIBRARY_PATH=/opt/oracle/instantclient_11_2
$export LD_LIBRARY_PATH
4.) Go to your home directory and do
sudo env LD_LIBRARY_PATH =/opt/oracle/instantclient_11_2 /usr/bin/gem install ruby-oci8
5.) Wait until your gem is successfully installed
6.) To verify gem list ruby-oci8