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

learn more… | top users | synonyms

1
vote
1answer
25 views

how to insert a path front of path environment variable

here is my $PATH variable. /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games when i want to add ./ to the PATH by placing export PATH=$PATH:./ i got like ...
2
votes
1answer
51 views

How do I get Ubuntu to use Anaconda's python instead of the standard /usr/lib/python…?

I installed Anaconda using instructions provided on the main website, which are similar to those that can be seen here: Installing Anaconda python on ubuntu However, I found that I had to manually ...
-1
votes
0answers
14 views

Unable to connect Eclipse to ndk, .bashrc and .bash_profile are both empty

I'm trying to connect my Eclipse to ndk but i dont seem to have the option of editing my C/C++ build path in preferences to connect that way as well as stated my .bash files are blank. All help is ...
0
votes
0answers
23 views

Add a bunch of exe files in wine and edit environement variables

Disclaimer : Noob here I have installed a software using wine in ubuntu 14.04 . I have 2 issues : The software requires I create a new environment variable and add the path of a certain file. In the ...
0
votes
1answer
23 views

need help installing AptUrl or changing the enviromental variable

I understand how to get the file to install, I have to type out "sudo apt-get install apturl" and it should open the package for installation. I type out the command and I got this "mspyellow@BJ:~$ ...
2
votes
2answers
37 views

How to assign File/Folder path to a Variable in Terminal

Say I have the following path: /home/$USER/Downloads/My Folder I tried to assign the above given File-Path to a variable FILE_NAME as follows, FILE_NAME=/home/$USER/Downloads/My Folder $FILE_NAME ...
1
vote
0answers
27 views

what to write in prefix and in environment variable for correct installation

I am installing linbox library: http://www.linalg.org/developer.html. The installation guide states, that one should install several libraries, including fflas-ffpack library, and then run the script ...
0
votes
0answers
24 views

NO_PROXY environment variable limit

I'm setting NO_PROXY and no_proxy environment variables in a Ubuntu 12.04 LTS box. From this VM I should create a template. Each environment variable is composed by more than 1000 entries (basically ...
0
votes
2answers
114 views

Unable to set the right version of java on Ubuntu 14.10

I recently tried installing the most recent version of Oracle JDK (1.8) but somehow I'm unable to overwrite the current version of java being used by the system. I set the JAVA_HOME variable to point ...
1
vote
1answer
39 views

Incorrect value of environment variable java_home

I set my JAVA_HOME using the instructions given here - https://gist.github.com/senthil245/6093389 Basically, we download a jdk bin file, unpack it, move it to /usr/lib/jvm and then set the environment ...
0
votes
1answer
32 views

How to modify environment variable in unix?

I want to modify environment variable by user given value. For example, user will give the variable to be modified and a value to put in the variable. I tried the command: set[variable[=val]] Its ...
0
votes
1answer
48 views

FFTW3 in ubuntu: error in linking

I have installed FFTW3 in the newest version of ubuntu (downloaded yesterday). when I compile the cpp file I get the error: fatal error: fftw3.h: No such file or directory. I used cmd line: g++ ...
2
votes
1answer
42 views

Some error messages displayed when I start terminal (both as root and as normal user)

I recently installed Android Studio , and to make the changes permanent I changed the PATH environment variable in .bashrc file, as shown in Second answer of this link. I get following error ...
0
votes
0answers
34 views

.desktop launcher doesn't have the same environment variables

I have a shell script, for which I want to have a Unity launcher. The shell script uses gradle to build a project and deploy it on a server. I had it working fine, because I managed my gradle ...
0
votes
1answer
43 views

SOLVED prefix command error

When open Terminal I get this error ERROR: Directory [=] does not exist. The prefix script allows you to manage multiple installations of a set of software installed on the same machine. It helps ...
0
votes
0answers
45 views

Bash script environment can't get exported variable from user

I have a user daniel, from which I'd like to retrieve an exported value as root. So I did some research and came up with this command: $ su - daniel -c '. ~/export_script; echo $EXPORT_PATH' > ...
0
votes
1answer
32 views

How to set the environment variabile using java

I am trying to set an environment variable using a java code. When i run this java code from the bash, I want to echo the environment variable that i set in the java program. How can this be done
1
vote
1answer
54 views

PATH is not getting exported by default in Ubuntu 12.04

