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

learn more… | top users | synonyms

0
votes
1answer
39 views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
7
votes
5answers
706 views

How to open a program typing directly its name on the terminal?

I have just recently installed Light Table downloading it from the git repository, and followed the instructions on this website to create a desktop launcher. Now I want to run the program by ...
0
votes
1answer
17 views

problem to update bash profile

Each time i work with a tool named criu, i set the path variable: PATH=$PATH:/home/th/criu-1.3-rc2; export PATH to be able to run criu dump but when I close the terminal and open it, it does ...
0
votes
0answers
14 views

Environment Variable - how does properly set them (bashrc or profile) [duplicate]

I am very new in Ubuntu and I am lost about Environment Variable. I have read some Forums but I didn't understand yet. If I type java -version I got the java confirmation but if I type echo ...
1
vote
2answers
26 views

Can the PATH variable be corrupted?

I installed rbenv, a ruby version management program. I looked in the .bashrc file and noticed that the path variable was changed as below: export PATH="$HOME/.rbenv/bin:$PATH" I think the ":$PATH" ...
1
vote
1answer
30 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 But I found their ...
1
vote
2answers
35 views

Echos, variables, and help with this question

The book Learning The Bash Shell says- "Notice that we used double quotes around variables (and strings containing them) in these echo examples. In Chapter 1, we said that some special characters ...
1
vote
1answer
60 views

Why can't a process see environment variables set in /etc/environment?

I defined several environment variables in /etc/environment, but a process (build started by TeamCity) cannot see their values. I don't know what I'm doing wrong here.. this is the content of my ...
0
votes
0answers
15 views

$DISPLAY environment variable changes upon (almost) every reboot

I am facing a very strange problem. I have a one display connected to my PC. However the $DISPLAY variable changes almost every time I reboot. For now it is :0.0, but before reboot it was :1.0. There ...
0
votes
1answer
76 views

How to configure path or set environment variables for installation?

I'm aiming to install APE in Ubuntu 14.04 LTS, a simple code for pseudopotential generation. I'm having this error message while running ./configure: checking for gsl-config... no checking for GSL - ...
1
vote
2answers
120 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 ...
1
vote
2answers
86 views

How to include environment Variable in launcher for icon

This is an extension to the question how to include an environment variable in the launcher? . This question explains how to use the environment variable for the Exec part of the .desktop file but not ...
0
votes
0answers
34 views

How to set environmental variables for LuaSocket in Ubuntu?

I have installed the LuaSocket(luasocket-2.0.2.tar.gz) using this manual. But while performing the commands to require function to gain access to whatever module you need as below: socket = ...
0
votes
0answers
25 views

How can I see environment variables defined in .profile after lauching sudo codeblocks?

I am developing code with C++ in code::blocks. Because my code needs to access mice devices I launch code::blocks with sudo as superuser in an xterm I opened first. In the code I would like to read ...
0
votes
1answer
26 views

Why do I not have the $MAIL environment variable?

I read that the $MAIL shell environment variable is one of the most common ones, and stores the location of my mailbox file, where my emails are stored. I looked into the /var/spool/mail and ...
20
votes
4answers
3k views

Why does “A=10 echo $A” not print 10?

This command: A=10 echo $A prints an empty line. Why not 10? Why doesn't the in-place temporary environment setting work? I want to know the reason and explanation rather than solution. I used ...
0
votes
1answer
61 views

Bash script not adding variables to session [duplicate]

I have a bash script that I have added as a startup application. It does a bunch of exports and alias assignment. #! /bin/bash alias devhm='cd ${DEV_HOME}; ll'; alias wlhm='cd ${WL_HOME}; ll'; alias ...
1
vote
2answers
71 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 ...
4
votes
3answers
427 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 ...
0
votes
1answer
24 views

How to set the environmental variables in ubuntu to install lua?

Great day guys,I am trying to install the Lua on ubuntu.Inorder to set the environmental variables for Lua how can i procede?Thanks in advance
1
vote
1answer
50 views

Solving $PATH obfuscation by /bin/sh (dash)

This question is a follow-up from http://unix.stackexchange.com/questions/126955/percent-in-path-environment-variable. I post it here, since it is more distro-specific. The shell used by default for ...
1
vote
1answer
114 views

Bash script doesn't execute command from PATH

I have this simple script: #!/bin/bash echo ${HADOOP_HOME} $(hadoop fs -ls) The output is: /opt/hadoop-0.20.2-cdh3u2 ./hello.sh: line 3: Found: command not found So bash definitely sees ...
0
votes
0answers
35 views

Apache envvars from external file

I want to have my global environment variables located in /etc/environ loaded in apache2 to prevent duplication between /etc/environ and /etc/apache2/envvars. I've seen that other operating systems ...
7
votes
2answers
524 views

Terminal prompt messed up after changing value of PS1

I carelessly entered a command in the terminal that should have been in a shell script: export PS1=$PATH:~/drush23/drush/ now in my terminal instead of this: ubuntu@ip-10-16-134-18:/home/ubuntu$ ...
0
votes
0answers
26 views

Environment variable spoiled

