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

learn more… | top users | synonyms

1
vote
1answer
35 views

Error executing javascrit file through nashorn jjs

I can execute jjs on bash $ jjs jjs> but I can not execute script $ ./executable.js /usr/bin/env: jjs -scripting: No such file or directory executable.js #!/usr/bin/env jjs -scripting ...
8
votes
1answer
337 views

What does C in LC_ALL=C mean?

I know very well that to override locale settings we can use LC_ALL prepended to the command one wants to run. I also know C uses default locale of a system. But what does C stand for ?
7
votes
1answer
744 views

Is “LD_LIBRARY_PATH” a security risk?

We know ld.so searches for libraries in directories specified by the environment variable $LD_LIBRARY_PATH, but regular users could run: export LD_LIBRARY_PATH=dir1:dir2... They can save infected ...
1
vote
0answers
26 views

not getting the value of http_proxy using python

I have checked that there have an environmental variable by using this command : printenv | grep http_proxy and when i am trying to get this value by using python script it is returning None.here ...
0
votes
0answers
26 views

Change qmake address ubuntu 14.04

I had installed the 32bit version of Qt but because it didn't work well (my system is 64bit), I uninstalled it using MaintenanceTool and installed the 64bit version. But now, when I run which qmake ...
8
votes
2answers
3k 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 ...
21
votes
4answers
17k 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?
2
votes
3answers
3k 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 /etc/...
0
votes
1answer
30 views

Blank desktop on Lubuntu 14.04

I get a blank desktop after logging in on Lubuntu 14.04. Have tried following this wonderful guide (among others), but it doesn't work for me. I have installed Unity and enabled it, but maybe this ...
30
votes
2answers
135k views

What is the PATH environment variable and how do I add to 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 ...
3
votes
2answers
123 views

Getting environment variables

The env command does not give all the environment variables on Ubuntu 12.04, like those used by individual applications. How could I get all environment variables?
0
votes
1answer
2k views

How to set a permanent environment variable? [duplicate]

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: /opt/apache-...
2
votes
1answer
65 views

Setting an environment variable in /etc/environment doesn't work but export does?

So I'm trying to set an environment variable called "NODE_PATH", It works by using: export NODE_PATH=/home/myname/node So I thought I'd set it up permanently and found that it needs to be done in ...
33
votes
4answers
114k 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
76 views

Can you help me to understand this explanation of shell quoting?

I'm trying to comprehend and reproduce this I read this section in the book Learning The Bash Shell; My question about it is below it: "Notice that we used double quotes around variables (and ...
0
votes
1answer
519 views

Difference between /etc/security/pam_env.conf and /etc/environment + making sudo read pam_env.conf

I struggle to see the difference between pam_env.conf and /etc/environment. To me they both do the same thing, with a difference syntax. The manpages were no help. So what is the difference? ...
9
votes
2answers
525 views

bash -c “v=value; echo $v” displays nothing

Executing the following from a comand line screen: bash -c "v=value; echo $v" displays nothing. It's ok? How can I assign a value to a variable inside this kind of execution?
0
votes
1answer
124 views

-bash: export: not a valid identifier

