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

learn more… | top users | synonyms

10
votes
2answers
67 views

What is the $BASH_COMMAND variable good for?

According to the Bash manual, the environment variable BASH_COMMAND contains The command currently being executed or about to be executed, unless the shell is executing a command as the result of ...
0
votes
0answers
21 views

How to set environment variable in Eric Python IDE

I have no problem running a Python script from the terminal, but in Eric Python IDE, I am getting this error: ImportError libcudart.so.6.0: cannot open shared object file: No such file or directory ...
0
votes
2answers
4k views

Updating http_proxy environment variable

I recently changed my password corresponding to my username for my proxy. Hence I updated the apt.conf and /etc/environment files with my new password. However when I type echo $http_proxy or ...
1
vote
1answer
19 views

`TERM` environment variable not exported from `.profile`?

I have this in my .profile (I'm running Ubuntu 12.04): export TERM="xterm-256color" The variable seems not exported or be invariably later overwritten as TERM="xterm". A test with Gnome Terminal: ...
0
votes
2answers
30 views

How do I set environment variables through a keyboard shortcut?

I have a script that increments an environment variable, but it only works if I run it by perpending it with "source" or with a ".". Unfortunately, this means that if I attempt to bind it to a key, I ...
2
votes
0answers
33 views

How to start/configure pulseaudio remotely with ssh?

I have a remote machine to which I can ssh. On the remote machine there is a program that uses pulse audio to get input from a USB microphone attached to the remote machine. This setup works fine when ...
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
1answer
21 views

variable.sh is not exporting the variable using terminal

I want to export many paths using a .sh script. after running it nothing is exported I don't know why. so if anyone can advise. This is the script used: #!/bin/bash txtrst=$(tput sgr0) # Text reset ...
0
votes
2answers
16 views

why everything is reverted back in PATH env variable after reopening shell?

As far as I know PATH is not a temporary variable. And when you reopen your terminal it should work as before. In my case it's not. What I do is to add another path to $PATH: export ...
3
votes
2answers
223 views

Why I obtain this error when I try to perform this simple bash script?

I am following this tutorial to correctly execute Aptana Studio on my Ubuntu 14.04: Command menu in aptana studio 3 is not working in ubuntu 14.04 So I have installed the Oracle JRE and finnally I ...
20
votes
3answers
37k views

BASH script to set environment variables not working

I've written the following script to set some environment variables when needed. #!/bin/sh export BASE=/home/develop/trees echo $BASE export PATH=$PATH:$BASE echo $PATH Below the command and the ...
1
vote
1answer
5k 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
2answers
24 views

How to bring “.bashrc” in effect without logging out or Restarting the current session?

I am basically using .bashrc for adding environment variables. Each time I add a new Environment variable, I have to log out the current session and log in again to bring the changes in effect. Is ...
0
votes
1answer
17 views

What is the default values of KMP_AFFINITY variable?

I was playing with the KMP_AFFINITY variable in my program and forgot to back-up the previous value. Now the performance of my C++ program has fallen to 50%. Can anybody tell me what is the default ...
2
votes
1answer
174 views

Why can't a process see environment variables set in /etc/environment?

I defined several environment variables in /etc/environment, but a process (build started by TeamCity) cannot see their values. I don't know what I'm doing wrong here.. this is the content of my ...
9
votes
5answers
830 views

How to open a program typing directly its name on the terminal? [duplicate]

I have just recently installed Light Table downloading it from the git repository, and followed the instructions on this website to create a desktop launcher. Now I want to run the program by ...
0
votes
1answer
66 views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
7
votes
3answers
9k views

Add bash script folder to path?

I have some bash scripts in an application folder that I'd like to use as if they were on my path. If they were straight-up applications, I'd just add the directory to ~/.bashrc, but these are ...
0
votes
1answer
25 views

problem to update bash profile

Each time i work with a tool named criu, i set the path variable: PATH=$PATH:/home/th/criu-1.3-rc2; export PATH to be able to run criu dump but when I close the terminal and open it, it does ...
0
votes
0answers
14 views

Environment Variable - how does properly set them (bashrc or profile) [duplicate]

I am very new in Ubuntu and I am lost about Environment Variable. I have read some Forums but I didn't understand yet. If I type java -version I got the java confirmation but if I type echo ...
4
votes
1answer
8k views

libxml2.so.2 No version information available

I repeatedly get the following error when using GRASS GIS and I think a few other programs: /usr/local/lib/libxml2.so.2: no version information available ... As far as I can tell I have libxml2 ...
1
vote
2answers
31 views

Can the PATH variable be corrupted?

I installed rbenv, a ruby version management program. I looked in the .bashrc file and noticed that the path variable was changed as below: export PATH="$HOME/.rbenv/bin:$PATH" I think the ":$PATH" ...
1
vote
1answer
43 views

Difference between $LOGNAME and logname

when echo $LOGNAME or logname commands run normally get same result like following: pandya@pandya-desktop:~$ echo $LOGNAME pandya pandya@pandya-desktop:~$ logname pandya But I found their ...
3
votes
2answers
344 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
2answers
35 views

Echos, variables, and help with this question

The book Learning The Bash Shell says- "Notice that we used double quotes around variables (and strings containing them) in these echo examples. In Chapter 1, we said that some special characters ...
1
vote
2answers
2k 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 ...
0
votes
0answers
20 views

$DISPLAY environment variable changes upon (almost) every reboot

I am facing a very strange problem. I have a one display connected to my PC. However the $DISPLAY variable changes almost every time I reboot. For now it is :0.0, but before reboot it was :1.0. There ...
0
votes
0answers
41 views

How to set environmental variables for LuaSocket in Ubuntu?

I have installed the LuaSocket(luasocket-2.0.2.tar.gz) using this manual. But while performing the commands to require function to gain access to whatever module you need as below: socket = ...
0
votes
1answer
111 views

How to configure path or set environment variables for installation?

I'm aiming to install APE in Ubuntu 14.04 LTS, a simple code for pseudopotential generation. I'm having this error message while running ./configure: checking for gsl-config... no checking for GSL - ...
1
vote
2answers
136 views

How to include environment Variable in launcher for icon

This is an extension to the question how to include an environment variable in the launcher? . This question explains how to use the environment variable for the Exec part of the .desktop file but not ...
1
vote
2answers
287 views

When I use ZSH, how do I set PATH in /etc/profile.d?

I'm using zsh as my shell, and I'm trying to configure my environment. I usually define my $JAVA_HOME variable by creating a file: /etc/profile.d/java.sh with the following content export ...
20
votes
4answers
3k views

Why does “A=10 echo $A” not print 10?

This command: A=10 echo $A prints an empty line. Why not 10? Why doesn't the in-place temporary environment setting work? I want to know the reason and explanation rather than solution. I used ...
0
votes
0answers
32 views

How can I see environment variables defined in .profile after lauching sudo codeblocks?

I am developing code with C++ in code::blocks. Because my code needs to access mice devices I launch code::blocks with sudo as superuser in an xterm I opened first. In the code I would like to read ...
0
votes
1answer
28 views

Why do I not have the $MAIL environment variable?

I read that the $MAIL shell environment variable is one of the most common ones, and stores the location of my mailbox file, where my emails are stored. I looked into the /var/spool/mail and ...
4
votes
2answers
3k views

Is there a GUI to edit the PATH variable?

There's a GUI in Windows to edit the path variable. I was wondering if there's something equivalent in Ubuntu to do the same.
3
votes
3answers
274 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 ...
1
vote
2answers
72 views

What are the standard Environment variables ($) in Ubuntu?

I know some useful environment-variables like $HOME, $UID, $BASH, $LOGNAME etc. which is useful to get information in terminal/command-line with using echo(ex: echo $LOGNAME) I want to know what are ...
0
votes
1answer
75 views

Bash script not adding variables to session [duplicate]

I have a bash script that I have added as a startup application. It does a bunch of exports and alias assignment. #! /bin/bash alias devhm='cd ${DEV_HOME}; ll'; alias wlhm='cd ${WL_HOME}; ll'; alias ...
4
votes
3answers
701 views

Tomcat does not recognize JAVA_HOME

I've installed Ubuntu 14.04 Server, extracted JDK1.8u5 and Tomcat7, and added the following to .profile (I also tried adding it to .bashrc with similar [non-] results): export ...
0
votes
1answer
27 views

How to set the environmental variables in ubuntu to install lua?

Great day guys,I am trying to install the Lua on ubuntu.Inorder to set the environmental variables for Lua how can i procede?Thanks in advance
1
vote
1answer
54 views

Solving $PATH obfuscation by /bin/sh (dash)

This question is a follow-up from http://unix.stackexchange.com/questions/126955/percent-in-path-environment-variable. I post it here, since it is more distro-specific. The shell used by default for ...
1
vote
1answer
179 views

Bash script doesn't execute command from PATH

I have this simple script: #!/bin/bash echo ${HADOOP_HOME} $(hadoop fs -ls) The output is: /opt/hadoop-0.20.2-cdh3u2 ./hello.sh: line 3: Found: command not found So bash definitely sees ...
0
votes
0answers
43 views

Apache envvars from external file

I want to have my global environment variables located in /etc/environ loaded in apache2 to prevent duplication between /etc/environ and /etc/apache2/envvars. I've seen that other operating systems ...
11
votes
2answers
15k views

Environment variables when run with 'sudo'

As example to my question, my ~/.bashrc file contains this lines: > export LD_LIBRARY_PATH=/opt/intel/mkl/lib/ia32:$LD_LIBRARY_PATH > export LD_PRELOAD=/opt/intel/mkl/lib/ia32/libmkl_core.so ...
14
votes
2answers
6k views

What are “$PATH” and “~/bin”? How can I have personal scripts?

What is $PATH? How can I have commands/programs which are only available for me? I have seen this path ~/bin mentioned before, but what is it used for, and how do I use it?
7
votes
2answers
542 views

Terminal prompt messed up after changing value of PS1

I carelessly entered a command in the terminal that should have been in a shell script: export PS1=$PATH:~/drush23/drush/ now in my terminal instead of this: ubuntu@ip-10-16-134-18:/home/ubuntu$ ...
4
votes
2answers
166 views

Use system environment variable for snort.conf HOME_NET setting

I'm setting up a mass deployment image that includes snort. Since I don't know the network address range that each image will reside on I thought about using an environment variable to hold the ...
0
votes
0answers
27 views

Environment variable spoiled

In ~/.profile I have this: . "$HOME/projects/devenv.sh" In $HOME/projects/devenv.sh I have: BASEDIR=$(dirname $0) export APILIB_CONFIG="$BASEDIR/apilib.conf" echo "$APILIB_CONFIG" When I open a ...
0
votes
2answers
144 views

Adding JAVA_HOME (JDK) in .bashrc

I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable. In ~/.bashrc I added: # Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 ...
0
votes
0answers
73 views

How to get write permission on /etc/environment?

I want to add mysql Connector jar file to classpath and by browsing through the net. I read that a global way to do it is to update the /etc/enviroment but the file opens as readonly. What I don't get ...