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

learn more… | top users | synonyms

0
votes
0answers
14 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
16 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 ...
8
votes
4answers
25k 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 ...
9
votes
2answers
44k 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
50k 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
10 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 ...
16
votes
3answers
16k 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
0answers
33 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
49 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
11 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
53 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
36 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
20 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
205 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 ...
0
votes
2answers
33 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
330 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
732 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
40 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
141 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
31 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
2k 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
53 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 ...
0
votes
0answers
24 views

Export path with spaces to ~/.profile [duplicate]

So this is very, very weird. Hoping for some help. This is the path I'm trying to export in my ~/.profile: /var/lib/plexmediaserver/Library/Application Support/Plex Media Server Here is what I ...
4
votes
1answer
26 views

Why must there be a technical separation of shells into login and non-login kinds?

Shells can be login as those run by the text console and non-login as those run by Gnome Terminal. Why is this complexity needed? Why can't a login shell follow the same rules as the non-login?
0
votes
0answers
28 views

How to set environment variables with a dot(.) in ubuntu

I want to set an environment variable in bash called cloudsql.url with a value http://localhost:3306/xyz?user=username&password=password I tried with export ...
0
votes
1answer
50 views

~/.pam_environment is not workig for root

I want to use zsh for root with oh-my-zsh. I already have oh-my-zsh cloned by my regular user, so all I need to do is to set ZSH env variable to that directory. So I put this in my ...
1
vote
2answers
86 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
1answer
27 views

Define a variable inside a function [closed]

I am wondering if it is possible to do like JavaScript, calling a variable from a function, something like: function myFunction(variable){ // do some stuff here } Then we call it like: ...
1
vote
1answer
35 views

What files are ran when I log into the desktop?

I don't know how to phrase this to be clear. I'm not talking about terminals or shells, I know what the difference between login and non-login shells are. What I want to know is when I start up my ...
1
vote
1answer
137 views

Maven environment variable not working on other terminal

When I run echo $PATH and echo $JAVA_HOME command as a normal user, I get jdk path variables set. But when I run as a root user, the variables are not set there. I copied maven binary folder to /opt ...
2
votes
2answers
9k 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 ...
1
vote
1answer
229 views

'echo $SHELL' returns 'fish' when I'm using 'zsh' [duplicate]

First I installed fish and then I wanted to test zsh so I installed it. Actually I'm using zsh and it works perfect (at the moment): I can switch themes, enable plugins, etc... But when I do: echo ...
0
votes
0answers
19 views

Unable to create a file in /etc/profile.d/ : Ubuntu 14.04 [duplicate]

I wanted to create a file oraclejdk8.sh in the folder /etc/profile.d/ according to the accepted answer given here. But in the process I am getting an error like this: ...
0
votes
1answer
50 views

In which system file does 'export' command make changes?

I installed java-8 using a PPA. After that I gave a command: export JAVA_HOME=/usr/lib/jvm/java-8-oracle I had heard somewhere that this command does temporary changes. But after many logouts and ...
27
votes
1answer
129k 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
1answer
62 views

Definitive and immediate way to export a path

Assume I want to export a path, let's say FOOBAR and make the changes not only effective immediately and everywhere but also permanent. My goal is to have a list of commands that can be entered ...
1
vote
1answer
37 views

how to revert changes on /etc/environment, which prevent a login

I have just added this line "export PATH=/opt/apache-maven-3.3.9/bin:$PATH" to my /etc/environment file. I tried to restart Ubuntu 14.04 and now I cannot log in with my user/pw in the OS. could ...
24
votes
5answers
38k 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 ...
3
votes
1answer
3k views

How to reset LD_PRELOAD

I've done the following command to set the path for LD_PRELOAD. But it's the wrong path. export LD_PRELOAD=/home/ Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is ...
3
votes
1answer
118 views

Background not changing using gsettings from cron

I'm trying to change my wallpaper to a random image using Indrajith Indraprastham's suggested script here: How to change desktop background from command line in Unity? When I run the script from a ...
0
votes
0answers
280 views

What is Environment variable and how should I set it for ionic?

I am new to Ubuntu and trying to create an ionic project. When I try to build my project with: ionic build android It says Error: Failed to find 'ANDROID_HOME' environment variable. Try setting ...
3
votes
1answer
3k views

Difference between $LOGNAME and logname

when echo $LOGNAME or logname commands run normally get same result like following: pandya@pandya-desktop:~$ echo $LOGNAME pandya pandya@pandya-desktop:~$ logname pandya So, Is there any difference ...
0
votes
0answers
31 views

add executable to path not working

I am aware that: 1- defining an executable to PATH is done in .bashrc file or .profile or in etc/profile or etc/environment. 2- to get effect, I have to source the file (source ) or restart the ...
10
votes
3answers
23k 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 ...
1
vote
1answer
100 views

Environmental variables for anaconda

I'm new to UNIX. On my windows work computer I have anaconda and do a lot of Python work. I installed anaconda on Ubuntu 14. I would like to type conda or activate in a terminal and have those ...
-1
votes
1answer
60 views

Installing Android Studio Application [duplicate]

how to add android-studio/bin/ to my PATH environmental variable?
1
vote
1answer
49 views

How does LXDE/Openbox create the app/process environment?

I want Thunderbird to use a different date/time format. A few minor mods in the .bashrc file and we're good to go. export LC_TIME=en_DK.utf8 # yyyy-mm-dd 24:mm But this only works when Thunderbird ...
1
vote
0answers
65 views

Ubuntu 14.04 LTS compass run from another user

I have an Ubuntu 14.04 VM and 3 users (root, prod, git) prod$ groups prod git$ groups git prod I have installed ruby on the VM for every user and ran source /home/prod/.rvm/scripts/rvm so I could ...