Fix wsl network unreachable

  1. Move to version 1 on wsl
wsl --set-version 1
  1. Set correct gateway using this article

make directory and switch in to it in same command

The command is

mkdir longtitleproject && cd $_

In bash, the $_ variable is the last argument given to the previous command. In this case, the name of the directory you just created.

Fix go: go.mod file not found in current directory or any parent directory; see 'go help modules'

  1. First initialize go mod.
go mod init <file.go>
Read more…

Chroot into nixos

  1. Mount the file system containing the NixOS to chroot into at /mnt or any other directory, using e.g.
sudo mount /dev/sda10 /mnt/nixx/
Read more…

Fix "version `GLIBCXX_3.4.32' not found"

sudo pacman -S libtool gcc gcc-libs

Reference: stackexchange