Skip to content

Instantly share code, notes, and snippets.

@bmurithi
bmurithi / Canon_G2411_scanning_debian.md
Last active April 7, 2021 20:30
Canon Pixma G2411 - Scanning on Debian 10

Scanning does not work out of the box with this multifunctional printer. Works fine on Ubuntu 20.04 LTS with no workaround required.

Attempts to get this working with Canon's proprietary drivers failed as well.

Since it worked with sane on Ubuntu, upgrading libsane on Debian resolves scanning failure.

Install simple-scan / Hold libsane

We hold libsane so we can override it with a build of sane-backends.

@bmurithi
bmurithi / AnsibleTooManyAuthenticationFailures.md
Last active January 10, 2024 14:26
Ansible SSH too many authentication failures

This exception appears to affect ansible when a playbook is executed from a host with several identities configured in the SSH agent (Tested on a development machine with 12 private keys).

I've noted this exception to be particulary common with AWS targets

Inventory configuration

Most tasks will run fine when we configure our inventory to use a specific private key.

We also need to set the IdentitiesOnly flag so that ssh does not attempt other authentication strategies.

-module(colored_text).
-export([red/0, red/1, text/2]).
red() ->
io:format("\e[41m\e[1m ======================= SOMETHING SOMETHING ======================\033[0mi~n", []).
red(Whatever) ->
io:format("\e[41m\e[1m~p\033[0m", [Whatever]).