November 22, 2011

How to Install Swedish BankID on Ubuntu 11.10 64-bits

First download the Swedish BankID program from

Unzip the file.

Install BankID

The last part is only for 64-bit OS and that is to simulate your 32-bit Firefox pluging to run on your 64-bit OS. To do that you need the ia32-libs and nspluginwrapper packages. On a clean installed computer they are not installed.

To install them

Then install the BankID plugin in Firefox.

Now restart Firefox and test your plugin via

To read more in depth of the installation, see


Beta said...

I want to install Swedish BankID on my Ubuntu, thanks already to guide how to install.

donaldc said...

Magnus, Would you know where I can find an API for automatically authenticating with the BankID application? Thanks, Donald

Andreas said...

Välkommen tillbaka till bloggvärlden!

Take0n said...

Hej och tack för instruktionerna. Jag har dock ett problem. Dels kan jag inte ladda ner programmet då jag får upp ett felmeddelande på Nexus hemsida om att 64bitars linux inte stöds och dels kan jag inte installera det när jag laddar ner programmet från en 32bitars maskin och sedan för över det till min dator. Några förslag?

Magnus K Karlsson said...

Hi TakeOn,
As you already have experienced there some checking javascript on the BankID page. The simplest solution would seem to download the binaries from the designated computer. Otherwise read the javascript and see forwarding url.

Anonymous said...

Tack så mycket för instruktionen!

Magnus K Karlsson said...

Got a question from Marcus Zingmark, from Gävle SE, if there was a similiar solution to Google Chrome web browser, but I don't think soo.

I like chrome, but in this case, I would stick with Firefox.

Fred Donaldson said...

Thanks a mill, Magnus. Saved my ass running Kubuntu 12.10 64 bit, not being able to access my beer-money at Skandiabanken...

Fred Donaldson

Anonymous said...

Thanks for this!

In case you can't import your token after backing up /home and trying to restore it, copy the .personal/store folder from your old /home to your new /home.

Anonymous said...

Download link for 32-bits BankID in case you don't want to take a peek in the source:

Regards, Tobias

Anonymous said...

oh, and by the way, you can't test the BankID on this site:

They are detecting x64 Linux and refuses to let you test your ID... Anyway, it worked for med logging into Statoil on my x64 Kubuntu.

Regards, Tobias

Fred Finster WB7ODY said...

FireFox vesion 21 fix to install script for Nexus Personal BankID

That swedish ubuntu wiki link helped me and a swede install NexusPersonal BankID onto 32 bit Puppy Linux Lucid 5.2.8 and 32 bit Slacko 5.5 with FireFox vesion 21 running.
The script should be modified with the following symbolic link command to work with FireFox 21. The location of the addon plugins directory was changed between FireFox 3.6 and later versions from /usr/lib/firefox-addons/plugins to /usr/lib/mozilla/plugins

You may just create a link instead of copying the file. You won't have problems with updates then:

ln -s /usr/local/lib/personal/ /usr/lib/mozilla/plugins

Here is the modification to the install script file

#Install plugin for FF21
ln -s $INSTALL_DIR/personal/ /usr/lib/mozilla/plugins
if [ $? -ne 0 ]; then
echo "WARNING: Failed installing plugin for Firefox 21. Manually add symlink to in your Firefox 21 /usr/lib/mozillla/plugins directory if this browser is to be used."
echo "ln -s /usr/local/lib/personal/ /usr/lib/mozilla/plugins"
#Install plugin for FF3
ln -s $INSTALL_DIR/personal/ /usr/lib/firefox-addons/plugins
if [ $? -ne 0 ]; then
echo "WARNING: Failed installing plugin for
Firefox 3. Manually add symlink to in your Firefox 3 plugin directory if this browser is to be used."

With puppylinux or slacko puppy booting from a CD would provide the ideal banking security system if you use Windows. No virus software can be written to a CD. A fresh boot from a CD will load the OS into RAM

Anonymous said...

I read that swedish bankid could be installed in my 64-bit Linux Ubuntu
and that the install should be
Install BankID

1 cd BISP-
2 sudo ./ -i

The last part is only for 64-bit OS and that is to simulate your 32-bit Firefox pluging to run on your 64-bit OS. To do that you need the ia32-libs and nspluginwrapper packages.

I can not get this install command to work ??
ANd a test from Linux says that 64-bit linux is not supported.
Mats Mohlin

FastVoteFred said...

Did you modify the file

sudo i

For 64 bit install yes you need ia32-libs and nspluginwrapper packages

Did you edit the install file to make the modification I gave above?

Good luck, I believe you can make it work for 64-bit Linux.


FastVoteFred said...

Clear instructions to install to a 64-bit Linux from Lindqvist at
Visit Lindqvist

Mats Mohlin, Comment back when your have a running 64-bit Linux install of BankID Nexus Personal.

4. Test your installation
Don't bother with since the idiots won't let you test anything that identifies itself as 64 bit (more about that later). Instead

go to
click on personbevis
log in. This should work

5. Testing against
Everything is in working order but for some idiotic reason won't even allow you to test you fancy new 64 bit installation -- and it all boils down the useragent string in iceweasel/firefox identifying itself as running on a 64 bit system (paradoxically, a real 32 bit browser running in a chroot won't work either since the kernel is 64 bit -- in schroot you can use personality=linux32 to get around it, but good luck dealing with the massive memory leaks

ps. Send a comment to CTO of Nexus Personal, Per Hägerö
Visit website and comment, please. User of Linux 32-bit and 64-bit need to Evangelize and communicate clear and concisely their needs through the "Contact" web form. Be nice!

Anonymous said...

It work as it should. (not with but all real places)

Thanx a lot :)

Alan Davidson said...

I am having problems getting BankId to work now that I have moved to version 13:10 (and 64 bits).

One extra issue that was not a problem for the previous versions discussed above is that package ia32-libs no longer exists. After Internet searches I arrived at the alternative strategy:

sudo apt-get install libstdc++6:i386 libidn11:i386

I might have installed a few more without thinking, but I believe after the fact that it comes down to those two.

The plugins look good when I check them by typing "about:plugins" into my firefox URL field. The BankID windows are opening for me but I am not being prompted for my pin on the card-reader, and therefore never can choose a certificate in the BandID window.

As far as I can tell I have followed all necessary steps for SEB's BankID (including installing their driver with "sudo apt-get install pcscd" in case you doubt it). However, the step that does give cause for concern is that after

sudo nspluginwrapper -i /usr/local/lib/personal/

which executes quietly, when I check with

sudo nspluginwrapper -l

I get no reply - no confirmation of a properly installed wrapper.

So I wonder if any readers of this blog (being one of the ones with better advice) have had any similar problems with 13:10, and moreover, have any solutions?

dcuartielles said...

comment by Alan Davidson works like a charm for me on a fresh install of Ubuntu 13.10

Ken Seilon said...


Thank you very much for this post. I was contemplating to install Windows through VirtualBox but you saved me the trouble.

Worked like a charm in Ubuntu 12.04.3.



Johan said...

If you're on Ubuntu 64 Bit and keep getting nag at BankID website about 64 bit version not supported, you can get the latest Linux version at this link: