Connecting Bluetooth keyboard to Linux Mint

I was having trouble connecting my Nexxtech Bluetooth keyboard to my ThinkPad T470 running Linux Mint.

I have encountered this problem before with other computers.

I decided to record what worked for me this time so that I can easily refer to it when and if it happens again with another computer.

Once the connection is made, the keyboard seems to work well.

The article I used from Medium, written by Wainaina Gichuhi, had instructions for both GUI and the terminal.

The GUI method did not work, but the instructions for the Linux command line in a terminal worked perfectly.

In case the article disappears the instructions are adapted from the source article as follows:

Connect via Terminal

Put your mouse or keyboard in pairing mode (the instructions are provided by the device manufacturer).

At the terminal prompt, type

bluetoothctl

In the bluetoothctl prompt, type as follows:

scan on

You should see available bluetooth devices and their MAC address listed. Note your keyboard or mouse and copy the MAC address.

Then, at the prompt:

pair MAC

And then

connect MAC

and then

trust MAC

Trusting a Bluetooth device ensures that it reconnects automatically after a reboot, wake or when turned on.

Remember to replace MAC with your keyboard or mouse MAC address.

For example, when I did the scan, the MAC address for my keyboard was 20:11:10:12:24:0B

Lilypond for Presentation Slides

I have some lilypond files that need to be modified so that the text is larger so that they can be added to Presentation slides and still be readable.

The process requires a few different steps.

Change the font size as follows (vim substitute command)

s/huge/sans \\fontsize #3.8/

Modify the source file so that the number of lines of text will fit approximately on half of a half page.

Convert the pdf that is generated by Lilypond to a png or jpg file while keeping the quality.

convert \
-verbose \
-density 150 \
-trim \
test.pdf \
-quality 100 \
-flatten \
-sharpen 0x1.0 \
24-18.jpg