Installing Sun Java in Ubuntu 14.04

Ubuntu comes with Open java and jdk but most of the time application developments demands for sun java.

Steps to install Sun Java in Ubuntu 14.04

1. Initial commands to execute

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

2. For Oracle JDK 6

sudo apt-get install oracle-java6-installer

3. For Oracle JDK 7

sudo apt-get install oracle-java7-installer

4. For Oracle JDK 8

sudo apt-get install oracle-java8-installer

5. Setting JAVA_HOME
Copy the path where preferred JDK is installed and edit /etc/environment file

sudo nano /etc/environment

6.Reload the file

source /etc/environment
Personal Encounters

Enable Wifi in Dell Vostro 14 3000 Series with Ubuntu 14.04 LTS

Ubuntu 14.04LTS is the latest LTS release available. I had Ubuntu 12.04LTS installed in my Dell Vostro. There is no option available for immediate upgrade to ubuntu 14.04LTS from 12.04LTS. Hence I decided to format and install fresh.

There has always been considerable improvement in every new release of Ubuntu, but network connectivity has always been an obstacle while using Ubuntu releases.

Below are the steps to enable the WIFI drivers.

1. Check if valid WIFI adapter is available:

$ sudo lshw -C network
       description: Wireless interface
       product: BCM43142 802.11b/g/n
       vendor: Broadcom Corporation
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: wlan0
       version: 01
       serial: 9c:d2:1e:e5:47:3f
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=wl0 driverversion= (r415941) latency=0 multicast=yes wireless=IEEE 802.11abg
       resources: irq:18 memory:f7900000-f7907fff
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:07:00.0
       logical name: eth0
       version: 0c
       serial: b8:2a:72:ac:31:fa
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-2_0.0.1 02/06/13 ip= latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:58 ioport:e000(size=256) memory:f7800000-f7800fff memory:f2100000-f2103fff

2. Check if WIFI is enabled:

wlan0     IEEE 802.11abg  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
vboxnet0  no wireless extensions.

lo        no wireless extensions.

eth0      no wireless extensions.


Identify your Brodcom chipset family:

$ lspci -vvnn | grep 14e4
06:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)

4. Install STA Drivers

sudo apt-get update
sudo apt-get install bcmwl-kernel-source

Now reboot the system to see your WIFI enabled.

For it to be effective without reboot run the below commands:

sudo modprobe -r b43 ssb wl
sudo modprobe wl
Workshops and Conferences

Computer Workshop by Aviratha Prathishtaana

“Aviratha Pratishtana” successfully conducted Health camp and Computer Workshop for nearly 100 rural students from across 10 villages in the midst of the program “Arivu Sambrama”(Translation “Knowledge Celebration”), an annual Summer Camp event held by Dr.Besagarahalli Ramanna Trust(Reg.,) in association with R.K Education Society, K Honnelgere, Maddur(Tq), Mandya(Dst). This summer camp is primarily designed for rural students to educate them in the areas of theater education, English learning, Computer education and General science topics in order to empower them to be competent to face the real world.




Entire responsibility of organizing health camp and computer workshop was handled by Aviratha volunteers. Yes!! The team worked out on the schedule and syllabus brilliantly, considering the learning curve of the rural students. Entire program was intended to make students familiar and comfortable enough to work in computer and to help them to utilize tools such as MS Office Word, MS Office Power Point, MS Office, Windows Paint. Workshop was held for 10 days and for each day a team of 5 volunteers traveled to the village Honnalagere(near Maddur Taluk) to conduct the workshop.

We were team of 7 volunteers for teaching and giving hands on training on MS Office Word. We started our journey early morning from Bangalore towards Mysore road National Highway. Its always bliss to go on a long drive with nice bunch of people around. We spoke about lot of things and enjoyed the music all the way and had delicious Mysore road “tatte iddly”. We reached the school at 10.15 and session started by 10.30(well on time 😉 )

As we reached the school we were as excited as students to deliver our session on MS Office Word. Naughtiness of students definitely was a challenge for us. But the kind of enthusiasm with which they were learning was remarkable. We started with an eyes breaker session followed by a crisp theory session on MS office word. Theory session was made more interactive by involving students with questions and simple demo tasks. Students were keen to answer the questions so that they can grab the chocolates for there right answers. Well, that was our trick 😉 Theory session was followed by a practical lab session in which students were asked to prepare leave letter with proper formatting by using the tools available in MS Office Word. It was a proud moment for we volunteers to witness the eagerness of students in learning and working with tool very quickly with that short span of time. With that we did our part and returned back with great zeal.


“Be the Change You Wish to See..!!”

Personal Encounters

Bitcoins – New Trend in Virtual Currency Market



Bitcoin is a virtual and digital version of cash that is emerging as a global payment platform and that can be used through smart phones, tablets, and other devices. Bitcoin, which is a product of open source intelligence using peer-to-peer technology to operate with no central authority or banks, has the potential to change how millions of people around the world conduct their business.