In ~/.profile I have this: . "$HOME/projects/devenv.sh" In $HOME/projects/devenv.sh I have: BASEDIR=$(dirname $0) export APILIB_CONFIG="$BASEDIR/apilib.conf" echo "$APILIB_CONFIG" When I open a ...
0
votes
2answers
114 views

Adding JAVA_HOME (JDK) in .bashrc

I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable. In ~/.bashrc I added: # Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 ...
0
votes
0answers
56 views

How to get write permission on /etc/environment?

I want to add mysql Connector jar file to classpath and by browsing through the net. I read that a global way to do it is to update the /etc/enviroment but the file opens as readonly. What I don't get ...
0
votes
1answer
236 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 ...
4
votes
2answers
111 views

Use system environment variable for snort.conf HOME_NET setting

I'm setting up a mass deployment image that includes snort. Since I don't know the network address range that each image will reside on I thought about using an environment variable to hold the ...
1
vote
3answers
622 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 ...
1
vote
1answer
35 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
36 views

Reload profile with java version

.profile has export JAVA_HOME=$DEV_HOME/tools/jdk1.6.0_45 # export JAVA_HOME=$DEV_HOME/tools/jdk1.7.0_51 # export JAVA_HOME=$DEV_HOME/tools/jdk1.8.0 export PATH=$PATH:$JAVA_HOME/bin I work with ...
0
votes
2answers
177 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
136 views

Environment Variables and .bashrc [closed]

I need Help in this: that is how to do this Edit the setting file of the user. In our case it should be in the root directory of the user and the name is .bashrc or .bash_profile 2.- Add the ...
0
votes
1answer
30 views

environment setup for Importing a userdefined module

I am creating an User defined module an .so file and importing that in the python module. The functions in the library are not responding as expected. What are the environment variables to be set ...
3
votes
1answer
230 views

Setting path in ubuntu 13.10

In Ubuntu 13.10 I installed : stable_Ubuntu-13.10-i686.deb and Ubuntu-13.10-i686.deb, but when starting GNURadio the following message appears : Cannot import gnuradio. Is the python path ...
0
votes
1answer
64 views

Running a service ignores environment variables

I have a /ect/init/application.conf file that looks something like... start on filesystem and net-device-up IFACE!=lo stop on runlevel [016] respawn export NODE_ENV=production chdir ...
2
votes
3answers
387 views

Problem to set JAVA_HOME

In ~/.bash_profile I set the following: export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386/bin/java export PATH=$PATH:/usr/lib/jvm/java-7-openjdk-i386/bin After saving and close I ran: sudo su ...
3
votes
1answer
242 views

Why are 'source' and '.' not always the same, when they're supposed to be identical?

I was under the impression that source was a synonym for . in bash. However, it seems that in the .profile file, source doesn't work. This youtube video demonstrates that when source is used in ...
0
votes
0answers
31 views

Infinality font patches ignore environment variables

I installed Infinality patches for Freetype font renderer on my Ubuntu 13.10 system. I wanted to emulate Windows fonts. I tried a few pre-defined themes (Win7 and OSX2) in infctl.sh. It really ...
1
vote
1answer
927 views

NDK_ROOT enviroment variable defined but script does not see it

In my ~/.bashrc i have this: export ANDROID_SDK=~/Devel/android_dev_x64/sdk export ANDROID_NDK=~/Devel/android-ndk-r9d export NDK_ROOT=$ANDROID_NDK export ...
1
vote
1answer
208 views

Call shell script “inline” in another shell script

So the bottom line here is that I am trying to have one go-to script work to set environment variables (let's call it setenv.sh) that will be used in subsequent scripts. In Windows (I know, that is a ...
2
votes
1answer
196 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?
2
votes
1answer
75 views

bashrc shortcuts in Tmux

I have sets many shortcuts in .bashrc profile of local user, and they work properly. Currently on my 12.04 system but when ever I tried to used them in tmux, I always get the same response command not ...
5
votes
2answers
3k 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 ...
0
votes
3answers
104 views

Command line to add a directory to the PATH if it's not already there

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 ...
0
votes
1answer
64 views

How to combine two enviroment variables into one command?

I have an old pc and I installed Ubuntu 13. 10 on it. I also installed skype and the issue is that I have a huge audio latency or my webcam not work. I have work by replace 'Exec=skype' with: Audio ...
2
votes
1answer
100 views

Expanding environment variables in Nautilus

I have a "sandbox" folder on my 13.10 PC, which I use for anything along the lines of "testing", or if I'm updating a piece of code and want it to be completely separate from everything else. In order ...
1
vote
1answer
270 views

setting PATH to /etc/profile or /etc/environment does not work with sudo

I want to launch Intellij IDEA IDE via sudo idea.sh. sudo because IDE needs to manupulate files from /etc/share. idea.sh is placed at /home/<username>/<path>/bin/idea.sh. I tried to add ...
1
vote
1answer
503 views

How to solve old GLIB error

I am in the process of installing GTK+ but it needs various pre-requisites. These are glib - 2.0 >= 2.35.3 atk - >= 2.7.5 Pango- >= 1.32.4 gdk-pixbuf-2.0 >= 2.27.1 Now I upgraded my ...