Monday, November 2, 2015

How to install upgrade Firefox to the latest version 41 in Linux



As I searched, there is no exact mechanism to upgrade Firefox to the latest from existing version.

There are two options to do,


  1. ·         Remove existing old version and then install new version
  2.            Keep existing old version (if needed) and keep and run new version separately. This option is very needful when you have software plugins that are only supports to older version of Firefox. Therefore we need to keep both versions since we have no options.

First of all we need to download Firefox latest version that compatible for Linux,

firefox-41.0.2.tar.bz2

This can be done by directly downloading from Firefox site,


Or using Linux commands,

Cd <your_Location>
wget http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/41.0/linux-x86_64/en-US/firefox-41.0.2.tar.bz2

Then extract downloaded tar file using below tar command,

# tar xvjf firefox-41.0.2.tar.bz2

Now Firefox is ready to use. Go to the created Firefox folder and run Firefox script using terminal,

# cd firefox
# bash ./firefox

No you can use both versions of Firefox. If you want to make new version as default and remove existing one,
Remove existing version,

# yum remove firefox

Now create a link to /usr/bin from newly extracted Firefox,

# ln –s /<your_Location>/firefox/firefox /usr/bin/firefox

Now you have successfully installed Firefox on your Linux machine. 

*** You can download and extract your Firefox to any <your_Location>. But recommended place should be /usr/local since we install software into local.

Thursday, October 15, 2015

Enable token based (username) security in wso2 ESB soap web service and access from SoapUI tool



SoapUI is an awesome tool to test and run web services.

Access token is the very basic level of securing web services.

With access token what we do is pass username and password through the service headers.

First we need a plain web service that has no security implementations. I take the basic echo service which comes with wso2 esb by default.

 


You can see by default echo service is not secured.

Go to the service and click on security icon,

 


Add token security as mentioned below,
 
 

Then give a user group. In here, you can use your own created user groups,

Then click finish.

Now you can see the service endpoint URL has changed to https mode,

 


That’s all. Now you have security enabled web service and let see how to access it from SoapUI,

Create new soap project using service wsdl url,
 



Click on an operation in the service,

 

If you try to access the service plain, you will get below response,
 
 

To overcome this, you need to enter credentials in request properties as mentioned below,
 
 
 
 

Now you can access the service without any problem,