Whenever opening the terminal, I always end up with this same error. -bash: export: `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/usr/...
438
votes
16answers
649k 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?
1
vote
1answer
65 views

Can a script modify an environment variable of its calling shell? [duplicate]

I am setting my JAVA_HOME in my ~/.bashrc file. Now, I need to create a script that will change the JAVA_HOME just for the current terminal, so that I can start an app that needs java 5. I have ...
1
vote
1answer
113 views

sudo ionic run android not working

I am trying to run a hybrid app on my android phone using ionic using the following command: sudo ionic run android However I keep receiving this error : Error: Failed to find 'ANDROID_HOME' ...
2
votes
1answer
68 views

SSH executes the command differently

After several experiments I got to a surprising behavior by SSH. I usually access to a specific application through an SSH connection. In fact, that app is on a virtual-box on a workstation in a LAB. ...
3
votes
1answer
57 views

“sudo pip” differs from normal “pip”

When I execute which pip3 it points to /usr/.../anaconda3/bin/pip3 However, when I run sudo which pip3 the result is /usr/bin/pip3 Where does this problem comes from and how do I ...
0
votes
1answer
26 views

Why can't my user see environment variable?

I have a .sh file with some environment variables under /etc/profile.d/vars.sh. Its content looks like this: export PORT=8080 This is an Ubuntu 14.04 running on AWS EC2. When I log in via SSH with ...
0
votes
1answer
21 views

After “source .profile” the variable in a new terminal is still empty

One of the applications requires JAVA_HOME variable. Java is installed. In ~/.profile I have this: PATH="/usr/local/heroku/bin:/usr/share/perl6/vendor/bin:/home/arch/.local/bin:$PATH" JAVA_HOME="/...
0
votes
0answers
31 views

Disabling proxy problem

I've tried disabling the proxy using various command lines, it worked until I tried Maven clean install. Here's what is happening, $ mvn clean install[INFO] Scanning for projects... [INFO] ...
-1
votes
1answer
22 views

Survival of manually edited variables

I have some environmental variables set in my .profile, and thus the variables can be set automatically when I log in. In some special cases, I also need to change some settings using the command "...
0
votes
0answers
15 views

Environment var for multiple (silmutanious) sessions

How can I set an environment variable that is shared for the same user on different login sessions? E.g. I login on a server with the same user but multiple SSH sessions. The var should be resettet on ...
1
vote
2answers
17 views

How should I set enviroment variables at GNOME login - not shell?

Ubuntu 12.04, GNOME Classic I have a script that I execute from /etc/bash.bashrc. Whenever I open a terminal, it sets some environment variables needed for my applications to run. I execute them from ...
10
votes
4answers
27k 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 ...
11
votes
2answers
51k views

How to add /home/username/bin to $PATH? [duplicate]

Show how you can add /home/<yourusername>/bin to the $PATH variable. Use $HOME (or ~) to represent your home directory.
24
votes
2answers
53k 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
votes
1answer
19 views

How to set varible envirement in global level(for entire envirement)?

i need to set this line export STUDIO_JDK=/usr/lib/jvm/java-8-openjdk-amd64 according the documentation to setting file... i have try this command to open system file /etc/environment but get ...
0
votes
0answers
26 views

Edit /etc/environment via Command Line [duplicate]

I am using Ubuntu Server 14.04 and I would like to be able to edit the /etc/environment file via the command line to append the file with environment variables. This append operation is going inside ...
0
votes
0answers
63 views

When setting an environment variable that is a directory path, what is the “root” from which I am setting the path?

I'm making a node.js app that uses gcloud's prediction API, which has as an authentication option setting a "GOOGLE_APPLICATION_CREDENTIALS" environment variable with a full path to my key file. I've ...
2
votes
0answers
65 views

Per-application xfwm theme

I want to run separate applications with different themes, the only solution for this that I could find was to use bash -c 'GTK2_RC_FILES=/path/to/gtkrc program'; however, I currently am using a XFCE4 ...
0
votes
0answers
15 views

Unable to clear http_proxy ubuntu 14.04

Currently my chromium proxy recieves a 'Burp Suite Professional' error on almost any page access, same with my steam client. I believe the culprit is coming down to a proxy variable I have accidently ...
2
votes
1answer
69 views

How to use sed with file path variables AND regex callbacks AND arithmetic expressions

I'm having a hell of a time getting the proper syntax using sed with variables containing a file path, a regex callback and an arithmatic expression. I don't know how to properly escape things. I ...
0
votes
1answer
53 views

Why is there no /etc/zsh.d/ in ubuntu, and where should I add system-wide options?

I am trying to write an ansible role that needs to add to the PATH. For bash, I can easily add a file in /etc/profile.d. But zsh apparently doesn't come with an /etc/zsh.d. Is there another ...
0
votes
1answer
22 views

PATH variable in different terminal windows

I note that if I have several terminal windows opened and in one of them I set path variable through bashrc: export APP_PATH="path_to_app" export PATH="$APP_PATH:$PATH" Then call: source ~/....
1
vote
2answers
563 views

14.04 inside docker “TERM environment variable not set”

I am running an ubuntu 14.04 inside a docker container. My image is build from the official ubuntu:14.04 image) The Docker file is almost identical with this https://github.com/pfy/erpnext/blob/master/...
0
votes
2answers
48 views

exporting an environment variable from a bash script to a tcsh shell

I run bash scripts from tcsh shells. I want to set an environment variable in the tcsh shell from a bash script. The method of doing this, if your parent shell is bash is to source a file, i.e., ...
1
vote
3answers
336 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 ...
1
vote
4answers
815 views

Dollar sign in environment variable's value

Is it a bad practice to have a dollar sign in an environment variable's value? ex: MY_VAR="$toto" To be more precise, I would like to set it in the /etc/environment file to be accessible by a java ...
2
votes
1answer
54 views

How do I use variables and non-variables in a single sed command?

I'm trying to use sed to replace some PHP lines. My problem is I want to replace a line with PHP variables with a string including a Bash variable. Here is an example: sudo sed -i 's/$sUrl . $...
1
vote
3answers
146 views

What are the standard Environment variables ($) in Ubuntu?

I know some useful environment-variables like $HOME, $UID, $BASH, $LOGNAME etc. which is useful to get information in terminal/command-line with using echo(ex: echo $LOGNAME) I want to know what are ...
0
votes
1answer
50 views

How to set path for the Tomcat7 user

I'm trying to install an extension for GeoServer. The instructions say: Create a GDAL_DATA environment variable to the folder where you have extracted this file. Make also sure that this directory ...
1
vote
2answers
3k 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 ...
1
vote
3answers
2k views

How to use text extracted from the “grep” command as an argument in a bash script?

I have a file called "krylov_methods", which has text like this: cg - preconditioned cgne - normal equations nash - cg subject to constraint stcg - another method for constraints gmres - ...
0
votes
1answer
95 views

assign cuda to a specific gpu

Two NVIDIA 780Ti cards installed. Using cuda 7.5 on Ubuntu 14.04. Postinstallation checklist shows cuda installed properly and functions properly. My monitors are attached to device 0. I compiled the ...