How to install Juniper Network Connect (VPN) on Ubuntu

You may be facing the same problem as i faced in connecting VPN through junipers network connect from Ubuntu platform.

There are two reasons behind this :

  • Java run time is not installed on your computer or if installed then you must missing the Java plugin for Firefox.
  • An error of password when it is installing the network Connect package in your system, the description is at the time of installation it asks for su/root password and when you type your  password press enter , it says password not correct try again or some msg like this.

lets start step by step :

  • The answer to first problem is very easy and common please make sure that you have installed java and java plugin for browser (Firefox). if you need any help in installing java or plugin then you can read this: Install java run time . In short run this command in terminal : sudo apt-get install sun-java6-jre sun-java6-plugin , after doing this restart your brwser now are ready to go. Wait one more thing may be you stuck on the agreement step of installation of Java, the problem is you are not able to accept it i mean you are  not able to press Ok , the clever solution is press tab at this point to highlight Ok then press Enter button.
  • Now the second problem is really more interesting , the guys who have developed this Juniper package assumed that there are only two types of super user su and root , these are common super user types for other linux providers but our Ubuntu uses sudo as super user then? Thats why it was not accepting your password at the time of installation because there is no su or root user available on your Ubuntu machine for that password. Now what we will do is create a user account on machine with the name root:

sudo passwd root
[sudo] password for irfan:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully

Now your machine is ready to install Juniper Network Connect package and you can connect to VPN .

Now you can provide this password you just set,  when installing.

Remember this is one time process.

Thanks

-Irfan

Search Bugs In Bugzilla Faster !!!

Hi, There is a way in bugzilla to search bugs faster without remembering Bug Id etc, It is just few steps away to search faster than before:

  • Search for the text “Install the Quick Search plug in” in bottom of your organizations Bugzilla home page.
  • Click on this and it will add an additional search option in your Firefox search plug in on top right of your browser.

Here you can just type a topic and it will take you the bug list related to that topic. Enjoy ;)

Enabling Browser Cache for your website

Some of us wants to enable cache for pages to improve performane so that if any user comes again on the site then static part of web should not load from server, it will really improves the performane of your site.

I am writing here some of the ways to enable cache and dont send request to server for static data:

  • Header("Cache-Control: max-age=3600 ") this way your cache will expire after specified time in max-age parameter.This is HTTP/1.1 standard.
  • Header("Expires: Tue, 15 May 2007 07:19:00 GMT") Same as above but this is HTTP/1.0 standard.
  • Header("Last-modified : Mon, 01 Sep 1997 01:03:33 GMT") when you use caching be sure that when you update your images or css they should be updated to user side also, because users browser can display old page because of cache to prevent this use this tag to tell browser that page is updated and use new and fetch from server instead of using cache.
  • The other method for doing this is fingerprinting technique , in this what we can do is in the url of css file just add a number to identify when it is updated when this no changes url becomes new for browser and then it downloads new css file from server.see the example below: http://www.yoursite.com/css/style.css?v=676378

i think last one is a good and best way to use , when i will get any new will update this post.

Clearing Browser Cache

You may have trouble when you want a particular page to load every time from server and it is not doing so because of browser cache of a user browser.

Lets take an example you have used captcha on a form and user opens that page to fill form but he start browsing other pages of your site and in last he comes back to fill the form at this time captcha is having old images because this image is been picked by cache instead of server, when he will try to submit form then he will het error that entered captcha text is incorrect, to prevent this you want to load these images every time from server.To do this you can use any of given below code:

<body onload="window.location.reload();">

or this

Header("Cache-control: private, no-cache");
Header("Expires: Mon, 26 Jun 1997 05:00:00 GMT");
Header("Pragma: no-cache");

Reverse of MD5 or SHA1 to its original or opposite is possible now

Hi, here is the link to the website that has the ability to convert any MD5 or SHA1 to its original form , you can also find MD5 or SHA1 of any string.

Link: http://md5.rednoize.com/

Nothing Is Impossible Enjoy!!!

Page 1 of 212»