search

Monday, December 23, 2019

Increase storage of a lxd container

By default lxd stopped to assign root (disk) device to a container. To modify storage volume of a container add a device like this:
lxc config device add surflyc root disk pool=default path=/ size=15GB
Restart the container to apply changes.

Log quireis in dnsmasq

Add the following line to dnsmasq configuration file: log-queries

Friday, November 22, 2019

Lxd on Fedora 31

Fedora 31 has started to use cgroups v2 by default. According to Common F31 bugs it doesn't play nice with Docker, lxd and others. To make fedora switch back to the old cgroups:
sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

How to regenerate grub configuration

sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

Friday, October 4, 2019

wifi utils

List used wifi frequences
sudo iwlist wlp1s0 scan | grep Frequency | sort | uniq -c | sort -n
List available channels
iwlist channel
List wifi networks
nmcli d wifi

Wednesday, September 25, 2019

Fix isort in vscode for python2

Go to the vscode Python extension folder:
cd ~/.vscode/extensions/ms-python.python-2019.9.34911
Install latest version that is known to work with python 2:
pip2 install -t ./pythonFiles/lib/python --upgrade isort==4.3.17