osx

BankID on Mountain Lion

Norwegian BankID (used by most banks in Norway) uses a java applet for login.

The current combination of java, mac osx 10.8.x, applets and BankID is a mess.

Things to note:

  • Java 1.6 from Apple removed support for web applets - so you'll need Oracle java 7
  • Java 7 from Oracle will work - but - not in Chrome (Chrome doesn't support 64 bit java - Oracle don't provide 32 bit)
  • Most BankID pages test to see if java is enabled - and after installing java - it still gives the java not installed or enabled error. The issue seems to be that you have to activate the plugin by loading an applet that doesn't test for support - for example the one on http://www.java.com/en/download/testjava.jsp prior to trying to log in to the bank
  • BankID state that there is an issue in Firefox where the OK button does not get enabled - you can get around this by holding the CMD key in for a few seconds until it enables. This is claimed to be due to a bug between Firefox and java. Note that in my testing this is exactly the same issue in Safari and the same workaround works.

So - install Oracle java, go visit a test page - log in with a workaround to get OK buttons to enable and you might just be allowed to login to your bank.

The BankID applet needs to die.

Sources:

Mountain Lion upgrade

A list of things I need to remember when updating to Mountain Lion.

Finding the current system JAVA_HOME on mac osx 10.5+

Technical:

I always forget where this file is located - so just as a reminder ;)

To find the current JAVA_HOME for the current user (set by java preferences) run:

/usr/libexec/java_home

Details from http://developer.apple.com/library/mac/#qa/qa1170/_index.html

Running rvm ruby 1.9.2 with rvm packages on OSX Lion - failing to make due to readline

Getting rvm rubies to compile with the rvm packages isn't turning out that easy.

First off - you need to get XCode for Lion installed from the App Store (even if you upgraded from Snow Leopard - Lion needs a newer version). In addition - the App Store downloads an XCode installer - you also have to run it to get it installed ;)

So I grabbed the latest rvm:

bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

This puts up the following message:

Store iMovie events on a network drive/NAS

I'd found a lot of info on the net about using symlinks to allow iMovie to see network disks, but this always seemed like too much of an effort.

So this blog post was a real nice find.

Short form - you just need to set a default:

defaults write -app iMovie allowNV -bool true

Mac homebrew and homebrew-alt

Updating mac homebrew from 0.7.1 to 0.8 removed the rsync formula that I use to update mac rsync from the supplied 2.x version to 3.x.

This is due to the fact that homebrew doesn't want duplicates of existing software.

However - these are still available from the homebrew-dupes repository.

Prevent iPhoto '11 from asking for your e-mail password

iPhoto '11 from iLife '11 has a new set of e-mail templates for sending photos directly from the application.

However - each time it prompts for your e-mail password and doesn't seem to have a "remember" option.

To fix - open Keychain Access (/Applications/Utilities).

Select login (your login keychain) from the top left Keychains list and Passwords from the lower left (Category) list.

Tunnelling IPv6 from a mac over IPv4 tunnel through a debian firewall using tunnelbroker.net

There are three steps to this:

  1. Tunnel configuration
  2. Firewall configuration
  3. Client configuration

Tunnel configuration

Sign up for an account at http://tunnelbroker.net

Once signed up - choose "Create Regular Tunnel"

Enter the IPv4 address of the external interface of your firewall. Note - this must be able to receive and respond to ping from arc.he.net - the webpage will give you an IP address to allow ping for if it can't ping your firewall.

Java Apps banned from new mac app store

Technical:

A follow up on Java deprecated on Mac OS X?

From a response in this thread we can read:

Apps that use deprecated or optionally installed technologies (e.g., Java, [PowerPC code requiring] Rosetta) will be rejected.

Java deprecated on Mac OS X?

Technical:

There's an interesting paragraph in the latest Mac OS X Java update relasenotes New and Noteworthy - a paragraph called "Java Deprecation".1

As of the release of Java for Mac OS X 10.6 Update 3, the version of Java that is ported by Apple, and that ships with Mac OS X, is deprecated.

Importing custom CA certificates to OSX

Technical:

For my own sites I use SSL certificates signed by my own CA.

The CA certificate needs to be imported to the machines where I use the websites and for Mac OSX it needs to go into the system keychain - not the users keychain.

Importing via Keychain Access sometimes fails with cryptic error codes.

Here's how to do it via the command line:

sudo security import  -k /Library/Keychains/System.keychain

iSCSI on the ReadyNAS NV+ and OSX Snow Leopard

The Pro series of NAS from ReadyNAS (Netgear) support iSCSI out of the box. But the NV+ 4disk unit does not. However - a third party plugin is available. Let's look at what is needed to get iSCSI connections between the ReadyNAS NV+ and an iMac running Snow Leopard.

Setting /usr/local/bin before /usr/bin in bash PATH for Mac OSX Snow Leopard for all users

Just a short reminder - the list of paths that path_helper (/usr/libexec/path_helper is called from /etc/profile) is stored in /etc/paths. Just add /usr/local/bin at the top of the file.

Time machine on a large external disk as a sparseimage

Having a very large external disk I wanted to limit Time Machine to use only part of it.

To do so - you can use the same technology as time capsule does - sparseimages.

In the following:

HOSTNAME is the result of:

hostname -s

MAC is the mac address of the network adapter:

ifconfig en0 | grep ether | sed -e "s/.*ether //" | sed -e "s/://g"

Utilities

Time Tamer:

Running xdebug 2.0.4 on OSX Leopard apache/php

This is based on the information on http://developers.sugarcrm.com/wordpress/2008/11/25/enabling-xdebug-under-os-x-leopard/. Download xdebug 2.0.4 (or later - but this is based on the 2.0.4 build) - extract it.

Backing up Aperture Vault to a NAS

Listening to the digital story this morning prompted me to think about my Aperture setup.

Aperture has its "vault" functionality - but this only works to the local hard drive or to USB/firewire drives directly attached to the box.

I have a RAID5 based NAS (network attached storage) device which I would  far prefer to have my backups on - since I've had USB disks die on me before.

How to get the vault onto the network device?

Google address book sync to mac address book - aargh - duplicates

The latest update to Mac OSX 10.5.3 now includes inbuilt google/address book synchronization.

However - after updating and adding my login details for gmail to addressbook it just seemed to hang with:

Can't connect to the sync server: NSInvalidReceivePortException: connection went invalid
while waiting for a reply ((null))

The solution was to remove the contents of

~/Library/Application Support/SyncServices/Local

and try again.

Note that for account name it needed the full e-mail address complete with googlemail.com domain.

Update

Leopard issues

Technical:

Folllowing issues after update (updated 8:55 wed 19th dec)

Setting up custom routes depending on the network location in OSX

Nearly all you need to know is available here:

http://www.geisterstunde.org/drupal/?q=osx_routing

All I found is that $BUNDLE refers to /System/Library/SystemConfiguration/Kicker.bundle/ and the script should go in $BUNDLE/Contents/Resources - not $BUNDLE/Resources (the paths are a little mixed in the original article).

Subscribe to RSS - osx