I set the wrong path in some environment variables, and now booting gives a whole new taste. The OS is Raspberry Pi OS, which is Debian based.
RESULT:
Right after booting, I get a black screen with a mouse. Click any mouse buttons, and I get 2 options, "reconfigure" and "exit".
"Reconfigure" doesn't seem to do anything.
I hit "exit" and it feels like the program is being shut down and starting up again. I get a brief moment where I can do "ctrl" + "alt" + "F1" and I get to see for a brief second some command/Terminal code thingy, and then the black screen with the mouse is loaded again. (bad terminology, I'm am very new to Linux)
What I did:
The bad thing I did was sudo nano /etc/environment and added a path to the Vulkan_SDK enviroment file setup-env.sh. (I had no clue how to do it), and this was incredibly stupid of me.
PATH="path/to/setup-env.sh"
Content of setup-env.sh:
# Copyright (c) 2015-2023 LunarG, Inc.
# source this file into an existing shell to setup your environment.
#
# See docs for in depth documentation:
# https://vulkan.lunarg.com/doc/sdk/latest/linux/getting_started.html
ARCH="$(uname -m)"
VULKAN_SDK="$(dirname "$(readlink -f "${BASH_SOURCE:-$0}" )" )/$ARCH"
export VULKAN_SDK
PATH="$VULKAN_SDK/bin:$PATH"
export PATH
LD_LIBRARY_PATH="$VULKAN_SDK/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
export LD_LIBRARY_PATH
VK_ADD_LAYER_PATH="$VULKAN_SDK/share/vulkan/explicit_layer.d${VK_ADD_LAYER_PATH:+:$VK_ADD_LAYER_PATH}"
export VK_ADD_LAYER_PATH
if [ -n "${VK_LAYER_PATH-}" ]; then
echo "Unsetting VK_LAYER_PATH environment variable for SDK usage"
unset VK_LAYER_PATH
fi
How can I get past this, remove this line in envrionment, and get it back to "normal" again?
/etc/environmentfile. Can you boot into a live system? I.e. do the same thing you did to originally install the OS onto the machine. You can get live images of Raspbian from raspberrypi.com/software, then boot using one of those and you can go and edit the file on the original system. Let us know if this is an option and we can try to guide you./etc/environmentfile for something like this, but hey, I know that because I did what you did and broke my system 20 years ago. That's how we all learn!