A set of dynamic variables that can affect the running processes.

learn more… | top users | synonyms

0
votes
0answers
21 views

Where to set environment variables for all users [duplicate]

Apologies in advance if this question is very simplistic! I have Ubuntu 12.04. I manually installed Maven by downloading the binary tarball file and extracting it to the /opt/ folder. I then set the ...
1
vote
0answers
88 views

Is it possible to install multiple versions of octave and then choose by setting enivronment variables?

I use Ubuntu 12.04LTS on an i5 with 8G RAM. I was wondering whether it is possible to install two different versions of an application, specifically octave-3.2.4 and octave-3.6.4 (in different ...
1
vote
1answer
321 views

How to set environment variables for anacron?

I'm currently tinkering with anacron 2.3 on a Ubuntu 12.04 (Precise) installation. I have been trying to make use of the START_HOURS_RANGE and RANDOM_DELAY env vars. My /etc/anacrontab looks like ...
0
votes
2answers
942 views

Where should I add/modify environment variables?

I would like to edit my .bash_profile file. However it appears that in Ubuntu (and perhaps other Debian distros) this is named as .profile. However I cannot seem to find the expected variables like ...
0
votes
2answers
236 views

How to set environemt variable without rebooting Ubuntu?

Problem: During Android development, in order to add ADB path to environment variable; I did following things in short- gedit /etc/environment - Added my desired path in the file such as ...
1
vote
2answers
2k views

PATH-variable gets always reset. How to fix that?

A little time ago, I found out, that I can create custom commandterminals with expanding the PATH-variable. Unfortunately, it gets always resettet, when I close the terminal and opens it again. Do ...
5
votes
1answer
2k views

Why is overriding the LANG environment variable not changing the language for me?

I'm trying to run an application in another language as my current environment. To start out simple, I wanted to change the language of ls. Here's what I read all over the place (see below for ...
1
vote
0answers
240 views

javac cannot found, even after adding non-standart path to it in $PATH

Ubuntu 12.10, 32bit Problem too damn simple: I have a NTFS partition and unpacked from .tar.gz jdk on it. All I need from bash, is to see javac compiler, that is located in directory ...
2
votes
2answers
2k views

How to set default environment variables for other users?

I installed postgres under Lubuntu 13.04. When I try to run it: sudo -u postgres psql it gives me this error: psql: could not connect to server: No such file or directory Is the server running ...
0
votes
2answers
6k views

Ubuntu adding path/Environment variables

I am trying to install apache maven 3 in Ubuntu 12.04 lts. What I did was open the terminal then I typed the following commands export M2_HOME=/usr/local/apache-maven/apache-maven-3.0.5 [Then ...
0
votes
2answers
2k views

How to Import a Variable from a Script?

I want to get a variable from another script, as demonstrated in http://stackoverflow.com/questions/5228345/bash-script-how-to-reference-a-file-for-variables However, the answer uses source command ...
1
vote
1answer
114 views

Environmental variable

I am newly for Ubuntu and I just downloaded mulval software packet to run it on my Ubuntu, but I still not clear that the instruction say this: "The environmental variable MULVALROOT should point ...
2
votes
3answers
340 views

How to declare functions as variables

I want to declare variable with pwd() function, which will give me the current path. I want to use pwd() function as ${pwd} variable, something like that. How I must write? Thanks!
3
votes
2answers
2k views

PATH is not affected by .pam_environment

Running Ubuntu 13.04, I'm trying to add variables to PATH for the session, which is recommended to do inside .pam_environment, but nothing seems to work. Here's what it looks like: JAVA_HOME ...
0
votes
1answer
227 views

Editing MANPATH from /etc/environment

Having installed TeX Live on my system (by downloading and running the script from TUG's website: http://www.tug.org/texlive/acquire-netinstall.html), I tried editing the MANPATH variable by adding ...
0
votes
1answer
100 views

How to create a system-wide environmental variable? [duplicate]

I want to set an environmental variable that all users will have, where do I do this? This is for users who login and also for certain processes that run under an account.
0
votes
1answer
465 views

How I can I unsource my environment?

I have source my environment and some environment variables were set, but i need to shift back to my previous environment, how should i do it ? Is there any way to move to the last environment ?
2
votes
1answer
1k views

~/.pam_environment doesn't work since Ubuntu 13.04 [duplicate]

I have this line in my ~/.pam_environment: PATH DEFAULT=${HOME}/bin:${HOME}/.local/bin:${PATH} and it worked perfectly well on Ubuntu 12.10, but since I've updated to 13.04 it is ...
0
votes
1answer
65 views

check as a root if a special path set

How do I check as a root if a special path set? This command sudo echo $ANDROID_SDK_HOME will show the path's value for a normal user and not for a root.
0
votes
1answer
103 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
200 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
3answers
1k 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
1answer
152 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
4k 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
748 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
619 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
2k 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?
0
votes
2answers
114 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
3answers
371 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
538 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 ...
1
vote
1answer
1k 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
371 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
145 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
55 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 ...
39
votes
5answers
53k views

How to list all variables names and their current values?

Including not only $HOME, $PWD etc but any other you have defined.
11
votes
2answers
54k 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
1answer
153 views

http_proxy variable [duplicate]

I was following this guide to install Redmine on my server: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu it written there: Run the following commands to export your ...
0
votes
2answers
5k views

I have a problem when using “export” command

When I put sudo "export PROXY_LOCAL_NET_IP=10.113.35.108" I get the following error: sudo: export: command not found What should I do to resolve this problem?
2
votes
1answer
244 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 ...
3
votes
2answers
432 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
48 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 ...
1
vote
2answers
3k views

HOME/bin not a valid identifier

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 am learning as I go ...
4
votes
2answers
237 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 ...
6
votes
2answers
14k 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 ...
2
votes
1answer
1k 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. ...
3
votes
1answer
6k 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
4k 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
3k 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 ...
1
vote
2answers
23k 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
55 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 : ...