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

learn more… | top users | synonyms

1
vote
1answer
1k views

NDK_ROOT enviroment variable defined but script does not see it

In my ~/.bashrc i have this: export ANDROID_SDK=~/Devel/android_dev_x64/sdk export ANDROID_NDK=~/Devel/android-ndk-r9d export NDK_ROOT=$ANDROID_NDK export ...
1
vote
1answer
258 views

Call shell script “inline” in another shell script

So the bottom line here is that I am trying to have one go-to script work to set environment variables (let's call it setenv.sh) that will be used in subsequent scripts. In Windows (I know, that is a ...
2
votes
1answer
229 views

How to know which processes have the DISPLAY variable set?

Sometimes I face some problems in display and mostly I do want to know which files or processes are using the DISPLAY environment variable. So how to list all processes that having DISPLAY set?
2
votes
1answer
81 views

bashrc shortcuts in Tmux

I have sets many shortcuts in .bashrc profile of local user, and they work properly. Currently on my 12.04 system but when ever I tried to used them in tmux, I always get the same response command not ...
6
votes
2answers
5k views

What is $DISPLAY environment variable

I am new to shell script NOT able to understand what is $DISPLAY environment variable. I am running Ubuntu 13.10 and using /bin/bash shell. I have connected two monitors. Questions: echo $DISPLAY ...
0
votes
3answers
123 views

Command line to add a directory to the PATH if it's not already there

In regular way to add a directory to PATH: PATH=$PATH:/new-directory Now the problem is if you add a new directory to the PATH then it will be added without checking if it's already in the PATH or ...
0
votes
1answer
73 views

How to combine two enviroment variables into one command?

I have an old pc and I installed Ubuntu 13. 10 on it. I also installed skype and the issue is that I have a huge audio latency or my webcam not work. I have work by replace 'Exec=skype' with: Audio ...
2
votes
1answer
111 views

Expanding environment variables in Nautilus

I have a "sandbox" folder on my 13.10 PC, which I use for anything along the lines of "testing", or if I'm updating a piece of code and want it to be completely separate from everything else. In order ...
1
vote
1answer
300 views

setting PATH to /etc/profile or /etc/environment does not work with sudo

I want to launch Intellij IDEA IDE via sudo idea.sh. sudo because IDE needs to manupulate files from /etc/share. idea.sh is placed at /home/<username>/<path>/bin/idea.sh. I tried to add ...
1
vote
1answer
681 views

How to solve old GLIB error

I am in the process of installing GTK+ but it needs various pre-requisites. These are glib - 2.0 >= 2.35.3 atk - >= 2.7.5 Pango- >= 1.32.4 gdk-pixbuf-2.0 >= 2.27.1 Now I upgraded my ...
0
votes
3answers
19 views

MBK_IN_PH command not found while working with Alliance cad 5.0

wanted to run commands : MBK_IN_PH = ap export MBK_IN_PH MBK_OUT_LO = spi export MBK_OUT_LO but getting command not found
4
votes
1answer
393 views

Why is /usr/local/games after /usr/games in the default PATH?

The default value of the PATH environment variable in Ubuntu (13.10, at least) for an administrator (user in the sudo group) after logging in to the desktop environment is: ...
1
vote
1answer
185 views

Setting JAVA_HOME

How do I set JAVA_HOME=/usr/lib/jvm ...E ? The instructions say to use INSTALL4J JAVA_HOME=/usr/lib/jvm/java-6-sun but I get an error that says: INSTALL4J: command not found I have downloaded ...
0
votes
2answers
91 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
45 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
107 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
72 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
73 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
548 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
1answer
806 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
171 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
122 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
897 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
219 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 ...
0
votes
1answer
234 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 ...
0
votes
1answer
492 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
113 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
111 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
48 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
100 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
246 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
528 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
589 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
18 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
38 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
341 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
0answers
105 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 ...
0
votes
0answers
78 views

CODEBLOCKS_DATA_DIR environment variable

I had installed CODE::BLOCKS in Ubuntu 12.04 and it was working jut fine until ~2 days ago when the program start to freezing out every ~10 sec. I decided to reinstall CODE::BLOCKS. First, I did: $ ...
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
151 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
170 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
2k 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
8k 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
44 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
153 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
141 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 ...