Skip to main content

All Questions

0 votes
2 answers
43 views

how do I setup VULKAN_SDK environment variables in Debian/Raspberry Pi Os

First things first; I am new to Linux and I don't understand a lot of things. I'm working on a Raspberry Pi OS which is Debian based. There is a file with environment variables: "setup-env.sh&...
Desert Wind's user avatar
9 votes
1 answer
600 views

Why is bash startup executed under non-interactive ssh

I see an unexplained difference in behavior with ssh on Linux and FreeBSD, and it is the FreeBSD behavior that I would expect from the plain language of the manpages. So, something extra happens on ...
q.undertow's user avatar
0 votes
1 answer
70 views

Is there an env var 'SSH_PWD', and how do I use it to restore my last 'pwd' prior to logout?

The lab has several "Raspberry Pi" machines which run a Debian-flavor OS. They are used for specific purposes - which is to say that after I make an SSH connection, I cd to the folder where &...
Seamus's user avatar
  • 3,727
0 votes
1 answer
709 views

Why the docker-compose.yml environment overrides the .env file content?

I have a docker container that is set up using docker-compose.yml and I introduce a couple of environment variables in it: environment: - AUTH_SECRET=some_secret Then I have these ...
Saeed Neamati's user avatar
1 vote
1 answer
532 views

Environment variables not passed to the user

Even though I set ENVIRONMENT=production in /etc/environment and DefaultEnvironment=ENVIRONMENT=production in /etc/systemd/system.conf the variable ENVIRONMENT (which should be global by now) is not ...
manifestor's user avatar
  • 2,543
0 votes
0 answers
106 views

What shell/env variable contains commandline suggestions?

Many years ago someone once showed me that if your shell returned a command suggestion then you could access it from a shell or environment variable. I thought this was very cool at the time but I ...
ojunk's user avatar
  • 113
0 votes
0 answers
302 views

Modify or remove specific environment variables on every logout

Whenever a (graphical) logout occurs on Debian 11, I want to conditionally (e.g. if $XDG_DEBUG == 1, then ...) set or clear specific environment variables for the active user. The environment ...
Anderson's user avatar
  • 272
0 votes
0 answers
68 views

On Linux/Debian should .bashrc have anything set for python/python3 and if so what?

What should be in the .bashrc for python/python3 on Debian11/KDE? To verify the environment variable is correct, what should echo $PATH display? which python3 displays /usr/bin/python3.
mYnDstrEAm's user avatar
  • 4,588
0 votes
0 answers
231 views

What could cause the environment variables to not get loaded from ~/.bashrc at boot?

On one of my Debian11/KDE machines which uses X11, the environment variables don't get loaded from ~/.bashrc at boot and echo $PATH only prints very few (but not none!) variables. After booting I have ...
mYnDstrEAm's user avatar
  • 4,588
0 votes
1 answer
614 views

[?2004l characters when login through ssh in debian

I have recently modified the $PS1 environment variable in /etc/bash.bashrc in Debian. To make those changes in my current session, I thought that I could restart bash.bashrc with: . /etc/bash.bashrc ...
user avatar
1 vote
1 answer
313 views

"sudo bash -s --" without changing $HOME?

I'd like to run a trusted script from the internet with the sudo command like so: sudo curl https://example.org/my-trusted-example.script.sh | sudo bash -s -- The script is using the $HOME variable. ...
Martin Braun's user avatar
0 votes
0 answers
737 views

doas doesn't run a /usr/sbin binary

I'm using Debian/GNU/Linux Unstable, and I was trying doas for the first time today, with the following simple config file: $ doas cat /etc/doas.conf permit persist alx as root While it worked for ...
alx - recommends codidact's user avatar
1 vote
1 answer
635 views

Why not prepend user directory to PATH?

For user scripts, the usual advice is to append their directory to $PATH in one's .profile: PATH="$PATH:$HOME/.myscripts" # or .bin or whatever Apparently that is safer than prepending it: ...
Jortstek's user avatar
  • 273
0 votes
1 answer
78 views

Behaviour of crontab -e and environmental variables or configuration of default editor ( Debian )

Operating System: Debian GNU/Linux 10 (buster) Kernel: Linux 4.19.0-17-amd64 Architecture: x86-64 I am studying behavior of crontab -e. Are following assumptions correct? crontab -e edits the crontab ...
dungarian's user avatar
  • 455
3 votes
2 answers
1k views

Where are my Environment Variables? (Searched all ordinary places) [duplicate]

Thanks to @ilkkachu I found a solution to this. I have posted it here and you can find it in the comments as well. I want to unset one environment variable and I have searched all these places: ~/....
Masoud's user avatar
  • 141

15 30 50 per page