Yearly Archives: 2017

Synergy for keyboard & mouse sharing across PC/Linux/Mac systems

Synergy is a nice software which can be used to share keyboard and mouse across systems such that we no longer need to unplug and plug the hardware to different systems.

This software is available on windows, Linux and Mac (Cross Platform). This can be used as alternative to expensive hardware KVM switches.

This software offers ssl encryption and clip board sharing too.

how ever I came across some issues with ssl on my laptop running Opensuse Leap 42.2 Linux. (dependency libssl.so.10 not found error). Also Raspberrypi 3 repos have old version which doesn’t show ssl option.

To get around these issues I recompiled code from the git repository on Linux (Opensuse Leap 42.2) and Raspberry pi 3 ( jessie – PIXEL).

Compiled distribution binaries can be downloaded from below links.

Raspberrypi 3 (.deb arm version) – https://mega.nz/#!4xxzWA6L!Yj9yLbczCW1m90-je0F3RZP1-azyzgbymkorkpC4W38

Opensuse (.rpm X86_64 version)- https://mega.nz/#!JpgUHBQR!BYmEXOILv0E07h4PcoQtibLoGJ2gEjBuzDlgT8f7oiM

 

Using bluetooth mouse in windows/linux dual boot machine with out re-pairing

I got a nice Logitech MX Master Bluetooth  mouse. When ever I boot into different OS on my dual boot laptop I used to loose Bluetooth connection. I came across this article in internet which explains how to avoid re-pairing Bluetooth mouse on dual boot machines.

It explains how to extract Bluetooth connections keys from windows registry using sysinternal psexec and then update Bluetooth configuration file under linux to use same connection keys.

http://console.systems/2014/09/how-to-pair-low-energy-le-bluetooth.html

Instead of doing tricky conversions mentioned in above link, you can note down decimal equivalent values from windows registry and use those values to update linux conf file.

Update:

I have to do below two updates to make it work

  1. I updated IdentityResolvingKey in addition to keys mentioned in above link
  2. Left EncSize as 16 instead of changing it to zero.

Tip: Instead of exporting and then doing tricky conversion of registry values do below steps

Issue command: psexec -s -i regedit

from there export folder “HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\BTHPORT\Parameters\Keys”

From Registry editor note down  decimal values of EDiv and Rand such that we don’t need to covert later.

To easily reformat IRK, LSK and LTK values into Linux format, use python interpreter as below:

  1. Open python interpreter and Assign key string to a variable like
    a = ‘dc,07,9f,29,1b,84,23,f1,be,fe,73,73,a4,c3,d8,c7″
  2. Now to get the reformatted value, use below python code
    a.replace(“,”,””).upper()– Good Luck