Linked Questions

0 votes
3 answers
13k 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 ...
simpatico's user avatar
  • 631
0 votes
1 answer
1k 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 ...
user3486308's user avatar
0 votes
1 answer
496 views

Global Variables across scripts [duplicate]

Why is lets say HOME recognized by all my scripts but my variable DMENU isn't? I export it in my bspwmrc file which is executed at start up.Also had it in my zshrc. Why do this? DMENU="-h 27 -z ...
Lampros's user avatar
  • 143
0 votes
0 answers
115 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=...
Ger's user avatar
  • 101
8 votes
1 answer
33k 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 ...
xibalba1's user avatar
  • 183
5 votes
3 answers
16k views

variables in crontab

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 * * 3 ...
Wolfgang Adamec's user avatar
3 votes
4 answers
20k 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="/...
DBS's user avatar
  • 162
6 votes
2 answers
6k 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 ...
VaTo's user avatar
  • 3,218
2 votes
2 answers
5k views

Setting enivorment variables permanently with a .sh

Having looked at Setting up environment variables with .sh file and How to permanently set environmental variables I'm still confused as to how to properly set permanent environment variables from a ....
Jonathan Woollett-light's user avatar
3 votes
2 answers
5k 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 ...
slacktracer's user avatar
3 votes
1 answer
5k 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 ...
sgc's user avatar
  • 33
2 votes
2 answers
6k 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 using ...
ha9u63a7's user avatar
  • 230
0 votes
2 answers
1k views

"Warning: bad syntax, perhaps a bogus '-'?" has started to appear when connecting to server

I am suddenly seeing the following warning when I ssh to my server. I researched it and cannot seem to find the cause neither I am able to get rid of it. Please, can someone help? Thank you!
PtiSinge's user avatar
5 votes
1 answer
1k 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 ...
R. Du's user avatar
  • 161
-1 votes
1 answer
2k views

Symbolic link to binary, can't find configuration file

I just installed the jumbo john package. it's in ~/tools/john the binary is ~/tools/john/run/john and the config is ~/tools/john/run/john.conf I created a symbolic link with sudo ln -s /home/me/...
user397311's user avatar

15 30 50 per page