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

learn more… | top users | synonyms

2
votes
1answer
4k 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 ...
2
votes
1answer
28 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 ...
1
vote
2answers
159 views

Change environment varaible (TERM)

According to this answer, "it is the job of the terminal emulator to set the TERM environment variable". Is there any way to change the TERM value used by Terminator? Right now it's xterm, but I need ...
2
votes
2answers
4k 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 ...
0
votes
0answers
26 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
41 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 ...
9
votes
2answers
2k 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 ...
293
votes
15answers
393k views

How to add a directory to my path?

How do I add a directory to my $PATH in Ubuntu and make the changes permanent?
3
votes
2answers
476 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 ...
4
votes
1answer
1k views

Setting path in ubuntu 13.10

In Ubuntu 13.10 I installed : stable_Ubuntu-13.10-i686.deb and Ubuntu-13.10-i686.deb, but when starting GNURadio the following message appears : Cannot import gnuradio. Is the python path ...
-1
votes
0answers
39 views

Environment variable not defined Error

I am using ubuntu14 & have set the variable in /home/user/.bashsrc file with the name of export Publish_Host=localhost And when i write below command as follow, prints: ...
0
votes
0answers
37 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
27 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
40 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
41 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 ...
4
votes
3answers
13k views

How can I reset $PATH to its default value in Ubuntu 11.10?

I accidentally unset all the directories of $PATH while trying to add a new one in ~/.bashrc. I opened a new terminal window as I was editing and now $PATH is empty. I'm worried if I boot from another ...
1
vote
1answer
46 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
65 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
171 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
32 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?
4
votes
1answer
836 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 ...
3
votes
1answer
7k 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
754 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 ...
4
votes
3answers
5k 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
55 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
1answer
163 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
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 ...
3
votes
2answers
1k 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
50 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
4k 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
275 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
11k 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
49 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 ...
6
votes
2answers
6k 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
45 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........ ...
18
votes
3answers
51k 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
89k 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
43 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
183 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
5k 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
16k 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
43 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
47 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
3k 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
399 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
92 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
64 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 ...