When i run su on command line and enter root password, I am getting error as mentioned below: Command 'lesspipe' is available in the following places /bin/lesspipe /usr/bin/lesspipe ...
0
votes
1answer
47 views

Unnecessary path present in $PATH

I have configured my .bashrc to add paths to the script of certain programs. This is how I did it: export PATH=/opt/android-studio/bin:/opt/pycharm-3.4.1/bin:$PATH However whenever I use $PATH in ...
1
vote
1answer
66 views

How to use source command for exporting path?

I am trying to set the path of few libraries using source command but its not working and says dsbisht@dsbisht-ThinkCentre-E73:~/Workstation$ source .list bash: .list: No such file or directory My ...
0
votes
1answer
70 views

Set environment variables (PATH, etc.) from script

How do I set the environment variables from a script? Using source scripts/setupenv.sh doesn't seem to work. I tried to use sh and chmod +x but it still doesn't work.
2
votes
1answer
188 views

Why isn't .profile sourced when opening a terminal?

Just installed Ubuntu 14.04.1 LTS. According to .profile, # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash, if ~/.bash_profile or ~/.bash_login ...
0
votes
1answer
42 views

Enviromnent variable for subprocess

I am trying to access an environment variable from a python process. I exported it like export var=value. This works fine for the command pyton program.py but not for sudo python program.py. How can I ...
0
votes
0answers
13 views

How to recover UBUNTU_PLATFORM_API_BACKEND enviroment variable?

I did: unsetenv("UBUNTU_PLATFORM_API_BACKEND"); and I think this is causing problems for QAccelerometer backend... Is there anyway I can recover this env variable?
0
votes
1answer
1k views

How to create a PATH environment variable for Android Studio? [duplicate]

I am a newbie and have no idea about linux or ubuntu. I have successfully installed Android studio but have problem in opening it. The developer site instructs to add PATH environment variable but I ...
1
vote
1answer
65 views

Does order of precedence with ENV variable changes which program to use?

Question: Does order of precedence in the PATH influence Ubuntu to choose which program to use? More details: I use .bashrc for declaring private env PATH, I have installed MSP430-gcc from ubuntu ...
0
votes
3answers
41 views

Problem with environment variables

I tried creating a shortcut to easily change into some of my Windows partitions. After mounting them, some works fine, some not. Here's what happens. My ~/.bash_aliases contains: export ...
0
votes
1answer
262 views

HDF5 and GSL library problem on Ubuntu 14.04.1 64-bit

I ran into errors in the installation of the FDTD software MEEP on Ubuntu.Although I have hdf5-tools and libhdf5 installed on my system(Ubuntu 14.04.1 64-bit), the make step of the installation of ...
0
votes
1answer
61 views

Environmental variables resets after reboot [duplicate]

I am working on PhoneGap and I need to set some Environmental variables. I used to set it by export and it sets. But when I reboot or relog then it wipes out the variables I previously exported. I ...
0
votes
2answers
476 views

“sudo su” does not pass the environment variables to the new shell? [duplicate]

su manual http://manpages.ubuntu.com/manpages/precise/man1/su.1.html The current environment is passed to the new shell. Obviously you cant use su in Ubuntu as in su but it has to be always ...
0
votes
3answers
54 views

$PATH not saved as I login again [duplicate]

When I make a change in my ~/.bash_profile file and I add such a variable as: export PATH="$PATH:$HOME/.composer/vendor/bin" And after save and close, I need to reflect these changes in my $PATH ...
0
votes
1answer
46 views

Use other environment variables in PATH definition [duplicate]

I've been wondering if there is a way to set the PATH system variable using other system variables. For example my /etc/environment currently looks like PATH="........other stuff........ ...
0
votes
2answers
47 views

Set custom added PATH vars to work in each Terminal session [duplicate]

I ran these 2 commands simply in the terminal: export PATH="$PATH:/home/milkncookiez/Developer/android-studio/bin" export PATH="$PATH:/home/milkncookiez/Developer/PhpStorm/bin" in the 2 bin folders ...
1
vote
0answers
53 views

Unable to connect to X11 display. is $DISPLAY set? - Yes, it is

I'm trying to run this in my /etc/init.d/rc.local. I had to manually add the exit 0 because it wasn't there by default if that makes any difference. cd /home/john/xcape && ./xcape -e ...
0
votes
0answers
52 views

