Saturday, 8 August 2015

How to set up Wireless network on Ubuntu 14.04 LTS to Connect it from Android ?

Hey guys,

How you doing.  Couple of days back I got stucked at some point to connect my android to my laptop in ubuntu.

The problem was - I used to connect to internet using Wirless USB dongal and I neither have wireless routers nor have have any ethernet connection to try out alternatives like USB tethering etc. I was struggling much to set up wifi hostspot in ubuntu. The wifi hotspot used to activate successfully but never it was detected in my Asus android phone.

Here is the simplest solution I found out there.

Install this beautiful software [kde-nm-connection-editor] if you had not installed in your pc.  It will make your connection editing task much simpler than any thing else.

Go to ubuntu software center and search kde-nm-connection-editor  install.

Next, Open the terminal[ctrl+alt+t] and type kde-nm-connection-editor , the connection editor will pop out :

On Wireless tab:

1. Click on Add >> Wireless shared 
2. On wireless tab Give any Identification name on SSID.
3. Choose the mode to Access Point and select the wlan0 [your enlisted wifi card]
4. Click on Okey.

On Wireless Security tab: 
1. Choose WPA and WPA2 Person in security field.
2. Give the password to the specified field.

Click on  Okey and your are done.

Now it's your time to connect the Wirless dongal to laptop.

Now on title bar of your laptop
1. Click on the Network Icon
2. Click on Connect to Hidden Wifi Network
3. On Connection tab: select  the network you have recently setup in your previous step.
4. Click on Connect

After successful connection, you can see the  your recently set up network in connected state  apart from your usb Dongal connection.

Now on mobile turn on the wifi - You will be able to detect your recently set up network.  Connect it using the password you have provided while setting up the connection.

Enjoy Up..!!

Saturday, 13 June 2015

How to Add Java Decompiler Plugin for Eclipse in Linux Environment ?

Decompilation is required some times , if you are interested to view internal class details of compiled java .class files. One of the interesting area is, you would like to view internal details of Thread class or any other classes in java. For that, normally what is done is to go at Java reference API site and see all the methods and interfaces. That's awful. Why not directly view all the methods and attributes in Eclipse editor itself.  Here is the Way !

Required two things : Jad  Decompiler and Eclipse Plugin for Jad Decompiler

Download and install Jad Decompiler -  Jad 1.5.8e for Linux (statically linked) from this location

Extract the tar.gz file the file names jad will be there, remember its full path name.

Now download eclipse jad  plugin jar from this source and copy it to the ./plugins directory of your eclipse.

Restart the eclipse:  Go to Preference >> Java >> You will find the plugin with name jadClipse.

Then set the path to decompiler to the path you have extracted the tar.gz file in previous step:  as for ex-  /your/Dir/jad 

Remember that : jad is the file name, do not forget to include this. You have to give full file name not the directory only. Try to open any .class complied file of java.

That's it,  you are done.  Enjoy !!

Problem : Still after setting all the above tasks properly, not able to view the Java class .
There might the problem with eclipse editor in associating Jad Plugin as the default in associated editor section. Follow Below steps in eclipse:
Windows >> Preferences >> General >> Editors >> File Associations 

Remove all Associated Editors and then add   jadclipse Class File viewer and make it default.
Restart the eclipse and Try again to re- open the file.