Thursday, February 23, 2012

ubuntu ssl vpn

I don't know how many people use a ssl vpn to connect to work over ubuntu.
All i can say is that it is not fun.
The latest version of ubuntu has removed java from its repository, and this has caused a lot of problems.

After working at it for a few hours i managed to fix it, i hope my experience will help others.

First step, check how may versions of java you have on your machine:
update-java-alternatives -l

If you have more that one row, you are not in a good state.
(if for some reason you need more than one version you can use the following command to choose the default:
sudo update-alternatives --config java)

I have three rows. So the first thing i did was to remove as much as possible.
Try some of the following statements to see if it removes your versions:
sudo apt-get remove openjdk-6-jre default-jre default-jre-headless
sudo apt-get remove sun-java6-jre sun-java6-plugin sun-java6-fonts

if this does not work try using the synaptic package manager to remove all java components.
Once this is finished, you want to reinstall one version only:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

if you are using maven or other development tools don't forget:
sudo apt-get install sun-java6-jdk

if you need to remove the openjdk:
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*

I have just reinstalled my machine to 11.10 and all the comments above did not work, what needs to be done is to download the script from the server site and run it from the command line, and then all is fine.

if you have a problem installing the java on 12.04 see:
https://github.com/flexiondotorg/oab-java6

also see
https://help.ubuntu.com/community/Java



So it still does not work.
How to debug:

from the command line write:
snx


based on the errors that you find search google for the solution.

Common errors:
snx: error while loading shared libraries: libpam.so.0: cannot open shared object file: No such file or directory
solution: sudo apt-get install libpam0g:i386

For more information see
 
http://kenfallon.com/check-point-ssl-network-extender/


Chaim Turkel