The environment-variables tag has no wiki summary.
0
votes
0answers
17 views
How to Reference an Environment Variable In File
Just want to make sure I am doing this correctly. If I want to reference an environment variable in a file would I simple do this:
java_home_dir = $JAVA_HOME
0
votes
1answer
13 views
Editing the environment variable
I have been trying to edit the environment variable. I had read this and in the section of Persistent environment variable ->System-wide environment variables it is written to change the ...
0
votes
1answer
42 views
Run a shell script from terminal
I have a shell script at /home/user/android-sdk-linux/tools. I wish to run the script from the terminal by typing ddms so I added :/home/user/android-sdk-linux/tools/ddms.sh to /etc/environment and ...
1
vote
2answers
28 views
Why won't environment variables added to .profile show up in screen
I'm running Ubuntu 12.04
I added
export LD_LIBRARY_PATH=/home/dspies/workspace/hdf5-1.8.11-linux-shared/lib
to .profile
but when I log in and open terminal and put echo $LD_LIBRARY_PATH there's ...
0
votes
0answers
26 views
Environmental Variable for current domain
I'm using Ubuntu 12.04 LTS Desktop edition
I want to use environmental variable for currently joined domain just like i use $USER to bring current user.
From what i read there are few variables for ...
0
votes
2answers
85 views
/usr/bin/env: bash: Permission denied
Suddenly, when your Seniors Linux Server admin does not come at office. And Then Junior Linux Admin take a charge of it, then it is NIGHTMARE for them. Please help.
I'm not able to recollect, that ...
2
votes
1answer
34 views
set PATH to include custom folders
I refer to help.ubuntu.com to set environment variables.
I'm required to set some variables (GRIFFON_HOME and GROOVY_HOME) for a user and also I want to include bin folders to my PATH so I edited ...
2
votes
1answer
36 views
Shared library not loading. Loading only under root
I have an executable that requires a shared library that resides in /opt/... folder. I have included the path in LD_LIBRARY_PATH under /etc/environment and updated it using source /etc/environment. ...
0
votes
2answers
43 views
How to restore $PATH environment variable?
I did this in the console:
unset PATH
After this I started getting this error:
grep: command not found
Is there any easy way to get all environment variables back?
-1
votes
0answers
35 views
How to remove “http_proxy” user env setting? [closed]
I have tried searching for it without any luck:
pavel@mintdesktop ~ $ env | grep proxy
http_proxy=http://192.168.2.1:8080
https_proxy=http://192.168.2.1:8080
pavel@mintdesktop ~ $ cat ./.profile | ...
0
votes
1answer
27 views
why I can not login after set the path envrionment variable
I am using the 12.04LST, and I am trying to install the oracle jdk7 manually.
Then I update the /etc/environment to set the PATH variable.
This is the original file content:
...
3
votes
1answer
42 views
Can't get $(date +%F) set as environment variable
I would like to create an evironment variable that will output the current date. I have added the following to ~/.pam_environment:
TODAY=$(date +%F)
Apparently you have to log out after changing ...
0
votes
1answer
48 views
sudo environment
Is there a way to use config files for use with sudo?
For example a .bashrc, .gitconfig, or an emacs init.el
Specifically I wanted to get LSCOLORS in sudo commands. I know that I can put these ...
0
votes
1answer
36 views
Make gcc coloring the default
Is there a way to automatically make gcc color its output?
I am looking to avoid an alias as the the command is commonly used in makefiles (where it will not be used).
Is there an easy way to do ...
0
votes
1answer
63 views
Setting environment variables for OpenJDK on Ubuntu 11.10
I am new to Ubuntu and have programmed in C in the same but java seems to be a bitof a pain.
This is what -java version looks like
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 ...
2
votes
0answers
40 views
Ensuring .profile gets executed when using nX
The $PATH I have when I run terminal in an nX session is different to that I have when I run terminal after logging on physically.
The former is
...
3
votes
1answer
24 views
Environment var _
I send a printenv command in the commandline and I see one of the variables is the following:
_=/usr/bin/printenv
I now do this:
mo@mo-Toshiba ~/Workspace $ printenv _
/usr/bin/printenv
but when ...
9
votes
3answers
113 views
How to list all variables names and their current values?
Including not only $HOME, $PWD etc but any other you have defined.
2
votes
1answer
197 views
How to permanently set environmental variables PATH and M2_HOME in ubuntu for maven3?
I have downloaded the latest apache-maven3.zip file and extracted it to the folder:
/home/gaurav/Java/maven3.
I don't know how to set the environmental variables for maven - such as PATH and M2_HOME.
...
0
votes
0answers
36 views
is it true that /etc/environment is only read during login and not re-read after that
On Ubuntu 12.10 server,
Is it true that /etc/environment is read only by pam during login, before bash starts and not re-read after that? If I run some combinabion of bash -cli .... can I get the ...
2
votes
1answer
37 views
Lost PATH variable content
I was trying to add something to the PATH with :
export PATH=/user/home/sbt/bin
but I removed all of the content of PATH and I can not run any command on the terminal even ls ! So what should I do ...
2
votes
1answer
49 views
Why isn't ubuntu checking the correct directory in the $PATH variable?
I'm trying to run a program redis-cli
$ ls -lh /usr/local/bin/ | grep redis
-rwxr-xr-x 1 root root 4.2M Mar 24 19:49 redis-cli
-rwxr-xr-x 1 root root 5.6M Mar 24 19:49 redis-server
$ echo $PATH
...
1
vote
1answer
19 views
Update PATH variable during script execution
I am writing a script that installs a program. The problem is the program needs to have PATH variables set to install.
How do I set PATH variables during the script execution and update the shell so ...
0
votes
2answers
256 views
HOME/bin not a valid identifier
Thanks for reading. I am a grad student who has fallen into maintaining a server on a linux-Ubuntu machine - we work in Ontopia and Wandora, two programs that like to mess with Java environments. I ...
2
votes
1answer
58 views
Program in $PATH not being found
I am running xubuntu 12.1, and am having some difficulty getting a program I have added to my path to execute.
The program I am attempting to execute is scan-view, from Clang. I built Clang from ...
0
votes
1answer
75 views
How to set up environment variable properly?
I opened the /etc/environment and added the line ANDROID_SDK_HOME="/home/tom/android-sdk" but I tried echo $ANDROID_SDK_HOME but displayed nothing. I have JAVA_HOME in the same /etc/environment but ...
0
votes
0answers
17 views
PATH variable for sudo [duplicate]
I tries to add some path to the PATH variable. first of all , I added them at the end of ~/.bashrc that only works for the current user and doesn't work for root. then added the same lines into ...
2
votes
1answer
63 views
Add directory to path for sudo
I know creating a .bashrc and adding
PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/tools
PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools
will add those directories to my path. ...
0
votes
1answer
36 views
Setting global environment variable for everyone
If I set a variable in /etc/environment, it only seems to apply to administrators while in sudo su.
How can I get the variables to apply to everyone? Especially when they are in terminal? Do the ...
0
votes
1answer
108 views
How to change permanently the PATH with Ubuntu 12.04 LTS?
To add :/usr/local/go/bin to the PATH with Ubuntu 10.04 LTS (Lucid) and permanently change the PATH, I just edited the files /etc/environment and /etc/login.defs.
And these modifications were OK both ...
0
votes
1answer
321 views
How do I set CLASSPATH variable for Tomcat in 12.10?
Previously, I have set the JAVA_HOME path using the terminal with the following command:
export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-i386" >> ~/.bashrc
Now, I want to set the CLASSPATH ...
0
votes
2answers
652 views
How to set JAVA PATH in Ubuntu 12.04?
So java -version give path not found. I have tried the following:
Edit:
~/.bashrc
~/.profile
/etc/environment
bash.bashrc files and add to them the following:
...
0
votes
1answer
28 views
how to set a PATH of ProofPower in Ubuntu 12.04 [duplicate]
Respected Fellows,
I am using a formal verification tool ProofPower in Ubuntu 12.04, but i don't that how can i set a PATH or environment variables in Ubuntu 12.04.
My ProofPower bin path is : ...
0
votes
0answers
70 views
setup a global variable in user chroot environment provided by sshd_config
When my users login to my server, they are chrooted to a folder through this config:
Match Group chroot
ChrootDirectory /usr/lib/sshchroot/chroot/
I want when each user login a program outside ...
-1
votes
1answer
46 views
Why are the “bash” and the “source” commands behaving differently? [closed]
I'm using Mac OS 10.8. I ran the /sw/fink/bin/init.sh script using the bash command which was supposed to make the fink/bin folder part of the $PATH variable for the current session.
The fink command ...
2
votes
2answers
182 views
How to permanently disable http_proxy
When I remove proxy from System/Network and apply it system wide it still remains when working in console. When I run:
env | grep proxy
it prints:
http_proxy=http://proxy.studnet.lan:8080
...
0
votes
2answers
616 views
PYTHONPATH environment variable
I have this in my ~/.profile:
export PYTHONPATH=/home/dev/python-files
In the python-files directory, I have a few projects cloned from git-hub (flask, curveship and py-vgdl).
Whenever I try to ...
2
votes
1answer
100 views
Getting Full User Name
How do I look up my full user name in Ubuntu? I want this information to propagate to the environment variables GIT_AUTHOR_NAME and GIT_COMMITTER_EMAIL.
10
votes
2answers
184 views
Desktop Files don't use seem to use $PATH correctly
I am creating .desktop files for use in the Unity Launcher.
I have my own location in my home directory where I put my executables (~/usr/bin/) which is correctly added to my PATH environment ...
1
vote
0answers
105 views
Change environment variables in debian/rules according to debian/control targets
I have this package mypackage which is already bundled for Ubuntu. For setting the compiler, debian/rules contains
DEB_CONFIGURE_SCRIPT_ENV += CC=gcc
I would now like to extend the package in that ...
3
votes
2answers
51 views
ubuntu spurious environment variable
I have a spurious path in my ~PATH~ environment variable in Ubuntu:
/usr/lib/lightdm/lightdm
I have no idea where it is set. I have checked these files:
/etc/environment
/etc/profile
...
2
votes
1answer
107 views
How can I specify the languages that apt-get uses?
At some point in my installation, I must've selected several languages as default. When I run sudo apt-get update, I got output similar to the following.
Ign http://ppa.launchpad.net quantal/main ...
0
votes
1answer
84 views
Difference between /etc/security/pam_env.conf and /etc/environment + making sudo read pam_env.conf
I struggle to see the difference between pam_env.conf and /etc/environment. To me they both do the same thing, with a difference syntax. The manpages were no help. So what is the difference?
...
1
vote
1answer
35 views
How do you append info to an environment variable?
The method export vname=value will override the original value. I want a way to append to the old value by colon.
Any idea how?
Thanks.
2
votes
1answer
139 views
PATH not working even after successfully modifying it
For some reason I am successful in adding new directories to my $PATH but when I run the commands in the terminal the $PATH doesn't summon them.
I modified the $PATH in the ~/.bashrc file, and added ...
1
vote
1answer
111 views
How can I re-order LD_LIBRARY_PATH?
How can I re-order LD_LIBRARY_PATH?
Edit:
I'm interested in LD_LIBRARY_PATH because I have this problem:
I can't update, upgrade and remove my app from kubuntu
and one of the error is due to ...
1
vote
3answers
101 views
How to find out where $MANPATH is set?
How can I find out in which configuration file the environment variable $MANPATH is set? Is there a way to backtrace the values?
I am aware of that I can grep through the whole file system using find ...
0
votes
1answer
348 views
Updating http_proxy environment variable
I recently changed my password corresponding to my username for my proxy. Hence I updated the apt.conf and /etc/environment files with my new password. However when I type
echo $http_proxy
or
...
1
vote
2answers
149 views
Why is sudo bash different from regular bash
Problem description : I am using something called play framework in my development which requires me to make the python script play available in the path. Hence I create a symbolic link in ...
0
votes
2answers
449 views
Why the value of $PATH is different for root and normal user?
for normal user I get :
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/monty/google_appengine
which is actually the ...


