Install mc (midnight commander) on Valve Steam Deck

It seems that it is not that easy to install mc on steam deck even if you ask chatgpt for help, so after some trial and error here are the steps that worked for me:

sudo steamos-readonly disable
sudo rm -rf /etc/pacman.d/gnupg
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate holo
sudo pacman -Sy archlinux-keyring
sudo pacman -S mc
sudo steamos-readonly enable

Hope this helps someone.

Midnight commander mc not showing in default colors in GNU screen

If you are using GNU screen and you notice that while MC is showing in default blue color for root but not for the user the easy fix would be to try this:

TERMCAP='' /usr/bin/mc --skin=default

If this works for you and mc is showing in color then you can setup an alias in your .bashrc like:

alias mc='TERMCAP="" /usr/bin/mc --skin=default'

do the reload of .bashrc with:

source .bashrc

Then the next time you run mc from with your user it should be displayed in default color instead of black and white.