Jan 26 2026

python error while loading shared libraries: libpython3.14.so.1.0: cannot open shared object file: No such file or directory

Rebuild .venv

rm -rf .venv
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Jan 19 2026

Disk for Maildir with XFS in qemu

Create disk on hypervisor
qemu-img create -f qcow2 -o preallocation=metadata /var/lib/libvirt/images/bull-vmail2.qcow2 320G
Attach disk in console or virt-manager
virsh attach-disk bull /var/lib/libvirt/images/bull-vmail2.qcow2 vde \
--cache writeback \
--discard ignore \
--persistent

Create partition on attached disk
parted /dev/vde --script mklabel gpt
parted /dev/vde --script mkpart primary xfs 0% 100%

Format disk
mkfs.xfs -f -m reflink=0 /dev/vde1

Add entry to /etc/fstab
blkid
/dev/vde1: UUID="75c7522e-f196-442d-bd07-f997bed7d0cc" BLOCK_SIZE="512" TYPE="xfs" PARTLABEL="primary" PARTUUID="9b0f0bfe-1c6f-4d17-ab75-11de67a177da"

UUID=75c7522e-f196-442d-bd07-f997bed7d0cc /tmp/vmail xfs noatime,nodiratime,inode64,logbufs=8,allocsize=1m 0 0

Jan 17 2026

Sending email without mail server – msmtp (light SMTP client)

apt install msmtp msmtp-mta

Config file /etc/msmtprc


defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile /var/log/msmtp.log
account default
host smtp.gmail.com
port 587
from twojemail@gmail.com
user twojemail@gmail.com
password "<secret>"

chmod 600 /etc/msmtprc
Test
echo "Test msmtp" | mail -s "Test" someone@gmail.com
Logs
tail -f /var/log/msmtp.log

Dec 18 2025

dovecot

→ wymusza przeliczenie quota i zapis do clone.
doveadm quota recalc -u user@example.com

→ uruchom z verbose, aby zobaczyć szczegółowe operacje pluginów.
doveadm -Dv

Aug 5 2025

Win11 nie mogę się podłączyć pod zasób SMB / SAMBA / folder udostępniony

Od Windows 11 24H2 domyślnie blokowane są połączenia przez nieautoryzowanego „gościa”. Jeśli musisz koniecznie zezwolić na taki dostęp:

KROK 1 – Uruchom PowerShell jako administrator:
W menu start wpisz PowerShell, kliknij PPM i uruchom jako administrator.

KROK 2 – Wprowadź następujące komendy:
Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true

Mar 24 2025

UTC in Microsoft Windows

To dual boot with Windows, it is recommended to configure Windows to use UTC, rather than Linux to use localtime. (Windows by default uses localtime)

It can be done by a simple registry fix: Open regedit and add a DWORD value with hexadecimal value 1 to the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation\RealTimeIsUniversal

You can do this from an Administrator Command Prompt running:

C:\>reg add "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TimeZoneInformation" /v RealTimeIsUniversal /d 1 /t REG_DWORD /f

Mar 8 2025

pacman upgrade packages in ArchLinux

pacman upgrade packages in ArchLinux
sudo pacman -Syu
-S – Synchronizes packages
-y – Refreshes the package database
-u – Upgrades all installed packages

Remove a package (keep dependencies)
sudo pacman -R package_name

Remove a package and unneeded dependencies
sudo pacman -Rns package_name

Remove orphaned packages (unneeded dependencies)
sudo pacman -Rns $(pacman -Qdtq)

Remove a package and ignore dependencies
sudo pacman -Rdd package_name

Remove a package and its cache (free up disk space)
sudo pacman -R package_name && sudo pacman -Sc

For a more aggressive cleanup, remove all cached package files:
sudo pacman -R package_name && sudo pacman -Scc

To install packages from a previously saved list of packages, while not reinstalling previously installed packages that are already up-to-date, run:
pacman -S --needed - < pkglist.txt

Mar 5 2025

GRUB boot to last OS

edit /etc/default/grub

change or aadd:

GRUB_DEFAULT=saved

GRUB_SAVEDEFAULT=true

GRUB_DISABLE_OS_PROBER=false

Recreate config

Arch example:

grub-mkconfig -o /boot/grub/grub.cfg

Mar 5 2025

EFI BOOT ENTRY

DELETE

To delete a menu entry using efibootmgr
first list the current boot entries with sudo efibootmgr
Identify the boot number of the entry you want to delete, then use the command:
sudo efibootmgr -b XXXX -B
replacing XXXX with the boot number of the entry you wish to remove.

ADD

To add a menu entry using efibootmgr, use the following command format:
sudo efibootmgr -c -d /dev/sdX -p NN -L "Label" -l "\EFI\path\to\boot\file.efi"
where /dev/sdX is your disk, NN is the partition number,
“Label” is the name you want for the boot entry,
and \EFI\path\to\boot\file.efi is the path to the EFI executable.

!!! Make sure the path to the boot file is correct and uses backslashes, as required by the EFI specification!!!

Dec 19 2024

Repeated Message – Driver exit RTD3 [USB issue]

#Display USB Selective Suspend when on battery

powercfg.exe /SETDCVALUEINDEX SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 1

#Display USB Selective Suspend when plugged

powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT 2a737441-1930-4402-8d77-b2bebba308a3 48e6b7a6-50f5-4782-a5d4-53bb8f07e226 1