What makes Bitcoin unique is that there’s a record as to who possesses it, and there’s a network that records transactions. Additionally, there is no way to increase the number of Bitcoins in existence, which is not the case in other currencies, like the U.S. currency, which the treasury can just print more if needed.

The value of a Bitcoin does fluctuate with the markets. Similar to stocks, to invest in Bitcoins all you want to do the same thing you do is to buy low and sell high. But remember, all currencies fluctuate in value on a daily basis, so that’s not unique to Bitcoin.

Well, the future of Bitcoin!! Bitcoin’s future represents a soft trend—it is not a sure thing. But the idea of a digital virtual currency that is the closest thing to cash becoming part of our everyday reality in the near future represents a Hard Trend—it will happen.

So the next time you’re ready to make a purchase online, don’t be surprised if you see a Bitcoin option for payment. Digital currency as a long-term Hard Trend is a game changer and Bitcoin is the trend is now in motion.


Meaningful Stories with Data

“If history were taught in the form of stories, it would never be forgotten.” The same applies to data. A simple analogy for why stories to be told with data.

In her “Persuasion and the Power of Story” video, Stanford University Professor of Marketing Jennifer L. Aaker explains that stories are meaningful when they are memorable, impactful and personal. Through the use of interesting visuals and examples, she details the way people respond to messaging when it’s delivered either with statistics or through story. Although she says engagement is quite different from messaging, she does not suggest one over the other. Instead, Aaker surmises that the future of storytelling incorporates both, stating, “When data and stories are used together, they resonate with audiences on both an intellectual and emotional level.”



Install hadoop on OpenSuse 12.1

Firstly, Pseudo-Distributed mode is effectively a 1 node Hadoop Cluster setup. This is really the best way to get started with Hadoop as it makes it really easy to modify the config to be fully distributed once you’ve got a handle on the basics.

Step 1: Update OpenSuse packages from Software manager.

Step 2:Install Sun JDK(click here to refer the previous post to install Sun JDK in OpenSuse 12.1).

Create a user “hadoop” on your suse machine and login with the user hadoop to carry out below activities.

Step 3:Setup Passwordless SSH- Activate  sshd  and set bootable from root bash.

>sudo bash
#rcsshd  start
#chkconfig  sshd  on

Now create ssh key for connet ssh without password.
>ssh-keygen  -N ”  -d  -q  -f  ~/.ssh/id_dsa
>ssh-add   ~/.ssh/id_dsa
Identity added: /root/.ssh/id_dsa (/root/.ssh/id_dsa)

Test connect to ssh without password — with Key
>ssh  localhost
The authenticity of host ‘localhost (: :1)’ can’t be established.
RSA key fingerprint is 05:22:61:78:05:04:7e:d1:81:67:f2:d5:8a:42:bb:9f.
Are you sure you want to continue connecting (yes/no)? Please input   yes

Step 4:Hadoop Installation:
Download hadoop-0.21.0.tar.gz file from

Create a directory /home/hadoop/hadoop-install
/home/hadoop> mkdir hadoop-install

Extract the hadoop-0.21.0 tar file to this new directory.
/home/hadoop>sudo tar -zxvf /home/hadoop/Downlods/hadoop-0.21.0.tar.gz

Edit the following files in /home/hadoop/hadoop-install/hadoop-0.21.0/conf directory.

<?xml version=”1.0″?>
<?xml-stylesheet type=”text/xsl” href=”configuration.xsl”?>
<!– Put site-specific property overrides in this file. –>
<description>A base for other temporary directories.</description>

<?xml version=”1.0″?>
<?xml-stylesheet type=”text/xsl” href=”configuration.xsl”?>
<!– Put site-specific property overrides in this file. –>


<?xml version=”1.0″?>
<?xml-stylesheet type=”text/xsl” href=”configuration.xsl”?>
<!– Put site-specific property overrides in this file. –>



Uncomment the line where you provide the details about JAVA_HOME. It should be pointing to sun-jdk. That is as shown below.
export JAVA_HOME=/usr/java/default

Setting the environmental variables for JDK and HADOOP
Open the file ~/.bashrc file and paste the below two command at the end of the file.

>vi ~/.bashrc

export JAVA_HOME=/usr/java/default
export HADOOP_COMMON_HOME=/home/hadoop/hadoop-install/hadoop-0.21.0

To get the immediate effect of .bashrc file, following command must be run.
$source ~/.bashrc

Starting hadoop processes

Format the namenode using the following command
bin/hdfs namenode -format

Start the dfs:

Start the mapred:

Check for running processes.


Installing Sun JDK in OpenSuse 12.1

Most of the applications require sun JDK as prerequisite. OpenSuse above 12.1 versions does not includes sun java package in the repository by default due to license issues.

Follow the below steps to install Sun JDK in OpenSuse 12.1.

Check the current version from a terminal window.

>java -version

By default openJDK will be installed.Filter installed version of OpenJDK to uninstall it.

# rpm -qa | grep jdk

Remove it from the system. Replace your system specific OpenJDK version that you got from above command.

# rpm -e java-1_6_0-openjdk-

Verify that the default Java package is uninstalled.

which java

