Tuesday, October 22, 2013

BankID with card reader on Ubuntu 13.10 64-bit

I made a guide for this for Ubuntu 13.04, but after installing it for Ubuntu 13.10, I found there were some differences (and difficulties for that matter), so I thought I'd write one for 13.10 as well.

The main difference is that ia32-libs is no longer available, which makes it much harder to figure out dependancies.

There is a lot of good information on the Ubuntu wiki for Nexus Personal, but since it tries to encompass everything, I find it a little difficult to follow. It's a good resource for debugging though.

The card reader that I have is a Digipass 920, so if you are using something else, you may need to change out the driver for the one appropriate for you device.

Do keep in mind that the BankID application will not be automatically updated. If you need to update to a new version you'll have to download and install it again as described below.
  • Get the BankID application from https://install.bankid.com/Download?defaultFileId=Linux (the website blocks 64-bit Linux from the "regular" download procedure, so if you're downloading from that you need to use this direct link)
  • Unzip the application
  • Open a terminal and go to the directory that you unzipped the application to, and type in the following command (Please note that the version number will change):
    • sudo ./install.4.19.1.11663.sh i
  • Install the needed packages (pcscd:i386 is the driver, in case you need a different one)
    • sudo apt-get install nspluginwrapper pcscd:i386 pkcs11-data:i386 libstdc++6:i386 libidn11:i386
    • There will be quite a few dependancies (mostly for nspluginwrapper), just accept them
  • Go back to the terminal and give the following command:
    • sudo nspluginwrapper -i /usr/local/lib/personal/libplugins.so
  • Start/restart Firefox, go to Tools -> Addons and check that you can see Nexus Personal under Plugins
  • Give it a try, it should now work

Update: Confirmed to work also on Linux Mint 17, i.e. it should also work on Ubuntu 14.04.

Thursday, October 17, 2013

Lemon Squares

It's my turn to bring, what we call "fika", or cookies/cakes to be had with coffee or tea, to work this week. We all takes turns bringing it on Fridays, and it's quite a nice tradition.

I've made raspberry macarons, but since they are the same as I made recently, I won't bother writing up the same thing again. Just follow the link, or scroll down, if you're interested. Macarons are quite small and delicate though, so I wanted to bring something else as well. The choice fell on lemon squares, which I've never made before, but they sounded delicious, and as it turns out, they are.

Lemon Squares




















Ingredients (16 pieces)
100g Butter
3/4 dl Powdered sugar
2 dl + ½ dl Flour
3 Eggs
2 1/4 dl Caster sugar
1 lemon
White chocolate (optional)

Ingredients




















Butter and crumb a square baking dish (I used one that was about 21x21 cm, but slightly larger or smaller should not make a huge difference).

Put the room temperature butter, powdered sugar, and 2 dl of the flour into a large bowl. Beat with an electric whisk until it comes together. Make sure that the bowl is large, and preferable put a towel over the top, since this is a very dry dough before it starts to stick and you will just end up covered in flour otherwise. Don't worry, while it will seem very dry at first, when it's done it will be light, soft and malleable.

Press the dough out evenly in the oven dish, and bake for about 15 minutes at 175°C. When it's done it will have a very, very light golden tinge to it.

Grate the rind of of the lemon, and squeeze out the juice. Whisk the eggs, lemon rind, lemon juice, caster sugar, and the last ½ dl of flour together.

Once the dough is done baking, pour the filling into the dish and bake for a further 20 minutes.

When it's done baking, take it out and allow to cool. Once cool, cut into pieces and sprinkle with grated white chocolate.

Buttered & breaded
Dough










Lined
Filling










A tinge of gold
Done