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

learn more… | top users | synonyms

0
votes
2answers
111 views

I can't log in after I inserted some variables in my environment file

I installed 12.04. Yesterday I tried installing tomcat server and java. There was some errors in that installation and when I tried to open my system after some time I couldn't login. At that time I ...
0
votes
1answer
52 views

java home will not set using /etc/environment

wowee....... echo 'export JAVA_HOME=/usr/' | tee -a /etc/environment open up new terminal echo $JAVA_HOME blank Why is it sooo hard to set a global env for all users without restarting? eve ...
0
votes
3answers
118 views

Strange autocompletion behavior

Well...I'm so confused, cause the only real problem in my case is freaking apostrophe ('). Situation: expanding PATH variable influence word completion, based on whether was apostrophes in additional ...
1
vote
0answers
139 views

How to increase waiting time for non responding programs?

I have installed a Ubuntu GNOME and found that I am getting lots of PROGRAM is not responding messages. I have either to "Force Quit" the program or "Wait" for it a little more. I've noticed that ...
1
vote
1answer
150 views

Assigning grep output to a variable

In a terminal I type: grep '<td><a href="http://www.blabla.cc' file.txt works fine. But if I type: var= `grep '<td><a href="http://www.blabla.cc' file.txt` I am unable to ...
0
votes
1answer
1k views

export PATH doesn't work correctly

I have a problem with $PATH export. The only place I found where I modify $PATH is /etc/environment: ANDROID_HOME="/opt/ADT/adt-bundle-linux-x86_64-20130522/sdk" ...
1
vote
2answers
1k views

How to use an environment variable of a remote host using scp?

I have two machine, host1 and host2. I would like to use an environment variable of host2, from a scp command from host1. For instance, use this kind of command from host1 : scp file ...
0
votes
1answer
313 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
165 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 ...
8
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
636 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
448 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 ...
3
votes
2answers
884 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
665 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
143 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
65 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
147 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
537 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
2k 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
1answer
42 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
2answers
516 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
152 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
210 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
230 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
63 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
4k 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
14k 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
161 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
39 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
187 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
136 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
192 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
85 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
318 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
149 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
498 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
448 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
158 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
20 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 ...