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

learn more… | top users | synonyms

0
votes
1answer
281 views

Why environment variable disappears after terminal reopen? [duplicate]

I've tryed to add environment variable in terminal: loom@loom:~$ export DOOM=/home/loom/doom/ loom@loom:~$ echo $DOOM bash: /home/loom/doom/: Is a directory Then I've closed terminal and reopened ...
1
vote
2answers
157 views

How to add a file somewhere in my $PATH list

How can achieve what you can see below? I read this question but did not succeed. My OS is Lubuntu 13.10 which is based in Ubuntu 13.10 You are technically ready to go, but there's one extra step ...
7
votes
2answers
1k views

HOME variable is not set

I have two servers, they're identical (I believe), production and staging servers. And I have upstart script in /etc/init/ folder. description "Discoure process" setuid deploy setgid deploy ...
0
votes
4answers
530 views

changing /etc/environment did not affect my environemtn variables

I'm very new to Ubuntu so please bare with me. I'm trying to install Euler expert system following those instructions to add the environment variable I edited my /etc/environment to become as ...
1
vote
1answer
412 views

How add mono to my PATH?

I want to install monodevelop-4.2.1 from source under Ubuntu 12.4.3 but when I execute : ./configure --prefix=pkg-config --variable=prefix mono it shows me that : configure: error: Can't ...
2
votes
1answer
824 views

Why doesn't JSLint/JSHint work in Ubuntu?

I installed as described here and other places, but after using npm to install jslint, jshint, neither will work. Running "jslint", I only get: /usr/bin/env: node: No such file or directory Is ...
1
vote
2answers
448 views

How we can change linux environment variable in python?

Let's say we are on a command line and we declare an environment variable: export x=100 When i go to python and type : os.environ['x'] = '100000' If I came back to command line x stays 100. Is ...
1
vote
1answer
140 views

What is the difference between a desktop environment and a shell?

I may be asking a basic question for many of you. What is exactly linux environment ? and what the relation between linux environment and shell? and what the relation between linux environment and ...
0
votes
1answer
62 views

system variable for directory shortcut?

Is there a way to create a variable CUSTOM_DIR, linked to the directory /home/user/folder1, It is that not only in the shell, but for every program, process etc. The CUSTOM_DIR refers to that ...
-1
votes
2answers
134 views

how can I set $PATH for compiler

I wrote this # include <stdio.h> int main () { printf ("Hello, World! \n"); return 0; } I tried to compile it using SciTE, it comes this cc -pedantic -Os -c hello.c -o hello.o -std=c99 ...
0
votes
2answers
457 views

Save enviroment PATH once I added one

I'm trying to add an environment path for android studio, and I've done the following steps: checking is there is already: echo $PATH add my path: export ...
1
vote
6answers
1k views

What are the Default $PATH Values?

On Mac OS X, the default $PATH values are: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin What are the default values on Linux?
0
votes
1answer
2k views

What does my PYTHONPATH contain?

I work on some personal python libraries and I need to display what PYTHONPATH contains and then manipulate it.
0
votes
0answers
20 views

Error about Environmental Variables

I have installed the program ROOT from the website of CERN nearly a year ago and later tried to manually uninstall it; however there are problems lingering and I get the error: bash: ...
0
votes
1answer
40 views

Why script doesn't see envvar while installing via Ubuntu Software Center?

I have a .deb package with configuration script which reads some environmental variable. This variable is added to /etc/environment file, and the system was rebooted. When I install the package from ...
0
votes
0answers
47 views

help changing an environmental variable

I need a little help with this syntax. Do I use the quotes? Do I add these variables to .bashrc or bash? Are bash and .bashrc the same file? Where is the .bashrc file? What is the "." leading the ...
0
votes
2answers
489 views

How to change environmental variable permanently?

I am trying to use third party packages in Python. To import all the modules I need to update PYTHONPATH. I read several blogs on it but still I have following questions unanswered. Is sys.path ...
0
votes
1answer
144 views

PATH variable to Apache OPENNLP OK but doesn't work

yesterday I installed in my Ubuntu AWS 12.04 (Amazon) micro istance OpenNLP and seemed working. Today when digiting opennlp:command not found Following suggestions found here: I modified my ...
2
votes
1answer
2k views

apt-get not using http_proxy in ubuntu 13.10

I just updated from Ubuntu 12.04 to 13.10 In 12.04, I used to set up my http_proxy variable in .bashrc and then use apt-get as follows sudo -E apt-get update The -E option in sudo used to make the ...
1
vote
1answer
199 views

Multiple possible interpreters in a shebang?

Trying to learn me some nodejs, I installed npm and the learnyounode module. Unfortunately, learnyounode tries to execute #!/usr/bin/env node and not #!/usr/bin/env nodejs -- as we have it setup in ...
0
votes
1answer
222 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 ...
2
votes
2answers
62 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 ...
3
votes
3answers
13k 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 ...
1
vote
0answers
160 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 ...
1
vote
1answer
38 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
53 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
173 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
133 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
254 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
189 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
80 views

Why is $PATH used as a variable?

Couldn't there be a config text file instead?
1
vote
0answers
80 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
294 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
143 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
3k 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
473 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
429 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
154 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
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
297 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
836 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
212 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
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
234 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 ...