Benjamin Italiaander / Linux

My short list of Linux commands and tools I use

20 folders Β· 4 notes
Ai Run language models on your own computer with Ollama: install, choose a model that fits your GPU, use the API, and why I still don't translate my site with it. 1 note
Backup Backups that you can actually restore: the 3-2-1 rule, restic for desktops, Borg for servers, and Bareos with tape. 4 notes
Bash Tricks Small bash tricks: serial port access, the date command and counting logged-in users, plus my little scripts on GitHub. 3 notes
Benchmark Benchmark how fast a (network) disk handles large files and many small files with dd, split and rsync. 1 note
CLI Small command-line tools and tricks I use every day: text, images, clipboard, QR codes and my terminal setup. 10 notes
Docker The Docker commands I keep forgetting: build, run, list and clean up images and containers.
Fedora Fedora on my Fujitsu Lifebook: installing from USB, fixing the keyboard, and desktop shortcuts. 3 notes
Fetchmail Fetchmail and OpenSSL: fixing certificate errors by pinning a fingerprint or by trusting the certificate chain. 2 notes
Firefox Fix the "Firefox is already running" message by removing leftover lock files. 1 note
Git Basic Git configuration and how to switch a remote to SSH. 1 note
GnuPG GnuPG is a complete and free implementation of the OpenPGP standard 1 note
KVM Find the local SPICE/VNC display port of a running KVM virtual machine with virsh. 1 note
Markdown Markdown tricks: coloured alert boxes with pandoc, and the CSS behind them. 2 notes
Networking The network commands I use most: addresses and routes with ip, settings with nmcli, DNS checks, open ports, and a WireGuard VPN. 1 note
Permissions Copy permissions and ownership from one file to another with chmod and chown --reference.
RS232 Connect to the serial console of a Dell S4048 or Z9100 switch from Linux with Kermit. 1 note
SSH Everything about SSH: making a key, the config file, file permissions, hardening a server and login notifications. 6 notes
SSL OpenSSL notes: keys, certificate requests, checking certificates, your own CA and certificate bundles. 5 notes
Systemd The systemctl and journalctl commands I use every day, how to write your own service, and timers instead of cron. 1 note
Yubikey A chapter-by-chapter guide to setting up and using a YubiKey from the Linux CLI (Debian/Ubuntu and Fedora) 9 notes
Bash OTP Generator Generate TOTP codes in the terminal with oathtool, with the secret encrypted by GPG.Jun 5, 2016
Find Files, Excluding Hidden Files Use find to list files while skipping hidden files and folders.Sep 20, 2016
Linux CLI Cheatsheet (Daily Use) Daily-use shortcuts for the Linux command line: history search, cursor movement, editing and job control.Aug 7, 2016
OpenPGP / GnuPG Cheat Sheet The GnuPG commands I use most with a YubiKey: the card menu, key status and editing the card.Mar 14, 2016
README.md PDF

A collection of notes from the small Linux projects I build and experiment with. Feel free to look around.

πŸ“š Contents

69 notes. πŸ€– = translated with AI.

General

Ai

Backup

Backup / Tape

Bash Tricks

Benchmark

CLI

Docker

Fedora

Fetchmail

Firefox

Git

GnuPG

KVM

Markdown

Networking

Permissions

RS232

SSH

SSL

Systemd

YubiKey

πŸ› οΈ My projects on GitHub

Scripts and templates from my day-to-day work, each in its own repository:

AreaRepositoryWhat it does
Monitoringzabbix_ups_universal_templateA simple universal UPS template for Zabbix (the APC defaults gave errors), with a small dashboard
zabbix_dell_optical_interfacesDiscovers the optical interfaces of a Dell switch and graphs their receive and transmit power
zabbix_database_upgradeFixes “Unsupported charset or collation for tables” after a Zabbix upgrade
grafana_openldapGrafana roles from OpenLDAP, using departmentNumber as the group
curl_json_dump_to_influx_pythonA lean template to fetch JSON from the web and write it to InfluxDB
Slimme_Meter_naar_influxDB_grafnanReads the Dutch smart energy meter (P1 port) into InfluxDB for Grafana
Mail and webpostfix-docker-from-sourceBuilds Postfix from source in a Docker container, for a fast and secure outgoing mail service
caddy_config_examplesCaddy v2 configuration examples, per domain
Cloudflare-ufw-rule-creatorAllows Cloudflare’s IP ranges through the UFW firewall
wordpress_chown_chmod and wordpress_nginx_proxy_layoutWordPress file permissions, and a wp-config fix for a broken layout behind an nginx proxy
check-SSL-expiry-in-daysbash-scriptHow many days a certificate is still valid, for one domain or a whole list
Microsoftpowershell_lockout_source_trackerFinds which computer keeps locking an Active Directory account
Bulk-Import-users-AzureAdds users in bulk to Entra ID (Azure AD) security groups and Exchange Online groups
Desktopkitty_terminal_working_config_exampleMy kitty terminal configuration, see CLI
bookmarksbm, bookmarks as Markdown files, managed like pass
calcurse_export_to_htmlExports the calcurse calendar to HTML

All repositories: github.com/Benjamin-Italiaander.