How to make shit work on Void linux and some other guides

Make Steam work

xbps-install -S void-repo-multilib{,-nonfree}
xbps-install steam

For mesa users this would result in:

xbps-install -S libgcc-32bit libstdc++-32bit libdrm-32bit libglvnd-32bit mesa-dri-32bit

Add keyboard layouts

With fcitx, but that doesn't work in some programs and games:

xbps-install fcitx5

With setxkbmap:

setxkbmap -layout us,ru -option 'grp:alt_shift_toggle'

Make nix work

sudo ln -s /etc/sv/nix-daemon/ /var/service 
nix-channel --add https://nixos.org/channels/nixpkgs-unstable 
nix-channel --update 

set ui.key.menuAccessKeyFocuses to false

Readline bindings

Undo: To line start: To line end:

See pipe progress

xbps-install pv

Clear nuget cache

dotnet nuget locals all --clear

Make partition and filesystem and mount a flash drive

sudo
cfdisk /dev/sdc
mkfs.fat /dev/sdc1
cat << EOF >> /etc/fstab
UUID=$uuid /media/$mountpoint auto defaults,user,nofail 0 2
EOF

Mount flash drives automatically

sudo
xbps-install udevil
# copy the service from ~/.config/sv/devmon
ln -s /etc/sv/devmon/run /var/service/

Port forwarding

xwindows: "commonly used when one needs to expose some server which listens only on localhost to LAN (my case) or to internet?", I think a common one on *nix is socat. Alternatively, if you are into GNU/Linux netadmin mojo, you can also use iptables/nftables + ip route sorcery to set up NAT'ish port-forwarding that looks more "real" (i.e. remote address-preserving) to the software you use.