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

learn more… | top users | synonyms

69
votes
5answers
97k views
1
vote
1answer
3k views

JDK 8 Installation for Ubuntu 14.04 (Android Studio & NetBeans)

I downloaded jdk-8u11-nb-8-linux-i586.sh and installed it in my home folder. Then I install NetBeans, it is successful I think because I can compile my java code using netbeans. Now when I install ...
1
vote
1answer
35 views

Adding path to PATH environment variable using bash script in /etc/environment [duplicate]

I need to add path to my executable application to PATH environment variable. Because I need to add path during .deb package installation, I should use postinst script in debian package. After reading ...
2
votes
3answers
54 views

Get a script variable into subshell launched by find

Following on from this question I've used the following command in a bash script: find ${svn_root} -maxdepth 2 -type d -exec bash -c 'if svnlook info "$1" &>/dev/null ;then echo"$1" ...
0
votes
3answers
71 views

How do I correctly display the content of an environment variable (here: current user's home directory)?

If I type echo home I will only see the word "home" as output and not the "home/user" I am the only user on this machine and have a password. Why do I get the wrong output and what do I have to ...
3
votes
2answers
7k 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
57 views

Remove annoying environment variable JAVA_TOOL_OPTIONS

Each time I run java or javac on terminal I get this annoying message Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar I looked up very location I know to find out where ...
0
votes
1answer
32 views

Can I create a shell variable accessible everywhere in the system?

I am writing a script which requires to store the value of a variable. This value will be used the next time the script is run. First I thought of storing it in a file. Then this crazy idea came into ...
1
vote
2answers
298 views

Why I can't use the CATALINA_HOME environment variable?

I am not yet a Linux guy and I have the following problem with environment variable. So I want to add a permanent environment variable and I do in this way: I open the /etc/profile file and I add ...
2
votes
1answer
25 views

Shell calling shell(s) and passing env variable(s) or not

I want to launch/run /usr/bin/FreeFileSync (FFS) from my crontab at most once a day, whenever the external backup target volume is mounted. For that, I used @Germar's answer: i.e. a spooling-script ...
0
votes
1answer
37 views

Problem with adding path using zsh

I added a directory modifying ~/.profile and adding export PATH=$PATH:/home/...etc etc. But I realized that using zsh terminal I couldn't use the recently installed binary until I logged out from zsh. ...
0
votes
0answers
31 views

Environment variable to all usersE

I cannot able to set PATH variables gloablly. I tried: $ mvn -v mvn command not found Tried to edit /etc/bashrc: Permission Denied Logged in as root: $ su - root modified /etc/bashrc ...
0
votes
0answers
32 views

Ubuntu 3.13.0-48-generic PATH Variable Not Working

I am trying to edit the PATH variable on a fresh Ubuntu install. For some reason it keeps throwing the error "No such file or directory" whenever I try to invoke my command. java;echo PATH=$PATH;echo ...
1
vote
1answer
46 views

cd: “No such file or directory” after setting a variable

$ export AMBERHOME=$AMBERHOME/home/rcibsd/amber14 $ cd $AMBERHOME bash: cd: ...
20
votes
3answers
69k 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 ...
2
votes
2answers
136 views

How to set JAVA_HOME for all users for “elasticsearch” program?

I'm trying to set JAVA_HOME for elasticsearch but no luck till now. I tried to set it in .bashrc, etc/environment, etc/.profile all fail. this is the command I use to run elasticsearch: sudo ...
0
votes
1answer
37 views

How to set a permanent environment variable?

I am not yet a Linux guy and I have some problem trying to add a new permanent environment variable. So I have to set a new environment variable named CATALINA_HOME with this value: ...
0
votes
0answers
28 views

How to set environment variables for GUI program?

I am using texstudio, a latex editor, on Ubuntu 14.04. When I start it from bash $ texstudio, and click the compile button, it works fine. However, if I start it by clicking the icon in the launcher, ...
1
vote
1answer
31 views

How to use shell variables after doing sudo su

I am writing a script to fix a missing 'F' letter in a mail log file. The mail log file is continuously updating. I am getting a file name, after that I am doing 'sudo su' to get superuser access. ...
0
votes
0answers
62 views

“-bash: cmake: command not found” in MATLAB with SSH

I am using MATLAB. In its command window I am using SSH to access a remote machine and run commands. When I attempt to do so I get error messages such as -bash: cmake: command not found Now I ...
3
votes
4answers
10k 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 ...
12
votes
3answers
39k views

What is $DISPLAY environment variable

I am new to shell script NOT able to understand what is $DISPLAY environment variable. I am running Ubuntu 13.10 and using /bin/bash shell. I have connected two monitors. Questions: echo $DISPLAY ...
17
votes
2answers
36k views

How do I set PATH variables for all users on a server?

I just finished installing LaTeX for my company's Ubuntu server that we all SSH into to use. At the end of the install it says this: Add /usr/local/texlive/2010/texmf/doc/man to MANPATH, if not ...
1
vote
2answers
107 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
2answers
119 views

Environment Variable seems to be set yet not working

I use Ubuntu 14.10 with bash shell. I downloaded a gradle distribution and moved it to a new directory. I want to permanently set a environment variable to point to the bin sub-directory of the ...
1
vote
2answers
37k views

PYTHONPATH environment variable

I have this in my ~/.profile: export PYTHONPATH=/home/dev/python-files In the python-files directory, I have a few projects cloned from git-hub (flask, curveship and py-vgdl). Whenever I try to ...
1
vote
1answer
31 views

.pam_environment not loaded in TTY

I have environment variables set in ~/.pam_environment and they exist as expected in any virtual terminal I open. If I open TTY1 and login, my PAM environment variables are not present. How can I ...
0
votes
0answers
44 views

Java environment variable in Wine (32 bit prefix)

I need to run a Windows executable that requires Java 32 bit. Since Java 8 is still unstable in Wine, I installed a 32-bit Java (7u76) in a 32-bit WINEPREFIX. Now, when I run the Windows executable, ...
2
votes
3answers
116 views

The $PATH added to .bash_profile is not working after reboot

I am new to Ubuntu! And I am trying to setup manually Maven by adding Maven directory into $PATH. I created .bash_profile file in my home directory. The file contains this: export ...
5
votes
2answers
958 views

How to know which processes have the DISPLAY variable set?

Sometimes I face some problems in display and mostly I do want to know which files or processes are using the DISPLAY environment variable. So how to list all processes that having DISPLAY set?
3
votes
3answers
675 views

Can't get $(date +%F) set as environment variable

I would like to create an evironment variable that will output the current date. I have added the following to ~/.pam_environment: TODAY=$(date +%F) Apparently you have to log out after changing ...
0
votes
0answers
53 views

Path given in Environment variable shows empty after reboot

I am trying to set environment variable CATALINA_HOME for tomcat server. I used the command CATALINA_HOME=/usr/local/apache-tomcat-8.0.22 JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386 and export ...
0
votes
1answer
908 views

export $PATH not working correctly on Ubuntu 13.10

I have connected to remote Linux desktop (Ubuntu 13.10) using ssh command and try to run following command on remote desktop. On my host machine I am using Ubuntu 12.04. On remote desktop: I have ...
-1
votes
1answer
77 views

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 ...
1
vote
3answers
351 views

prevent duplicate entries in $PATH

In regular way to add a directory to PATH: PATH=$PATH:/new-directory Now the problem is if you add a new directory to the PATH then it will be added without checking if it's already in the PATH or ...
2
votes
1answer
30 views

Apps are looking for $HOME, literally [closed]

After a power outage my user settings appeared to have vanished. However, my home folder was apparently fine, except that there was a new folder called $HOME in there. After some fiddling I noticed ...
0
votes
1answer
60 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? ...
13
votes
3answers
14k 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
10 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
1k 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
80 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
76 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
24 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
37 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
40 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
54 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
88 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
29 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 ...