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

learn more… | top users | synonyms

0
votes
0answers
16 views

How to add the install prefix of Qt5 to CMAKE_PREFIX_PATH environment variable?

I'm developing a C++ program (no GUI) on Ubuntu Touch for the Nexus 4 and I'd like to test QT sensors. However, I'm having some trouble locating the install prefix of Qt 5 for CMAKE_PREFIX_PATH. Did ...
3
votes
1answer
6k 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
30 views

How to create a PATH environment variable for Android Studio?

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 ...
4
votes
3answers
4k 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 ...
1
vote
1answer
30 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 ...
1
vote
1answer
3k views

rvm /usr/bin/env: ruby no such file error

I've installed rvm + ruby systemwide. which ruby /usr/local/rvm/rubies/ruby-2.1.1/bin/ruby and: /usr/bin/env: ruby: No such file or directory Everything else works fine, putting direct path of ...
0
votes
1answer
32 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
3answers
34 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 ...
1
vote
2answers
3k 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 ...
3
votes
2answers
878 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 ...
0
votes
1answer
33 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 ...
7
votes
2answers
3k views

Referencing environment variables *in* /etc/environment?

I recently discovered /etc/environment, which seems a more standard way to setup simple environment variables than scripts, but I was wondering if there was a way to back-reference environment ...
0
votes
2answers
63 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 ...
1
vote
3answers
6k views

Run PHP from the command line

I have installed XAMPP v1.8.3 for my PHP development. I am new to Ubuntu, so I don't know how to set environment variable for PHP which is located at /opt/lampp/bin/php. I can run PHP scripts from ...
0
votes
3answers
36 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 ...
6
votes
2answers
2k views

Where can I find documentation on the /etc/environment file format?

From System-wide environment variables: /etc/environment - This file is specifically meant for system-wide environment variable settings. It is not a script file, but rather consists of ...
8
votes
2answers
1k 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 ...
6
votes
2answers
5k views

How to open ~/.pam_environment?

I wanted to set environment variables JAVA_HOME and PATH. So I wanted to open ~/.pam_environment since it is the best place to set environment variables relevant to a particular user according to the ...
0
votes
1answer
30 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........ ...
-1
votes
0answers
25 views

Hadoop gives Error localhost: Error: JAVA_HOME is not set.?

I'm using Ubuntu. I have installed Java Hadoop configured it as single Node. i have also added environmental variable named HADOOP_HOME,JAVA_HOME in .bashrc file. When i was trying to run Hadoop using ...
15
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 ...
16
votes
1answer
83k views

What is PATH environment variable and how to add it

I just installed picc-9.82.9453-linux.run from Microchip website, and at the end it asked me ==> NOTE: You may wish to add the following /usr/hitech/picc/9.82/bin to your PATH ...
0
votes
2answers
32 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 ...
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
113 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 ...
2
votes
2answers
4k views

How can I make sure an environment variable is set when I sudo?

How can I make sure an environment variable (GRAILS_HOME for example) is set when I sudo? I put a script in my /etc/profile.d with this value and made it ugo+x. What do I need to do to make this ...
3
votes
3answers
14k 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 ...
1
vote
0answers
33 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
31 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 ...
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 ...
1
vote
1answer
61 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
48 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
45 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 ...
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.
0
votes
1answer
151 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
2answers
4k 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 ...
0
votes
1answer
43 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
50 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 ...
2
votes
1answer
1k views

~/.pam_environment doesn't work since Ubuntu 13.04 [duplicate]

I have this line in my ~/.pam_environment: PATH DEFAULT=${HOME}/bin:${HOME}/.local/bin:${PATH} and it worked perfectly well on Ubuntu 12.10, but since I've updated to 13.04 it is ...
1
vote
2answers
1k 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
173 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
241 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
1answer
202 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
0answers
21 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 ...
2
votes
1answer
221 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
30 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" ...
3
votes
1answer
215 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
51 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 ...
0
votes
1answer
57 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 ...
0
votes
1answer
35 views

var.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 ...