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

learn more… | top users | synonyms

1
vote
0answers
26 views

How to set environment variable for sshd

I have Ubuntu server 14.04 on a server with openssl version 1.0.1f and openssh version 6.6. In my openssl.cnf I have subjectAltName=${ENV::ALTNAME} so that I can set subjectAltName on the commandline ...
0
votes
0answers
14 views

Adding usb boot feature in bootloader in linux?

I am working on AM335x starter kit and using Linux 12.04 LTS. I am supposed to add a feature of booting the Linux OS into the board using a bootable pendrive. For doing so, some changes have to be ...
0
votes
1answer
20 views

Added wrong path to $PATH variable but can't find old varaible to delete it

I'm trying to install virtualenv and virtualenvwrapper to set up and IDE for Python, following a tutorial for this on Ubuntu I accidentally entered the wrong path to the virtualenvwrapper. When I try ...
0
votes
1answer
24 views

how to export folder specific environment variables?

I have two projects on my computer that require JAVA_HOME to point to jdk7 and 8 respectively. Right now I'm working around this by having 2 files in my home folder that i source to set JAVA_HOME ...
0
votes
1answer
19 views

Error in downloading IcedTea web Start

I executed the command: sudo apt-get install icedtea-netx ...and this error was displayed: Error in downloading IcedTea web Start.. A screenshot of the terminal session: Please Help!
0
votes
0answers
38 views

How to add samtools in the PATH permanently [duplicate]

I installed samtools executables within my bin directory under home directory. Installation works perfectly well. I am using Ubuntu 14.04 version and it has .profile and .bashrc in my home directory ...
1
vote
1answer
43 views

Help troubleshooting Variable in simple script

So i have this script here Remove Audio Streams of videos - recursively without converting audio or video with FFMPEG But the subtitles part doesn't work. Currently I have tried a few variations of ...
0
votes
1answer
42 views

Couldn't Excute command line PostGIS pgsql2shp

I am using postgres 9.3 with postgis 2.1 on Ubuntu 14. When I tried to dump pgsql table using pgsql2shp, I get the following error. Error: pg_wrapper: pgsql2shp was not found in ...
3
votes
2answers
185 views

Script to set IP address connected to an interface to a shell variable

I want to write a script to set the IP address of the device connected to an interface like "eth0" to a variable. I can get the IP address by this command: arp -i eth0 -a The output of above ...
-1
votes
0answers
26 views

Why my Java code does not display the environment variables $ JAVA_HOME and $ M2_HOME?

Insert the environment variables at the end of .bashrc file and when I type in the terminal the command: $ echo $JAVA_HOME display /usr/lib/jvm/java-8-oracle/​ and $ echo $M2_HOME display ...
0
votes
0answers
11 views

$XAUTHORITY in systemd

I would like to know if there's a way to use $XAUTHORITY variable in systemd, basically, I have tried to create a simlink between $XAUTHORITY location and ~/.Xauthority by placing it in a script and ...
1
vote
0answers
52 views

$PATH variable env variable

I am working on Ubuntu 14.04 version and I can see .profile and .bashrc under my home directory. .profile looks like this # ~/.profile: executed by the command interpreter for login shells. # This ...
1
vote
1answer
45 views

How to configure environment variables in Ubuntu? [duplicate]

My environment variables are correct? What is the correct way to use them in Ubuntu? I put them at the end of .bashrc file or edit the end of /etc/environment to able to use the $JAVA_HOME and ...
0
votes
1answer
20 views

How to add user level environment variables to be used by GUI application?

What is the recommended way to add user level environment variables to be used by a GUI application in Ubuntu? I know there are ~/.bashrc, ~/.cshrc, ~/.profile etc for console apps. How can I add ...
1
vote
1answer
29 views

Losing environment info when using /usr/bin/sudo and /bin/bash

My question is why do I lose environment information like $PATH when running the following command: /usr/bin/sudo -H -u <user> /bin/bash -l -c '<command>' I'm trying to add the ...
1
vote
1answer
56 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
60 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
80 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 ...
2
votes
1answer
136 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
35 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
323 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 ...
0
votes
1answer
41 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
34 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 ...
2
votes
1answer
28 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
0answers
35 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
76 views

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

$ export AMBERHOME=$AMBERHOME/home/rcibsd/amber14 $ cd $AMBERHOME bash: cd: ...
2
votes
2answers
247 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
41 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
37 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
37 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
100 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 ...
1
vote
1answer
35 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
2answers
235 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 ...
0
votes
0answers
58 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
167 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 ...
0
votes
0answers
62 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 ...
2
votes
1answer
31 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
93 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? ...
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
2k 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 "Android Studio" then it highly recommended me to ...
1
vote
1answer
115 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
113 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 ...
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
25 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
45 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
49 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
62 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
1answer
38 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 ...
0
votes
3answers
124 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
126 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 ...