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

learn more… | top users | synonyms

2
votes
0answers
130 views

Ensuring .profile gets executed when using nX

The $PATH I have when I run terminal in an nX session is different to that I have when I run terminal after logging on physically. The former is ...
3
votes
1answer
52 views

Environment var _

I send a printenv command in the commandline and I see one of the variables is the following: _=/usr/bin/printenv I now do this: mo@mo-Toshiba ~/Workspace $ printenv _ /usr/bin/printenv but when ...
30
votes
5answers
34k views

How to list all variables names and their current values?

Including not only $HOME, $PWD etc but any other you have defined.
8
votes
2answers
41k views

How to permanently set environmental variables PATH and M2_HOME in ubuntu for maven3?

I have downloaded the latest apache-maven3.zip file and extracted it to the folder: /home/gaurav/Java/maven3. I don't know how to set the environmental variables for maven - such as PATH and M2_HOME. ...
0
votes
1answer
117 views

http_proxy variable [duplicate]

I was following this guide to install Redmine on my server: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu it written there: Run the following commands to export your ...
0
votes
2answers
4k views

I have a problem when using “export” command

When I put sudo "export PROXY_LOCAL_NET_IP=10.113.35.108" I get the following error: sudo: export: command not found What should I do to resolve this problem?
2
votes
1answer
192 views

Lost PATH variable content

I was trying to add something to the PATH with : export PATH=/user/home/sbt/bin but I removed all of the content of PATH and I can not run any command on the terminal even ls ! So what should I do ...
3
votes
2answers
345 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
1answer
44 views

Update PATH variable during script execution

I am writing a script that installs a program. The problem is the program needs to have PATH variables set to install. How do I set PATH variables during the script execution and update the shell so ...
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 ...
4
votes
2answers
201 views

Program in $PATH not being found

I am running xubuntu 12.1, and am having some difficulty getting a program I have added to my path to execute. The program I am attempting to execute is scan-view, from Clang. I built Clang from ...
2
votes
2answers
10k views

How to set up environment variable properly?

I opened the /etc/environment and added the line ANDROID_SDK_HOME="/home/tom/android-sdk" but I tried echo $ANDROID_SDK_HOME but displayed nothing. I have JAVA_HOME in the same /etc/environment but ...
2
votes
1answer
907 views

Add directory to path for sudo

I know creating a .bashrc and adding PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/tools PATH=$PATH:/home/asco/adt-bundle-linux-x86_64/sdk/platform-tools will add those directories to my path. ...
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
1answer
3k views

How to change permanently the PATH with Ubuntu 12.04 LTS?

To add :/usr/local/go/bin to the PATH with Ubuntu 10.04 LTS (Lucid) and permanently change the PATH, I just edited the files /etc/environment and /etc/login.defs. And these modifications were OK both ...
0
votes
1answer
2k views

How do I set CLASSPATH variable for Tomcat in 12.10?

Previously, I have set the JAVA_HOME path using the terminal with the following command: export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-i386" >> ~/.bashrc Now, I want to set the CLASSPATH ...
1
vote
2answers
18k views

How to set JAVA PATH in Ubuntu 12.04?

So java -version give path not found. I have tried the following: Edit: ~/.bashrc ~/.profile /etc/environment bash.bashrc files and add to them the following: ...
0
votes
1answer
52 views

how to set a PATH of ProofPower in Ubuntu 12.04 [duplicate]

Respected Fellows, I am using a formal verification tool ProofPower in Ubuntu 12.04, but i don't that how can i set a PATH or environment variables in Ubuntu 12.04. My ProofPower bin path is : ...
5
votes
1answer
69 views

What is the difference that explains different results of different ways to assign values in a command-line?

What is the difference that explains the different results of these commands? a=2 echo $a set a=2 echo $a a=2; echo $a set a=2; echo $a
-1
votes
1answer
77 views

Why are the “bash” and the “source” commands behaving differently? [closed]

I'm using Mac OS 10.8. I ran the /sw/fink/bin/init.sh script using the bash command which was supposed to make the fink/bin folder part of the $PATH variable for the current session. The fink command ...
3
votes
2answers
9k views

How to permanently disable http_proxy

When I remove proxy from System/Network and apply it system wide it still remains when working in console. When I run: env | grep proxy it prints: http_proxy=http://proxy.studnet.lan:8080 ...
0
votes
2answers
17k views

PYTHONPATH environment variable

I have this in my ~/.profile: export PYTHONPATH=/home/dev/python-files In the python-files directory, I have a few projects cloned from git-hub (flask, curveship and py-vgdl). Whenever I try to ...
4
votes
1answer
666 views

Getting Full User Name

How do I look up my full user name in Ubuntu? I want this information to propagate to the environment variables GIT_AUTHOR_NAME and GIT_COMMITTER_EMAIL.
9
votes
2answers
821 views

Desktop Files don't use seem to use $PATH correctly

I am creating .desktop files for use in the Unity Launcher. I have my own location in my home directory where I put my executables (~/usr/bin/) which is correctly added to my PATH environment ...
1
vote
0answers
224 views

Change environment variables in debian/rules according to debian/control targets

I have this package mypackage which is already bundled for Ubuntu. For setting the compiler, debian/rules contains DEB_CONFIGURE_SCRIPT_ENV += CC=gcc I would now like to extend the package in that ...
3
votes
2answers
95 views

ubuntu spurious environment variable

