CentOS 8 and Fedora 32 - make DNS working for Docker containers

Published on Author admin

In CentOS 8 and Fedora 32, by default DNS requests from Docker containers are being blocked by Firewalld. To make DNS working for Docker containers use below command (assuming that containers are using docker0 interface for networking): sudo firewall-cmd --zone=trusted --add-interface=docker0 --permanent sudo firewall-cmd --zone=trusted --add-interface=docker0

Generating QR Code from Linux command line

Published on Author admin

To generate QR Code from Linux command line you can use qrencode tool. Use-case: * transfer config/text files from Linux machine to mobile phone * transfer config/text files from Linux machine when it is not possible to directly copy it (i.e. SSH session inside remote RDP session where copy to clipboard is disabled) Installation: dnf… Continue reading Generating QR Code from Linux command line

Enable hibernation on Fedora Linux

Published on Author admin

Enable hibernation To enable hibernation (suspend to disk) on Fedora Linux follow below steps: Get path to your current SWAP partition: sudo blkid | grep swap Edit /etc/default/grub file and put resume= parameter at the end of line containing GRUB_CMDLINE_LINUX string. Assuming that SWAP partition path is located at /dev/mapper/linux_vg-swap, the resume= parameter should look… Continue reading Enable hibernation on Fedora Linux