Bad environment variables messed up booting on Debian bassed (Raspberry Pi OS)
1
vote
1
answer
64
views
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
# 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?
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?
Asked by Desert Wind
(21 rep)
Mar 6, 2025, 03:52 PM
Last activity: Mar 11, 2025, 02:54 PM
Last activity: Mar 11, 2025, 02:54 PM