I have a spurious path in my ~PATH~ environment variable in Ubuntu: /usr/lib/lightdm/lightdm I have no idea where it is set. I have checked these files: /etc/environment /etc/profile ...
1
vote
1answer
717 views

How can I specify the languages that apt-get uses?

At some point in my installation, I must've selected several languages as default. When I run sudo apt-get update, I got output similar to the following. Ign http://ppa.launchpad.net quantal/main ...
1
vote
1answer
331 views

How to I insert a command into a script located on a remote server?

I want to insert rm $0 in a script (/home/user/config-script) located on remote server with echo "rm $0" >> /home/user/config-script with expect. But fail because expect interprets $0. ...
1
vote
1answer
1k views

How can I install nbconvert?

I tried installing nbconvert via the instructions on their readme. The curl line and the pip install line worked flawlessly, but I can't decipher what is meant by: You will need to either put the ...
0
votes
1answer
256 views

Difference between /etc/security/pam_env.conf and /etc/environment + making sudo read pam_env.conf

I struggle to see the difference between pam_env.conf and /etc/environment. To me they both do the same thing, with a difference syntax. The manpages were no help. So what is the difference? ...
1
vote
1answer
45 views

How do you append info to an environment variable?

The method export vname=value will override the original value. I want a way to append to the old value by colon. Any idea how? Thanks.
3
votes
1answer
1k views

PATH not working even after successfully modifying it

For some reason I am successful in adding new directories to my $PATH but when I run the commands in the terminal the $PATH doesn't summon them. I modified the $PATH in the ~/.bashrc file, and added ...
0
votes
1answer
314 views

Custom environment variable script

I installed ROOTv5.34.03 and it comes with a script to set the necessary environment variables. The installation guide tells me to just run the script but that only sets the environment for that ...
1
vote
1answer
539 views

How can I re-order LD_LIBRARY_PATH?

How can I re-order LD_LIBRARY_PATH? Edit: I'm interested in LD_LIBRARY_PATH because I have this problem: I can't update, upgrade and remove my app from kubuntu and one of the error is due to ...
4
votes
2answers
3k views

How to pass results of bc to a variable

I'm writing a script and I would like to pass the results from bc into a variable. I've declared 2 variables (var1 and var2) and have given them values. In my script I want to pass the results from ...
2
votes
3answers
1k views

How to find out where $MANPATH is set?

How can I find out in which configuration file the environment variable $MANPATH is set? Is there a way to backtrace the values? I am aware of that I can grep through the whole file system using find ...
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 ...
4
votes
3answers
15k views

How do I reset proxy in terminal to automatic if not connected via proxy

I tried to reset proxy of the terminal by some commands but it doesn't happen and automatically switches back to this proxy 172.16.0.16 (which apparently was my college proxy). I checked in my ...
1
vote
2answers
361 views

Why is sudo bash different from regular bash

Problem description : I am using something called play framework in my development which requires me to make the python script play available in the path. Hence I create a symbolic link in ...
1
vote
2answers
1k views

Why the value of $PATH is different for root and normal user?

for normal user I get : /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/monty/google_appengine which is actually the ...
1
vote
0answers
128 views

Make environment variable accessible to application [closed]

In order to get LaTeX to work, I have set the environment variable TEXINPUTS, which includes a path to certain inputted files. It works fine if I'm calling latex (or rubber, or pdflatex) from the ...
4
votes
2answers
71 views

How do you print/recall the definition of a function in bash

I can define and print the contents of variable called my_var like this: my_var="hello" echo $my_var but if I define: my_funct {echo "hello";} how can I recall my function's definition later on? ...
3
votes
1answer
2k views

Changing $PATH doesn't work?

I was trying to set PATH in etc/environment file, but after adding the desired path the $PATH is showing an error in terminal: bash: ...
1
vote
2answers
372 views

Environment variable is set but not accessible on server

I have a Java program which accesses some property files for it to work through a path which is set as an environment variable. I set the path using export command. The Java jar file which is the ...
13
votes
3answers
35k views

How to configure ADB access for Android devices?

I'm using Ubuntu 12.10 and I have installed Android SDK, set it's path in my user .bashrc and it works. The problem is that my phone requires adb to be ran by root for permissions, but running adb ...
3
votes
3answers
2k views

Cannot use “./” to execute a shell script

Maybe someone here would be able to help me out. Have installed Ubuntu 12.04 LTS (kubuntu) on two machines. The .bashrc and .bash_profile files are identical as the file structures on each machine is ...
0
votes
1answer
43 views

add platform to ubuntu

I am new in Ubuntu (come from Windows 7), i want to know how can i add environment variable in Ubuntu, because the platform where i use exaggerate "To compile and run SCA composites with OW2 FraSCAti, ...
3
votes
2answers
59 views

I want to pass an argument into a variable?

I am very new to the Linux environment, and I am stuck with a situation. What I want to do is to pass the command test -s $testFile to a variable, like, say "tes" Example: tes="test -s $testFile"
2
votes
2answers
516 views

java development on linux [duplicate]

Possible Duplicate: How do I install Oracle Java JDK 7? I need help on how can I install java oracle 7, netbeans and tomcat on ubuntu platform. I 'm new to ubuntu, totally zero knowledge on ...
0
votes
2answers
571 views

How to disable uefi variables

I need to disable uefi variables when booting from live usb. How do I do this? I think that this is done through setting noefi, so if this is the right approach, how do I do this? I've tried from ...