JfwHome

How to use Apple bluetooth keyboard with multiple computers via a KVM

by admin on Jan.02, 2012, under Linux, OSX

It’s easy to share traditional keyboards between multiple computers using a USB KVM. Obviously, with a bluetooth keyboard, things aren’t so simple.

I wanted to share my Apple bluetooth keyboard between my Mac mini and my desktop computer (running Ubuntu, but this would work with Windows).

First step was to get a USB bluetooth dongle and plug that into the KVM. Any USB dongle should do. When the KVM is switched to the Mac, the bluetooth dongle takes preference over the built-in Mac bluetooth receiver.

This works to share the keyboard, but the keyboard had to be disconnected and re-paired each time the KVM was switched — this is particularly problematic if you need to repair the keyboard at, for example, the login screen. It also requires you to enter a PIN code each time.

Fortunately this can be easily solved by sharing the generated link key between the two computers:

  1. Pair the keyboard in Ubuntu, then in OSX.
  2. In OSX, look at the bluetooth properties for your keyboard device to get the address.vThen open the terminal and type sudo defaults read /private/var/root/Library/Preferences/blued.plist. You will see something like the following:
    {
        LinkKeys =     {
            "00-aa-bb-cc-dd-ee" =         {
                "00-00-00-aa-aa-aa" = <81a83517 cc3c7afc fb8e99fc 5147fbf4>;
            };
        };
    }
    

    Here, the first code is the address of the bluetooth dongle. The second is the address of the keyboard, and the final, longer code is the link key.

  3. Convert the link key into a format suitable for Linux (or Windows), by reversing the endianness; simply reverse the order of the key, taking each pair of hexadecimal numbers as one value. So, the above key would be f4fb4751 fc998efb fc7a3ccc 1735a881. Easy…
  4. Use this link key in Linux or Windows. On Ubuntu the link key is at /var/lib/bluetooth/00:AA:BB:CC:DD:EE/linkkeys — the code is the address of the bluetooth dongle. Edit that file and replace the link key corresponding to the address of the bluetooth keyboard to the converted key, above.
  5. That’s it — restart Ubuntu, and the keyboard will work seamlessly as it is switched by the KVM.
  6. To change the link key in Windows, you need to edit the registry — I didn’t do this, but a search for “Windows bluetooth link key registry” should give the goods.

    Provided the keyboard doesn’t become unpaired, the setup should last indefinitely.

Leave a Comment more...

Ubuntu (Lucid) on Gigabyte x58a-ud3r

by admin on Aug.09, 2010, under Hardware, Linux

I just upgraded my main desktop PC, running Ubuntu 10.04 (”Lucid Lynx”). After an 8-year hiatus, I’m back on Intel, with a nice new Core i7 930 and a Gigabyte x58a-ud3r.

There’s not a great deal to write about compatibility, as everything “just worked” out of the box.

The upgrade went well — one of the great things about Linux is how well it takes to a complete brain transplant. No HAL trouble or “repair install” nonsense that you get on Windows.

Here are the things I had to do after the upgrade to get a 100% perfect system…

(continue reading…)

1 Comment more...


VMWare Player Vs. VirtualBox in Ubuntu: Decided in 1 minute

by admin on Jun.30, 2010, under Uncategorized

I’ve been using VirtualBox for a few years, and I like it. I thought I would try out the latest VMWare Player to compare and see how it has moved on since the last time I used it — from what I’ve heard, the seamless mode in Player is now very good.

However, it all came to naught — VMWare fail. Miserably. Why? Because I can’t download the thing.

VirtualBox provides nice direct download links, and — even better — an Ubuntu repository.

What about WMWare? They provide… this:

VMWare... What the hell?

VMWare... What the hell?

Problem solved — there’s no way I want to hand over this kind of data. Sure, I could just fill in nonsense data (and I started to)… but then what happens when I need an update, or even upgrade to a paid version? VMWare: What the hell are you thinking, asking for all this personal information? The bounce rate for your software must be hideous — what a great way to send people to your competitors.

If you’re here because you’re searching for a “direct link to VMWare Player” in Google: Sorry, try this, much better link, instead.

Leave a Comment more...

Looking for a great Linux PHP editor? Try Geany.

by admin on Dec.09, 2009, under Linux, Programming

I’ve never been one of the vi or emacs brigade — when editing code (mainly PHP and Python), I’ve always found it easiest using a lightweight editor (together with a local server).
(continue reading…)

3 Comments more...

Compiling SqueezePlay on linux (Ubuntu AMD64)

by admin on Nov.22, 2009, under Linux

Logitech Squeezeboxes are great little network audio streamers — I have a squeezebox Duet, which is much cooler (IMO) than an Apple TV + iPod.

Squeezeplay is the Squeezebox controller / squeezebox touch user interface, and it can run on any computer. You can use that computer as a controller for your squeezebox receiver, or as a complete squeezebox, playing music. If you can get it running on a portable device, you effectively get a new Squeezebox Controller for free.

Unfortunately, even though the Squeezeboxes are based on a GNU/Linux foundation, Linux users don’t get much love when it comes to releases of SqueezePlay… so we have to compile it ourselves.

Here is how to get SqueezePlay working on Ubuntu karmic amd64, but the instructions should apply to other distros. I’ve also tested it on Karmic 32 bit.

(continue reading…)

55 Comments more...

Fixing the (too low) position of notifications in Ubuntu Karmic

by admin on Nov.12, 2009, under Linux

One of the first things I noticed on upgrading to Karmic was that notifications were lower than they were in Jaunty.

Like most people, at first, I thought this was a bug. The short answer is — it isn’t. The devs, in their infinite wisdom, think its better this way — the “top slot” for notifications is reserved for synchronous notifications, such as brightness and volume.

Karmic notification position

Karmic notification position

(continue reading…)

3 Comments more...

Upgrading from Ubuntu Jaunty (9.04) to Karmic (9.10) on the eeePC 1005HA (and 1008HA)

by admin on Nov.11, 2009, under Hardware, Linux

If you followed my guide on getting Ubuntu 9.04 to run nicely on the eeePC 1005HA, and have or are considering upgrading to Karmic, these few notes will help you.

A karmic Koala in a seashell

A karmic Koala in a seashell

(continue reading…)

25 Comments more...

Querying subfolders in SharePoint lists using SPAPI and GetListItems()

by admin on Nov.11, 2009, under Programming, SharePoint

This took a while to figure out. I’ve been trying to query the SharePoint lists service using getListItems().

Getting something from inside one folder is easy — you just set the queryOptions parameter to be <QueryOptions><Folder>folderName</Folder></QueryOptions>.

This works and returns items fron within that folder. But what about subfolders?

(continue reading…)

5 Comments more...

Restoring karmic’s GDM (login screen) to black after trying “high contrast” option.

by admin on Nov.08, 2009, under Linux

Ubuntu 9.10’s new login screen looks great — brown, black and white. Much improved over the previous version.

However, if you try out the Accessibility options, in particular, the “improve contrast” option, it goes ugly, with a nasty grey bar.

The problem is that, even after you deselect the option, the theme does not revert back, even after restarting again. The problem is that some needed theme files are deleted.

The solution is simple — you need to re-install gdm. Either fire up Synaptic, search for gdm, and then mark it for re-installation, or do sudo aptitude reinstall gdm in a terminal.

There you go — sexy login screen back again.

3 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!