Ubuntu 14.04 Color Variable Troubles

I have tried all the links from the first 2 pages of google searches regarding editting the LS_COLORS variable, but I can't get it to work as expected. I want all my source code files to show up as ...
1
vote
1answer
625 views

How to set DISPLAY variable for a process?

I try to run pgadmin3 as user postgres and I get following error: No protocol specified Error: Unable to initialize gtk, is DISPLAY set properly? Command pgadmin3 runs well under pavel (my main ...
1
vote
1answer
120 views

Can't log in after trying to set environment variables

So I added a file called gradle.sh to /etc/profile.d/ that had the following lines: export GRADLE_HOME=/home/gradle/ export PATH=$PATH:$GRADLE_HOME/bin I restarted my machine, so that it would pick ...
0
votes
0answers
72 views

Error in export command in ~/.profile

I have this line in ~/.profile: export PATH=/sbin:/usr/sbin:${PATH} and it is causing this in ~/.xsession-errors: init: gnome-session (Unity) main process (1851) terminated with status 1 And ...
0
votes
1answer
243 views

Add custom script to PATH

I know there are quite some answers about that, but still could not make my way around it. I read all this and tried to follow the example under System-wide environment variables (for my case of ...
0
votes
1answer
130 views

Is $HOME/.local/share the default value for $XDG_DATA_HOME in Ubuntu 14.04?

What's the default value for $XDG_DATA_HOME in Ubuntu 14.04? I get an empty line with: echo $XDG_DATA_HOME According to the Free Desktop Specifications, it might be equals to $HOME/.local/share
0
votes
0answers
82 views

How to set the path to xstream in Ubuntu 14.04

I am using Ubuntu 14.04, and installed my version of jdk using sudo apt-get install openjdk-7-jdk Now I installed xstream 1.4.7, but whenever I compile any java files using the package, I get an ...
0
votes
1answer
2k views

Ubuntu 14.04: setting environment variables [duplicate]

I need set environment variables for Android Studio project EVERY TIME when reboot or close terminal. (Ubuntu 14.04) For setting variables I use: export ...
1
vote
3answers
294 views

Changing ownership of folder not working!

I am trying to change the ownership of a folder and subfolders by typing either of these: sudo chown $user -R /usr/bin/.folder/ sudo chown $user -R /usr/bin/folder/ sudo chown $user -R ...
0
votes
0answers
25 views

Environment Vars being changed on boot

I installed java-8-oracle the other day, and I didn't like it, so I deleted the java-8-oracle folder. I also installed java from java.com into /usr/java/jdk1.8.0_20, and set the environment variable ...
0
votes
1answer
36 views

Server cannot run apt-get anymore

I was trying to setup an older version of gcc (4.1) on ubuntu 14. I was having some difficulties to set alternatives. I so thread where someone said to use this command: export PATH="/usr/bin:$PATH" ...
2
votes
1answer
732 views

How to set environment without sourcing .bash_profile myself every time? [duplicate]

When I restart Ubuntu 14.04, environment variables are set back to default and I have to run source .bash_profile every time which is very annoying. I generally keep my environment vars in ...
0
votes
1answer
76 views

Exporting LD_LIBRARY_PATH that contains spaces and special characters

Trying to deploy a Qt application on Ubuntu Directions from Qt site show how to allow the library dependencies to be loaded, by changing the LD_LIBRARY_PATH variable: #!/bin/sh appname=`basename $0 ...
3
votes
2answers
585 views

Ubuntu 14.04 and playing songs from cron

I recently upgraded my computer to Ubuntu 14.04. After the upgrade the system no longer plays the few songs I had it play via crontab. The crontab lines look like so: 0 9 * * 1-5 ...
0
votes
1answer
1k views

How to fix invalid identifier error after setting environment variables?

I'm trying to setup cocos2dx in Ubuntu 14.04 LTS but after setting the environmental variables (in .bashrc) I start getting this error: bash: export: dev/cocos2d-x-3.2/tools/cocos2d-console/bin': not ...
0
votes
1answer
207 views

save number of lines of a text file in a variable shell file

I'm working on terminal and running a .sh file and I want to count the lines in another file and save it as a variable to be used in this .sh file. I'm using this command sed -n '$=' /lines.txt when I ...