Skip to content

Instantly share code, notes, and snippets.

View AndreaCovelli's full-sized avatar
🗺️
Around the world

Andrea Covelli AndreaCovelli

🗺️
Around the world
View GitHub Profile
@AndreaCovelli
AndreaCovelli / lenovo-uefi-kek-fwupd-fix.md
Last active June 16, 2026 08:57
Fix for Lenovo UEFI KEK CA update failing on fwupd

Fixing fwupdmgr UEFI KEK CA Permission Denied on Lenovo AMD Systems

When upgrading firmware on Linux (e.g., Ubuntu 26.04) on certain Lenovo AMD motherboards (like the ThinkCentre M715q), fwupdmgr may fail during a KEK CA database update.

The Error

Running fwupdmgr upgrade --force fails with the following message:

Upgrade KEK CA from 2011 to 2023?
@AndreaCovelli
AndreaCovelli / android-sdk-ubuntu-setup.md
Last active June 16, 2026 08:57
Modern guide to setup Android SDK and Java on Ubuntu / Debian

Install and Configure Android SDK on Ubuntu / Debian

Modern guide to setting up Java (JDK) and the Android SDK command-line tools on Ubuntu or Debian to build Android projects using the Gradle Wrapper (./gradlew) without installing the full Android Studio IDE.


Step 1 — Install Java (JDK)

Modern Android development and the Android Gradle Plugin (AGP) rely on Java LTS versions. Install Java 21 (JDK) along with download and compression utilities:

@AndreaCovelli
AndreaCovelli / incus-install-guide.md
Last active June 16, 2026 08:57
Modern guide to install and configure Incus on Ubuntu and Debian

Install and Configure Incus on Ubuntu and Debian

Modern guide to installing and configuring Incus for managing system containers and Virtual Machines natively on Linux.

Born from the original team behind LXD after Canonical locked LXD behind the Snap ecosystem, Incus has become the open-source, community-driven standard for managing both system containers and Virtual Machines natively on Linux.


Part 1: Incus in the Virtualization Ecosystem

@AndreaCovelli
AndreaCovelli / docker-ubuntu-install.md
Last active June 10, 2026 09:44
Modern minimal Docker install on Ubuntu

Install Docker on Ubuntu

Minimal current Docker Engine install on Ubuntu Server using Docker's official apt repository.

Supports Docker's currently supported 64-bit Ubuntu releases and architectures. For the exact current list, check Docker's Ubuntu install page: https://docs.docker.com/engine/install/ubuntu/

Before installing

Remove conflicting distro or old Docker packages if they exist:

@AndreaCovelli
AndreaCovelli / wget-files.sh
Last active October 16, 2025 13:05
wget command to download all content of a folder with login credentials
wget --user=<username> --password=<password> -r -l1 -nd -A"*" <Parent Directory>
# The wget command uses the recursive (-r) download option with a maximum depth of 1 (-l1),
# disables creating directories (-nd), and downloads all files (-A"*") from the "Parent Directory" page.
# This allows you to download all the files by just providing the parent directory URL and the credentials,
# without needing to specify each individual file name.
@AndreaCovelli
AndreaCovelli / alpine-wsl2.txt
Last active January 20, 2025 10:59
Setup alpine on wsl 2
Add alpine distro to wsl2
-------------------------
https://alpinelinux.org/downloads/ (Mini root filesystem)
wsl --import alpine c:\Users\<username>\alpine "file-name" (current directory downloads)
wsl -d alpine
apk update && apk upgrade
apk add alpine-conf nano
setup-user
apk add sudo
echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel