Kagee's random rantings

Using BankID (Norwegian Type) in Ubuntu 10.04

Update: As of Ubuntu 10.10 this should not be nessesary, as OpenJDK in Ubuntu >= 10.10 should work with BankID.

In Ubuntu 10.04 (and probably onwards) OpenJDK Java and the Icedtea java plugin are the standard Java toolkit. BankID works with OpenJDK (just try installing Opera 10.10. Opera pre 10.5 use OpenJDK directly, without Icedtea), Icedtea is the troublemaker.

Sun Java has been pushed all the way into the Canonocal partner repository, that is not enabled as default. The following lines are a quick way to enable it and install java, even if the same is possible with lengthy GUI "click-here-then-there" tutorials.

[code language="bash" wraplines="false" autolinks="false" toolbar="false" gutter="false"]sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-plugin[/code]

Line one adds the Canonical Partner repository to you software sources. There should be no complications if it is already enabled. Line two updates the list of avalible packages, so that line three can find and install the package sun-java6-plugin and it's dependencies.

Sun Java should be the standard after this, if not, try to force it to be default with this line. And remember to restart you browser (or possibly restart your system)

[code language="bash" wraplines="false" gutter="false" toolbar="false"]sudo update-java-alternatives -s java-6-sun[/code]