Saturday, December 29, 2018

debian - How to set environment variables in /etc/environment?

I'm using Debian Jessie. I want to set some environment variables that will persist across reboots and work in non-shell environments.



I've set the following in /etc/environment:



SECRET_KEY=xxx


But then if I do the following, it produces nothing:



printenv SECRET_KEY



How do I set this environment variable and activate it?

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...