Download latest JDK rpm package from Oracle site(jdk-7u25-linux-x64.rpm)

change directory to Downloads directory to install JDK.

localhost:/home/hadoop/Downloads # rpm -ivh  jdk-7u25-linux-x64.rpm

All essential java commands seem works fine but there is something we have to commit, finally: Setting JAVA_HOME directory in PATH.

Suse stores all its profile information /etc/profile.d directory, grant access under the /etc/profile.d with root.

localhost:/etc/profile.d # su

Create file under /etc/profile. and write output of below echo command.

# echo 'export JAVA_HOME=/usr/java/jdk1.7.0_25'>/etc/profile.d/

Append output of echo command.

# echo 'export PATH=$JAVA_HOME/bin:$PATH'>>/etc/profile.d/


# source /etc/profile.d/

Finally, You have to logout and login to see the effect with your own user.



‘Big data’ and ‘Tweet’ enters Oxford Dictionary..!!

The Oxford English Dictionary becomes part of the social media technology revolution.


The Oxford English Dictionary has a rule that “a new word needs to be current for ten years before consideration for inclusion”.

Chief Editor John Simpson, who made the announcement in a blog spot that, OED breaks its rule to match the tech savy race and adds the words  ‘Big data’ and ‘Tweet’ to the dictionary.

From quarterly update of the Oxford English Dictionary:

The word “tweet,” appearing both as a noun and a verb, was added to the dictionary.


The word ‘big data’ is also added to the dictionary.


The OED got on board with other tech lingo. The words “crowdsourcing,” “e-reader,” “mouseover,” “stream” and “redirect” “Flash mob,” 3D printer” and “live-blogging” also made their entry in the century old dictionary.

Workshops and Conferences

A Sip of Coffee Script

CoffeeScript is essentially just a syntactic rewrite of JavaScript. The core language itself stays the same, with small semantic enhancements. The syntax is modified, modeled after Python and Ruby.

CoffeeScript compiles down to raw JS and hence outputs clean JavaScript that not only follows best practices but also eminently readable.This means that you don’t have to worry about compatibility down the line.

Under the web development umbrella, there is already a fair share of this ideology. HAML is a new way of writing HTML while SASS does the same for CSS. All of them clean up the structure and syntax of their languages making them more easier to work with and thus boosting our productivity.

Pros and Cons


  • Python style whitespacing
  • Ruby styled lightweight syntax
  • Concise function declarations
  • JSLint approved
  • Class based inheritance

There are, of course, numerous other points including semantic and syntactic enhancements.


  • Slight learning curve involved
  • Deployment, depending on your route, may be a chore
  • You’ll need a basic knowledge of JS for debugging purposes. You can’t directly start here, naturally.

When somebody hears about CoffeeScript the first question that comes to mind is “/should I learn CoffeeScript” and the developer of CoffeeScript answers that question in this way

Jeremy Ashkenas

Yes. CoffeeScript is not an entirely new and strange language. It exists to allow “reasonably solid” JavaScript developers to write the same code they were going to write in the first place, in a more readable and fluent way. The basic idea is to write what you mean, instead of writing within the limits of historical accident. For example, if I want to loop over every item in a list, in CoffeeScript, I can write what I mean:

for item in list
  process item

Whereas in JavaScript, I partially obscure my intention, by writing:

for (var i = 0, l = list.length; i < l; i++) {
  var item = list[i];
Workshops and Conferences

Barcamp Bangalore 2012

Barcamp Bangalore – “where Ideas meet ” the caption says it all.This post is specially to make my frenz envy me cos none of them turned up whoever had agreed to join me… 😉 😛  I attended the Barcamp Bangalore for the first time on 25 August @ SAP Labs. I made to the venue by 9.a.m was feeling so low as I dint know anyone there but after that from the moment I filled the form, till evening 6.15 I had great time learning new techie stuff and making wonderful friends and yea.. got loptop bag too as goodie.. 🙂 🙂

Barcamp is one such event which offers a platform for wide rage of techies to share there experiences regarding any new technology and innovations.One thing that sets BCB apart from other tech events is that the stage is set free for anybody to give there talks but the entire schedule is made on the day of event in First Come First Serve basis so only the early comers get chance to present… 🙂

I was so flattered by the organizers.They kept things going so  well. BCB 2012 introduced two great ideas this time.

#1. Techclash- was a 1 hour slot reserved in BCB12 for a series of short technology demos to bring the smart tech solutions to the limelight.

#2. Electronic Scheduler- An algorithm implemented by one of the BCB 2011 attendee to schedule the sessions. SAP campus helped them so well to display the schedule all around with so many display screens(LCD Projectors, LCD TV screens, even Laptops).

There were 6 tracks running parallel and each sessions were so informative.It was hard to choose which one to attend and I attended following sessions:

  1. A Coffee Script
  2. Google API’s and Deployment Google App Engine
  3. NOSQL – Loosing relationship to gain speed
  4. Techlash
  5. Jactor – Actor based Programming
  6. Jekyll
  7. Bring Clouds Together
  8. Openstack cloud software

I will share sessions details in coming posts.