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

learn more… | top users | synonyms

0
votes
1answer
189 views

Troubles with permissions of a new user

I want to create a new user and give him possibility to use git. So, I've installed git: sudo apt-get install git After that I've created a user: sudo useradd -d /home/developer -s /bin/bash -g ...
1
vote
2answers
58 views

How to get the directrory name in shell script

I have a script which sets some environment variable to paths: export VAR1=/home/xyz/DIR_IN_WHICH_THIS_FILE_EXISTS export VAR2=$VAR1/abc/qwe ... Can I use something to get the ...
2
votes
0answers
30 views

Use variables in Nautilus location bar?

Is it possible to use variables (like $JAVA_HOME) in the Nautilus location bar? I think this will be useful to access certain locations easily.
0
votes
2answers
3k views

Adding custom path by updating ~/.profile with not working

I have altered my ~/.profile file by adding the following: PATH="/user/share/android-sdk-linux/tools:$PATH" I then log off and log in again, but the path is not added to the $PATH environment ...
2
votes
2answers
9k views

Error: JAVA_HOME is not defined correctly - after maven installation

I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc: export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH This looks a little bit strange but it's really my path. After ...
0
votes
0answers
47 views

/etc/environment with UsePAM set to no

I've disabled password logins to my computer and have set usePAM no in sshd.conf. My understanding is that /etc/environment will now not be read (because PAM is disabled). Is this true and if so, ...
1
vote
0answers
155 views

Reload http_proxy, no_proxy

I am running Ubuntu with Awesome WM. I have confirmed in chromium, I can use the environment variables http_proxy and no_proxy to control the proxy chromium uses. I don't think chromium reads these ...
0
votes
0answers
148 views

How to set the SSH variable for an existing `ssh-agent` process?

gnome-session starts ssh-agent: sds 2104 1993 0 13:06 ? 00:00:00 gnome-session --session=ubuntu sds 2142 2104 0 13:06 ? 00:00:00 /usr/bin/ssh-agent /usr/bin/dbus-launch ...
0
votes
0answers
94 views

application settings and environmental variables

I was perusing an article on environment variables on wikipedia: http://en.wikipedia.org/wiki/Environment_variable One of the environment variables is PATH and you can access this environment ...
1
vote
1answer
36 views

How to make applications save dotfiles at a specified path?

Currently, all my config dotfiles and dotfolders (e.g. .cache,.adobe,.compiz) are in my $HOME folder. Is there a environment variable that I can specify which will make all applications save their ...
0
votes
1answer
50 views

lock var lib folder

Hi I installed a program ant between install it disconnected from internet and when I want to install program i can not and give this error what shoud I do? Could not get lock /var/lib/dpkg/lock - ...
1
vote
1answer
144 views

emacs when run from the Applications menu (via. desktop setting) doesn't load environment variables

So when I invoke emacs from the terminal, all my environment variables are loaded correctly from .bashrc. However, when I load emacs from the Ubuntu Application menu (by invoking the ...
1
vote
2answers
128 views

What happens if I manually change the USER environment variable

After running env in the terminal to check if some of my other variables were persistant across settings I noticed the USER=xxx environment variable. I've had to reinstall Ubuntu before after fooling ...
2
votes
0answers
224 views

How to make CFLAGS work with the dash shell?

My impression is that while setting the CFLAGS variable is effective when bash is the default shell, it doesn't make an effect with dash (the Debian Almquist shell). First of all please correct me if ...
4
votes
2answers
184 views

Something wrong with my `.profile`

I recently installed a few softwares and needed to add their bin/ directories to my PATH. Nothing abnormal so far. But I decided to be smart about it, and rewrote a part of my .profile so I didn't ...
0
votes
3answers
79 views

Why is $PATH used as a variable?

Couldn't there be a config text file instead?
1
vote
0answers
71 views

Difference in the behavior of executable depending on where executed

I am trying to run repo from my home directory (/home/jeffrey). The repo binary is in the bin directory under my home directory (/home/jeffrey/bin). The bin directory is in PATH - I understand it ...
0
votes
1answer
266 views

Java not finding libraries in CLASSPATH

I have a JAR file, which has many dependencies (ApacheCommons stuff mostly). When I put all those JAR's in the same directory as my main JAR, everything works fine. But that makes a mess and it also ...
0
votes
1answer
88 views

Why does Apache2 disable DISPLAY environment variable?

Is there any configuration file to modify in order to enable the DISPLAY environment variable before apache2 makes the call to my cgi-script?
0
votes
1answer
126 views

Set command can't handle lines constituting of a \n (word/line counting script)

I have a problem with execution of a while loop, I have found out that the problem involves the execution of the set command, the assigment of the \n character to an environmental variable ...
3
votes
3answers
2k views

Add directories to $PATH without repeating yourself

My shell is zsh and OS is Ubuntu 13.04 I need to add directory to $PATH to make it work in following places: In graphical environment(Unity) (such as startup applications, gmrun program that runs ...
1
vote
1answer
422 views

Why this .pam_environment setting prevents me from logging in? [duplicate]

I'm trying to move things from my .bashrc to .pam_enviroment because of this. I've put the following into my .pam_environment but this prevents me from logging in because there should be some mistake. ...
0
votes
1answer
398 views

Why Ubuntu doesn't load settings from my .bashrc/.profile for apps not started from bash? [duplicate]

At other and previous distros it was common for me to have the environment setup in .bashrc/.profile applied globally, whether I started applications from bash or not (IIRC). Now when I start ...
1
vote
1answer
148 views

Ubuntu .pam_environment for non-login shell

I remember in the past, we have two place to set env variables for Ubuntu Login shell - ~/.profile Non login shell - ~/.bashrc But now according to the doc [1], they are not recommended anymore. ...
0
votes
0answers
19 views

adding directory to path environment variable doesn't remain in path [duplicate]

I have been trying to get a program called "passenger-memory-stats" to run as the super user. The program is installed in the following directory: /usr/local/rvm/rubies/ruby-1.9.3-p327/bin/ruby . I ...
0
votes
0answers
20 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
85 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
262 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
615 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
168 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 ...
0
votes
2answers
1k 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
1k 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
203 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 ...
1
vote
2answers
1k 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
3k 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
1k 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
84 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
279 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
193 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
77 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
360 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 ?
4
votes
1answer
1k views

~/.pam_environment doesn't work since Ubuntu 13.04

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
56 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
97 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
187 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
136 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
593 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 ...