Linked Questions

3
votes
3answers
9k views

variables in crontab [duplicate]

On our linux server we have a lot of entries. Many entries look like this: 15 13 * * 3 /very/long/path/to/binary/run.sh ... These entries would be easier to maintain if I could write: 15 13 * * ...
0
votes
3answers
9k views

Why $JAVA_HOME does not persist on a mac? [duplicate]

On my mac os 10.6.6 I'm trying to persist env variable $JAVA_HOME but it doesn't stick! $ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Once I restart it won't be ...
0
votes
0answers
217 views

How to set environment variable for all users permanently [duplicate]

I try to create a permanent environment variable for all users of an Ubuntu machine which is simply a path to a specific often used folder. I don't want to enter the whole path everytime when I cd to ...
0
votes
1answer
94 views

Where does add the path this command: export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig [duplicate]

I am trying to install pocketsphinx and after installation I should run these commands: export LD_LIBRARY_PATH=/usr/local/lib export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig But I am interested to ...
0
votes
0answers
40 views

HTTPS=true is not working [duplicate]

I'm trying to set the environment variable HTTPS=true in macOS bash shell but it doesn't work when I printenv the variable HTTPS=true doesn't appear: TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=...
4
votes
1answer
11k views

Set persistent environment variable for all users

I am running Ubuntu on a local PC with the following linux distro/kernel: $ lsb_release -a >> ubuntu 16.04.3 LTS $ uname -r >> 4.10.0-33-generic I have a python (3.5) script which calls ...
2
votes
2answers
5k views

Fixing my PATH variable

When I type echo $PATH, I get the output: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games However, I modified my PATH variable using gksudo gedit /etc/environment; the file now reads PATH="/...
4
votes
2answers
2k views

How I can configure w3m to use squid proxy (or any proxy) by default when invoked by a specific user?

Can I configure w3m to use Squid by default when invoked by a specific user in a bash login shell? I've looked inside the w3m configuration file, but I don't see any setting were I can set squid as ...
3
votes
2answers
1k views

Start bash then autostart fish with terminator

I've been using terminator, and recently started using fish. When terminator starts (bash) I can use, for example, node just fine. If I then start fish I can still run node just fine. I set ...
3
votes
1answer
408 views

How to set an environment variable during package installation

I am working on a legacy cross-platform project packaged to both DEB and RPM formats. Once the Linux package is installed, an environment variable holding the path to the installation folder is ...
1
vote
2answers
424 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
4
votes
1answer
92 views

Linux Redhat 7 : How to set a shell option globally / system-wide?

I'm having some troubled time trying to figure out how to turn on the xpg_echo option of the bash for every shell that will get run on my Linux RedHat system (7.4). I know I can have what I need (the ...
0
votes
1answer
152 views

Debian Linux - Setting an environment variable for all users

I added the following in /etc/profile so that all my users can see the path export JAVA_HOME=/opt/jdk11 export PATH=$PATH:$JAVA_HOME/bin But after restarting my laptop, I cannot see the changes ...
0
votes
1answer
60 views

Update $PATH variable that survives updates?

We can put a 3rd party apps new global PATH in /etc/profile, appending to the original $PATH, ok. But.. I can see that the /etc/profile file is provided by a package: aaa_base. What would happen if ...
1
vote
2answers
57 views

Environment variable not getting retained for JRE_HOME with sudoers

OS: Linux (Debian 8) Environment details: We use LXDE and uxterm. Virtual console form till ctrl +Alt + F6 is disabled. Total users available user1, user2, user3 the default system is set with ...