Situation: You have an nvme drive installed for the raspberry and thats where your system is (recommended)
but you fucked something up and locked yourself out or simmilar
the user interface requires resources, so you want to remove it
# ensure were up to date
sudo apt update
sudo apt upgrade -y
# staged removal
sudo apt-get remove --purge qt5-gtk-platformtheme
sudo apt-get remove --purge lxappearance lxpolkit lxpanel lxsession lxinput lxtask lxterminal openbox
sudo apt-get remove --purge x11-common lightdm
sudo apt-get autoremove --purge
# fix broken packages
sudo apt-get install -f
# configure system for shell drop in
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get update
sudo systemctl set-default multi-user.target
sudo reboot
nano /etc/dhcpcd.conf
interface [INTERFACE]
static_routers=[ROUTER IP]
static domain_name_servers=[DNS IP]
static ip_address=[STATIC IP ADDRESS YOU WANT]/24