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

learn more… | top users | synonyms

0
votes
1answer
6 views

How to specify an Environment systemd directive containing =?

I want to specify an Environment systemd directive containing =, e.g. Environment=CATALINA_OPTS=-Dappserver.home=/var/lib/archiva/apache-tomcat-current ...
0
votes
1answer
26 views

How do I export a variable to the `sh` shell? [duplicate]

Calling export MYVAR=/path/to/whatever from .bashrc obviously works for bash but not for the sh shell. Unfortunately, the Matlab launcher seems hell-bent on using sh and not bash. As such, the ...
2
votes
3answers
6k 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
1answer
25 views

Unable to run apt-get with proxy even after setting the environment variables

I was trying to configure proxy in my lubuntu 14.04. Since I wanted to use the username and password for my proxy authentication, I opted ntlm and installed it. Now I can use my proxy link as ...
4
votes
1answer
142 views

Writing a program that will demo the $PS2 variable

I've been customizing my terminal prompt, and found that it's possible to change the "secondary prompt". However, I have no way to test the changes I make to this one so I was wondering if a simple ...
0
votes
1answer
10 views

How to make speech-dispatcher work with variables?

I tried some bash variables with spd-say command just like the date variable spd-say $date or spd-say "$date" but didn't work with me. So how to make it accept variables?
0
votes
0answers
21 views

$PATH in Ubuntu and Windows

What are the differences both conceptual and practical in the use of the $PATH enviromental variable in Ubuntu and in Windows ? I searched quite a bit but only found partial information. thanks
13
votes
3answers
9k views

Environment variable vs Shell variable, what's the difference?

Somebody told me that: BASH isn't an environment variable, it's a shell variable What's the difference?
0
votes
2answers
32 views

How to change directory for $HOME

My home folder (~ and $HOME) points to /home/user , how do I change this directory? I tried HOME=/new/dir But this only works until I start a new shell. I also tried looking for definitions ...
1
vote
0answers
39 views

Bash script: command not found

I have an executable script install_packages.sh in /home/etienne/admin folder. The directory's path is added to $PATH variable from /etc/bash.bashrc. When I type #echo $PATH I see that the variable ...
0
votes
0answers
24 views

Nautilus “open in terminal” extension will not propagate SSH_AUTO_SOCK?

I have Ubuntu Gnome 14.04, up-to-date; nautilus and nautilus-open-terminal are installed and updated: [romano:~] % wajig status nautilus nautilus-open-terminal Package Installed ...
0
votes
0answers
52 views

Setting JAVA environment variable [duplicate]

I am setting up new Ubunut machine. Stuck on setting up Java environment variable. I have tried all possible way and whatever solution I found here. None of them worked. It is still giving me blank ...
0
votes
2answers
70 views

Installing Java 8 and Setting environment variables

I just completly shifted to Ubuntu from Windows 7. I am a java developer and now I need to install Java 8 JDK and JRE. I installed 64 bit ubuntu 14.04.02 and it seems like there are lot of ways to ...
0
votes
2answers
31 views

Create a dir on scratch with same name as in pwd directory

HI I try to simplify my problem, I'm trying to write a bash script, which can take the actual directory name (just like you get by statement "basename" ) and create a same directory on scratch. ...
2
votes
2answers
5k 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 ...
1
vote
1answer
31 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
87 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 ...
0
votes
0answers
26 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
24 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
39 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 ...
0
votes
1answer
287 views

Why won't Vim source my .vimrc at startup?

Note: edited to provide more info. I have modified my ~/.vimrc significantly (although some of my initial modifications I made in the system-wide /etc/vim/vimrc). It probably doesn't matter either ...
1
vote
0answers
33 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 ...
8
votes
3answers
23k 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 ...
0
votes
0answers
35 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
220 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
59 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
34 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
97 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
54 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
213 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 ...
0
votes
0answers
44 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
47 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 ...
308
votes
15answers
420k 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
669 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 ...
0
votes
0answers
49 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
36 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
72 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 ...
4
votes
3answers
14k 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
73 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
71 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
211 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
62 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
1k 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
2k 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
7k 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 ...