How to connect Raspberry Pi to Bluetooth Keyboard

Follow the steps below to connect your Bluetooth Keyboard or Mouse to your Raspberry Pi.

I’m using a Logitech K380 on the examples below since that is my Bluetooth keyboard. But you can follow the same steps if you are using a different Bluetooth keyboard or device, such as a Bluetooth mouse.

Continue reading How to connect Raspberry Pi to Bluetooth Keyboard

How to Fix Typing Wrong Keyboard Characters in Raspberry Pi

The first time I used a Raspberry Pi years ago, I got frustrated that I could not connect to the WiFi Network. So I tested on the text editor if I am typing the correct password. As it turns out, pressing the backslash (\) on the keyboard will type the hashtag symbol (#), and if I press Shift + 2 will type double-quotes (") instead of At sign (@).

The reason for the incorrect characters being typed is by default the Raspberry Pi is set to use a UK-based keyboard layout. To correct this, we need to reconfigure the keyboard layout to the ones we are using.

In my case, I am using a US-based keyboard layout. In the tutorial below that is what I am going to use. You can select the keyboard layout that you are using.

There are several ways to update the Keyboard Layout in a Raspberry Pi, you may choose which one you prefer on the list below.

Continue reading How to Fix Typing Wrong Keyboard Characters in Raspberry Pi

How to change the System Font and Icon Size of Raspberry Pi Desktop

Depending on the screen size or the usage of the Raspberry Pi, I usually tweak the font size and icon size.

If I am teaching or recording videos, I want the icon and font size to be large. If I am blogging, then I want them to be medium size. If I am using a small resolution screen then I want to change the icon and font size to a smaller proportion.

Appearance Settings

Luckily, Raspberry Pi has a Set Defaults icon for different screen sizes which makes it quick for me to change the sizes.

To change the system icon and font size of the Raspberry Pi head over to Appearance Settings and tweak the configuration there.

If you need guidance or instructions on how to navigate the settings then follow the tutorial below.

Continue reading How to change the System Font and Icon Size of Raspberry Pi Desktop

How to change the Desktop Background of Raspberry Pi

When running Raspberry Pi on a fresh install it has a default background of a photo. I’m not really a fan of the default photo so I often change this to a lighter wallpaper or a solid dark background.

Default Wallpaper of Raspberry Pi OS release date April 4, 2022

Below are the steps to change the Desktop Background.

Continue reading How to change the Desktop Background of Raspberry Pi

How to get the remaining time of a running AWS Lambda Function using Node.js

To get the remaining time of a running Lambda Function using Node.js, we will use the context object’s getRemainingTimeInMillis() function. This returns the number of milliseconds that the Lambda Function can still run before it times out.

Below is a simple code that fetches the remaining time inside a Lambda Function. I have set the timeout to be only 3 seconds, that is why the output is 2,999 milliseconds or approximately 3 seconds.

Continue reading How to get the remaining time of a running AWS Lambda Function using Node.js

How to connect Logitech K380 Keyboard to Windows 11

The Logitech K380 Keyboard is one of my favorite devices. It gives me fewer wires to worry about by connecting wirelessly via Bluetooth. It can also easily switch between 3 devices by pressing the F1, F2, or F3 keys.

In this article, we will do a step-by-step guide on how to connect your Logitech K380 to Windows 11.


Instruction to Connect Logitech K380 Keyboard to Windows 11

#1

Open Windows Settings by clicking the Start Menu, and searching for ‘settings’. Then click on Settings.


#2

On the left sidebar of the Settings window, click on Bluetooth & devices.

Continue reading How to connect Logitech K380 Keyboard to Windows 11

List of Public SSM Parameters of latest Operating System EC2 Images

We are running CI/CD pipelines that take the latest EC2 Image of Windows or Red Hat then it will automatically install the required security agents and check if they are properly installed.

At first, it was a hassle since we had to always be on the lookout for the latest EC2 Image ID of our target operating system and input this manually into our pipeline. But as it turns out AWS maintains SSM Parameters that holds the latest Image IDs of various operating systems and their versions.

Sometimes I see these in CloudFormation scripts.

Continue reading List of Public SSM Parameters of latest Operating System EC2 Images

How to get the Region of a Running AWS Lambda Function using Ruby

If you need to get the Region of your running Lambda Function then you should look for the AWS_REGION in the Environment Variables.

Below is the code on how to access the AWS_REGION Environment Variable using Ruby.

aws_region = ENV['AWS_REGION']
Continue reading How to get the Region of a Running AWS Lambda Function using Ruby