Showing posts with label debian 64 bit. Show all posts
Showing posts with label debian 64 bit. Show all posts

19 February 2013

341. Upgrading/installing BankID on 64 bit linux

Note: the post below is aimed at installing BankID on Debian (should be ok for ubuntu/mint too). For Arch Linux, see here (item 16)

There are a few ways to get around the rotten behaviour of bankid. This is one of them:

NOTE: to install nspluginwrapper you need to enable the stable/squeeze repos by e.g. adding
deb squeeze main contrib non-free
to your /etc/apt/sources.list.

That's normally reasonably safe since apt by default pulls in the newest package and I haven't had any issues. Just be careful though.

You can also install nspluginwrapper by compiling it as shown here:

Note that there's a FOSS alternative in Fribid ( which seems to be working perfectly -- and if you can use it, use it. The main limitation is that in practice you'll have to collect your certificate/ID with it, since newer versions of BankID saves the ID in an incompatible format. Like many foreigners, I don't have the opportunity to visit Sweden for the sole sake of picking up a new ID, so I'm stuck with BankID. But you may not be.

0. Things to install:
sudo apt-get install iceweasel nspluginwrapper ia32-libs

1. Download BankID and uninstall any previous installations
cd ~/Downloads
mkdir bankid
cd bankid
wget -O bankid.tar.gz
tar xvf bankid.tar.gz
cd BISP-
sudo sh u

2. If you're upgrading, make sure to remove any previous
sudo updatedb && locate
/home/me/Downloads/bankid/BISP- /usr/lib/mozilla/plugins/ /usr/lib/mozilla/plugins/ /usr/lib/nspluginwrapper/plugins/
sudo nspluginwrapper -r /usr/lib/mozilla/plugins/ sudo rm /usr/lib/mozilla/plugins/ sudo rm /usr/lib/nspluginwrapper/plugins/

3. Install the new version
sudo sh i
Installing BankID Security Application ln: failed to create symbolic link `/usr/lib/firefox-addons/plugins': No such file or directory WARNING: Failed installing plugin for Firefox 3. Manually add symlink to in your Firefox 3 plugin directory if this browser is to be used. Installation complete.
sudo nspluginwrapper --install /usr/local/lib/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
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).

  • open your iceweasel browser
  • type in about:config in the address bar
  • promise that you'll be careful
  • right-click on the page, select New, String
  • In the first box, type general.useragent.override
  • In the second box paste Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20100101 Firefox/10.0.12 Iceweasel/10.0.12
You can now go to I find this a bit humiliating though, and you can use bankid everywhere but without having to set the useragent to identify your system as being i686.

If you're having issues, the first thing to check is about:plugins in firefox: