Set UTF-8 characters encoding in Ubuntu console
To set UTF-8 characters encoding in Ubuntu console put following line into /etc/environment file. LC_ALL="en_US.UTF-8" Then restart your console session.
Paweł Szaga home page
To set UTF-8 characters encoding in Ubuntu console put following line into /etc/environment file. LC_ALL="en_US.UTF-8" Then restart your console session.
Single line command to run SQL query on database inside Docker container running on remote host: ssh root@tinkerboard -C 'docker exec -i nextcloud-mariadb mysql -u nextcloud -p -e "SELECT * FROM oc_bruteforce_attempts;" nextcloud'
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
To check SSH host public key (Ed25519 key, MD5 checksum): ssh-keygen -l -E md5 -f /etc/ssh/ssh_host_ed25519_key.pub
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