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

learn more… | top users | synonyms

3
votes
2answers
12k 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 ...
1
vote
2answers
22k 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
835 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
917 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 ...
2
votes
0answers
263 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
105 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
880 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
355 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
310 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
47 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
2k 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
321 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
637 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
4k 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
6k 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
17k 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
367 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 ...
2
votes
1answer
1k views

How to set new value for existing environmental variable

I have a environmental variable called "PATH" which has a value, now I want to append a new value to the existing value of a variable "PATH" and to set it permanently.
1
vote
0answers
136 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
82 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
425 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 ...
16
votes
3answers
45k 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
3k 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
45 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
575 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
595 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 ...
3
votes
3answers
5k views

Add path to PATH environment variable for www-data

I'm trying to add /usr/local/texlive/2012/bin/x86_64-linux to the PATH environment for my Apache user (www-data) after installing TeX Live 2012 manually. I edited my /etc/environment export ...
2
votes
2answers
2k views

Can't Set Environment Variables in ~/.profile

All, I need to set environment variables in my ~/.profile since I am running a program (QtCreator) that doesn't start a bash shell. I cannot for the life of me get it to work though. QtCreator will ...
2
votes
1answer
303 views

Why does running `time` and `/usr/bin/time` give different results?

Why does running time and /usr/bin/time give different results? /usr/bin/time thomas@tbdesktop:~$ /usr/bin/time -f "Elapsed time:%E" wc /etc/hosts 9 25 224 /etc/hosts Elapsed time:0:00.04 time ...
2
votes
1answer
2k views

How to reset LD_PRELOAD

I've done the following command to set the path for LD_PRELOAD. But it's the wrong path. export LD_PRELOAD=/home/ Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is ...
6
votes
2answers
17k views

How set CLASSPATH variable for a folder in Ubuntu

I know that export CLASSPATH=/usr/local/java/tools.jar:$CLASSPATH will add tools.jar to the CLASSPATH, but i want to set folder to the CLASSPATH like this export ...
5
votes
4answers
306 views

Pulling multiple alternatives from a variable in a case condition

I'd like to use variable as condition in case statement. Something similar to: #!/bin/sh ALLOWED_SERVICES=tomcat6|james; case $1 in $ALLOWED_SERVICES ) service $1 restart ;; * ) ...
8
votes
2answers
2k views

Is there a difference between “.” and “source” in bash, after all?

I was looking for the difference between the "." and "source" builtin commands and a few sources (e.g., in this discussion, and the bash manpage) suggest that these are just the same. However, ...
1
vote
1answer
834 views

NoClassDefFoundError: org/apache/derby/tools/ij

Derby says to install to opt, so I did: thufir@dur:~$ thufir@dur:~$ ll /opt/db-derby-10.9.1.0-bin/lib/derbytools.jar -rw-r--r-- 1 root root 174932 May 31 12:19 ...
1
vote
1answer
13k views

Setting up JAVA_HOME and CLASSPATH correctly on 12.04

I am having some issues with Java (OpenJDK Java 7 Runtime) on Ubuntu 12.04, and just want to make sure I have my CLASSPATH and JAVA_HOME variables set correctly. ...
2
votes
1answer
956 views

No such file or director in $PATH

I wanted to be able to run program from anywhere without adding ./, so I edited ~/.bashrc to contain this line export PATH=$PATH:. Now when I type echo $PATH I get ...
16
votes
0answers
4k views

How do I set a path permanently? [duplicate]

Possible Duplicate: How to add a directory to my path? I am trying to install the play framework permanently. http://www.playframework.org/documentation/2.0.2/Installing export ...
2
votes
1answer
425 views

$PATH from /etc/environment overwritten

I'm upgrading a bunch of installations of 10.04 to 12.04. In 10.04 I used to define system wide env. variables in /etc/environment. It works, but not for $PATH that seems to be overwirtten. I don't ...
2
votes
2answers
787 views

What does “export” do?

I never understand what "export" does. For example, what's the difference between these two? PYTHONPATH=/home/myaccount/ & export PYTHONPATH and PYTHONPATH=/home/myaccount/ One with export ...
3
votes
3answers
9k views

Environment variables - where are they stored by linux, how do I change them and is it safe to do so?

I am trying to configure a build from source an old version of gcc on my dev machine. The documentation highlight several environment variables that need to be changed in order to do this. I was ...
1
vote
3answers
2k views

PATH variable resets with reboot

Just as the title indicates my PATH variable resets after every reboot. I read that I have to edit my bashrc file's PATH variable, but I don't have anything there that suggests anything related to the ...
2
votes
2answers
3k views

Why isn't adding a path to “.profile” working?

I am using Lubuntu 12.04. I am having problems setting the path variable for my application. I am trying to set the path variable in the .profile file, however after adding the path when I echo ...
1
vote
1answer
2k views

“FreeType NOTFOUND” error when trying to build Okular from source

I am trying to build Okular from source. I checked out commit 8ab768 from Tue Jul 10 17:45:23 2012 +0100. However, FreeType seems to be missing in some path variable. Here is the output from cmake. $ ...
9
votes
2answers
8k views

How do I set persistent environment variables for root?

To create persistent environment variables, I add the script file to /etc/profile.d directory, for example: # my script export MY_VAR=var_value This works properly for current user: ...
0
votes
1answer
286 views

How to read the password from variable?

I am trying to move my file to another system which is located in some other place, with this command: rsync -avrz src destination It works fine. But what I need is to put this command in shell ...