py3compile not found

sudo dpkg –configure -a sudo apt install -f –reinstall python3-minimal sudo apt install -f –reinstall python3-pip

Fix DNS resolution in WSL2

sudo tee /etc/wsl.conf > /dev/null << EOF [network] generateResolvConf=false EOF rm /etc/resolv.conf echo -e ‘nameserver 8.8.8.8\nnameserver 8.8.4.4’ | sudo tee /etc/resolv.conf > /dev/null; sudo chattr -f +i /etc/resolv.conf;

Ubuntu – Force fix errors on a mounted drive – fschk

You cannot repair sda because it is mounted. # fsck -nf /dev/sda1 fsck from util-linux 2.27.1 e2fsck 1.42.13 (17-May-2015) Warning!  /dev/sda1 is mounted. Warning: skipping journal recovery because doing a read-only filesystem check. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts … Read more

Use netstat to show IPv4 versus IPv6 traffic

http://ipv6-or-no-ipv6.blogspot.ca/2013/06/use-netstat-to-show-ipv4-versus-ipv6.html If you wonder how much IPv6 versus IPv4 traffic your system does, there is an nice estimation: use “netstat -s” to show the amount of inbound packets. Packets is not the same as bytes, but assuming the IPv4 packets have the same mean size as IPv6 packets, you’re fine. The exact commands are: netstat … Read more

Why am I seeing a 403 Forbidden error message?

Permissions and ownership errors – A 403 Forbidden error can also be caused by incorrect ownership or permissions on your web content files and folders. Rule of thumb for correct permissions: Folders: 755 Static Content: 644 Dynamic Content: 700 Linux permissions can be represented with numbers, letters, or words. They also include an entry for … Read more