Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example on how to set up environment variables #747

Open
ibarrae opened this issue Mar 21, 2024 · 1 comment
Open

Add example on how to set up environment variables #747

ibarrae opened this issue Mar 21, 2024 · 1 comment

Comments

@ibarrae
Copy link

ibarrae commented Mar 21, 2024

Is your feature request related to a problem? Please describe.

Hey everybody, I would like to see an example of how to set up (global) environment variables on the VM so it's available during shell/cmd line usage. For instance, having some env var like FOO=123 available so I can do the following in the VM:

$ echo $FOO
123

Describe the solution you'd like

An example on how to set up environment variables in the VM

Describe alternatives you've considered

No response

Additional context

No response

@pacman2011
Copy link

To set system-wide Linux environment variables, you can edit the /etc/environment file.

Instead of appending export commands to the file, append the <NAME>='<VALUE>' pair to the end of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants