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

learn more… | top users | synonyms

0
votes
1answer
16 views

How How to set path in Ubuntu

I want to work with Zettair search engine link. I installed the Zettair on Ubuntu 14.04; but, I can not install the Zettair executable in my PATH with following command. What should I do? ...
12
votes
3answers
12k 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
0answers
9 views

$JAVA_HOME get empty after reboot or logout [duplicate]

We have a build machine running Ubuntu 1204 desktop version. We build Android source code 19 (KitKat) I properly set the environment variable using: export JAvAHOME=[my path] and the build run ...
0
votes
1answer
72 views

How to path set in Ubuntu 15.04 of Java , download the version of java-8-oracle?

I am new to Ubuntu.Recently we changed my OS to Ubuntu 15.04 . I am installed java-7-openjdk-i386 from "Ubuntu Software Center " and when I use the "Andriod Studio" then it highly recommended me to ...
1
vote
1answer
29 views

Not able to 'unset' environmental variable permanently - UBUNTU

I set environment variable using export CATALINA_HOME=/home/chirag/Softwares/apache-tomcat-7.0.56 before some time from the terminal. But now i want to unset this variable premenantly. I use unset ...
2
votes
2answers
41 views

How to set environment variables separated by dots

I have to set an environment variable separated by dot in my tomcat startup script. For example host.name=localhost I know shell doesn't accept dot separated variables. Is there a work around ? I ...
5
votes
2answers
2k views

How to set env with a dot?

I tried doing that with export and set env, but it did not work. how to do it? for example ~/directory$ export a.home=1 bash: export: `a.home=1': not a valid identifier
0
votes
0answers
18 views

Export $PATH issue in linux mint [duplicate]

BTW I'm a novice user of Linux I'm using Linux Mint Cinnamon 17.1, I had Ubuntu before I've just installed rvm ruby and some ruby gems... in one terminal session. I echoed PATH on that session ...
3
votes
1answer
20 views

Store in environment variable

I tried storing the contents of a file in an environment variable using one of those commands. a= cut -f 1 abc.txt cut -f 1 abc.txt >a neither works . So , can anybody help me out?
1
vote
1answer
18 views

Maven 2 mysteriously showing up in $PATH

I'm upgrading to maven 3 but have hit a small snag in that maven 2 is mysteriously showing up in my PATH variable. I've checked ~/.bashrc, ~/.profile, /etc/bash.bashrc, /etc/environment, /etc/profile ...
1
vote
1answer
25 views

Secure Shell isn't propery loading .bashrc

I've got a seemingly simple issue - I have a 15.04 server that I connect to via ssh. Currently, I have a couple of folders added to my PATH environment variable in my .bashrc file: #... (rest of ...
1
vote
2answers
38 views

Add and remove a directory/file to the PATH

I want to learn how to add and remove a directory/file from the PATH but there are hundred answers and a lot of them are contradictory (or so I believe). I have found answers that suggest editing ...
0
votes
3answers
43 views

How to Verify JAVA_HOME path

I installed java in opt/jdk1.7.75 having following directories--> bin db include jre lib man COPYRIGHT LICENSE README.html relase & other files I set JAVA_HOME path in .bashrc file as follow: ...
0
votes
1answer
17 views

Mozilla NSS building

In this instruction :"In order to start the build process, use "cd nss" and execute "make nss_build_all". By default this will produce a build in debug mode and for a 32-bit architecture. You may set ...
3
votes
4answers
17k 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 ...
12
votes
2answers
22k views

Environment variables when run with 'sudo'

As example to my question, my ~/.bashrc file contains this lines: export LD_LIBRARY_PATH=/opt/intel/mkl/lib/ia32:$LD_LIBRARY_PATH export LD_PRELOAD=/opt/intel/mkl/lib/ia32/libmkl_core.so so that ...
2
votes
3answers
399 views

What other bash variables are available during execution such as $USER that can assist on my script?

This is related to question Why is this bypassing the SUDO password?. In that one of the responders answered the question in an awesome way, and very, very clear to any newbie. Now here is a question ...
0
votes
1answer
26 views

How can I capture shell variable output to use in my capistrano task

I am using capistrano to deploy a Ruby on Rails application. I previously was using Centos. In converting my task to be used with Ubuntu, I have a task that I was using for Centos was: capture("env ...
1
vote
1answer
62 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
31 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
7k 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
48 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
150 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
14 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
26 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
37 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
73 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 ...
1
vote
0answers
41 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
62 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
103 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
34 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
6k 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
36 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
139 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
28 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
26 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
40 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
324 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
40 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 ...
9
votes
3answers
24k 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
58 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
291 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
102 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
39 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
198 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
66 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
235 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
50 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
50 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 ...