Bigdata

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
JAVA_HOME="YOUR_PATH"

6.Reload the file

source /etc/environment
Standard
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
 *-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=6.30.223.141 (r415941) latency=0 multicast=yes wireless=IEEE 802.11abg
       resources: irq:18 memory:f7900000-f7907fff
  *-network
       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=192.168.1.4 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:

$wpconfig
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.

Solution:

Identify your Brodcom chipset family:

$ lspci -vvnn | grep 14e4
output:
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
Standard
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.

 

IMG-20140430-WA0005

 

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.

DSC_0168

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

Standard
Personal Encounters

Bitcoins – New Trend in Virtual Currency Market


Image

 

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.

Standard
Bigdata

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.”

 

Standard
Bigdata

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 http://www.apache.org/dyn/closer.cgi/hadoop/core/

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.

conf/core-site.xml
<?xml version=”1.0″?>
<?xml-stylesheet type=”text/xsl” href=”configuration.xsl”?>
<!– Put site-specific property overrides in this file. –>
<configuration>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/hadoop-install/hadoop-datastore/</value>
<description>A base for other temporary directories.</description>
</property>
<property>
<name>fs.default.name</name>
<value>hdfs://local:54310</value>
</property>
</configuration>

conf/mapred-site.xml
<?xml version=”1.0″?>
<?xml-stylesheet type=”text/xsl” href=”configuration.xsl”?>
<!– Put site-specific property overrides in this file. –>
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>local:54311</value>
</property>
<property>
<name>mapred.tasktracker.map.tasks.maximum</name>
<value>100</value>
</property>
</configuration>

conf/hdfs-site.xml

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

conf/masters
localhost

conf/slaves
localhost

conf/hadoop-env.sh
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:
hadoop@localhost:~/hadoop/hadoop-0.21.0>bin/start-dfs.sh

Start the mapred:
hadoop@localhost:~/hadoop/hadoop-0.21.0>bin/start-mapred.sh

Check for running processes.
hadoop@localhost:~/hadoop/hadoop-0.21.0>jps
SecondaryNameNode
NameNode
DataNode
TaskTracker
JobTracker

Standard
Bigdata

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-1.6.0.0_b24.1.11.5-16.1.x86_64

Verify that the default Java package is uninstalled.

which java

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

http://www.oracle.com/technetwork/java/javase/downloads/index.html

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 jdk.sh file under /etc/profile. and write output of below echo command.

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

Append output of echo command.

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

trigger jdk.sh

# source /etc/profile.d/jdk.sh

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

 

Standard