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

learn more… | top users | synonyms

1
vote
1answer
231 views

Unable to press 'E' key in bash when I add export EDITOR=vim in /etc/inputrc

When I add the line export EDITOR=vim into /etc/inputrc and start a new session in BASH, I am unable to press the E key on the keyboard. (Well, I can press it, physically, but nothing shows up in the ...
1
vote
2answers
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
1k views

Explanation of exporting a path variable

Was hoping someone can explain what the command to exporting a path variable means? e.g.: alias TEST1="/usr/local/test1" export PATH=$TEST1:$PATH Does the colon append?
7
votes
3answers
17k views

Add bash script folder to path?

I have some bash scripts in an application folder that I'd like to use as if they were on my path. If they were straight-up applications, I'd just add the directory to ~/.bashrc, but these are ...
6
votes
4answers
185 views

Why doesn't changing a variable in a script alter it outside the script?

Let's say I export a variable with the terminal. After that I call a script that alters that variable to something else. But when I return to the terminal and echo the variable, it remains as its ...
8
votes
2answers
2k views

How to add a user environment aware application launcher to unity panel?

Here is my problem: When I search from Unity's Dash Home for NetBeans and drag&drop it to unity launcher it, I observed that netbeans does not have access to my environment variables which were ...
6
votes
3answers
16k views

How do I install the Instant Messaging application IP Messenger?

I've recently downloaded g2ipmsg (IP Messenger for Ubuntu 11.10). However - this comes not as an installable package as previous ubuntu versions. Thus I think I need to compile it. This application ...
2
votes
1answer
1k views

Is there a difference between using setuid()/setgid() within a program and invoking it with sudo -u xxx -g xxx?

Consider this python script, which invokes HandBrakeCLI, a program that attempts to read from the dvd drive: invoke.py #!/usr/bin/python import sys import os import subprocess as subp import ...
5
votes
1answer
4k views

How to move the user cache directory [~/.cache] out of the /home directory to another partition

The .cache directory is full of volatile, non-essential files. I would like to move it to a more appropriate partition, i.e. faster and not backed up. I believe that ~/.pam_environment file is ...
2
votes
2answers
23k views

Setting Java CLASSPATH

I've done java development before but generally on windows (but I'm by no means an expert). I just want to set my CLASSPATH. When I run: echo $CLASSPATH (Is that right)? I get a empty line. So, ...
3
votes
3answers
5k views

How do I set an environment variable in a Unity session?

As a work-around to an issue with ibus, I'm trying to unset the variable $IBUS_ENABLE_SYNC_MODE. I have tried placing "unset IBUS_ENABLE_SYNC_MODE" in various places including: .profile .bashrc ...
10
votes
2answers
6k views

Referencing environment variables *in* /etc/environment?

I recently discovered /etc/environment, which seems a more standard way to setup simple environment variables than scripts, but I was wondering if there was a way to back-reference environment ...
1
vote
2answers
10k views

Export Display - Can't open display

I'm running xubuntu 11.10. From php, I'm calling a shell that exports the display and then calls wmctrl. Every time I call wmctrl, I see an error "Cannot open display". I call my shell from php: ...
1
vote
1answer
1k views

export commands ignored in /etc/apache2/envvars script -

Maybe this belongs to Serverfault or launchpad.net, but here we go anyway: In Oneiric, there is an export command in this script /etc/apache2/envvars , setting LANG. This gets ignored on my server. ...
7
votes
1answer
6k views

Expand variables in upstart script

I have written several upstart scripts to start transmission-daemon for several users. The script is this: start on (local-filesystems and net-device-up IFACE=eth0 and runlevel [235]) stop on ...
10
votes
1answer
1k views

Is there an environment variable that is set for Unity?

My script needs to be able to detect if the Unity is being used on top of the Gnome DE. The only other way I can think of is basically seeing if the config file is there.
14
votes
4answers
9k views

Setting TeX Live path for root

I have installed TeX Live 2011 vanilla and I have trouble setting the TeX Live path for root (in Ubuntu 11.10). The problem is that when I run sudo tlmgr I get: sudo: tlmgr: command not found To ...
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
4
votes
2answers
3k views

How do I set an environment variable at boot time (via a script)?

I'd like to set a couple of environment variables (at boot time) on an Ubuntu machine (10.04), but I want to create their value via a script, much like: export ...
2
votes
1answer
4k views

When I type in terminal: export JDK_HOME=“/usr/lib/jvm/java-6-sun/”, where does it get stored?

I have tried multiple locations, but with no luck of finding where was it added: .bashrc .bash_profile /etc/profile /etc/environment .profile When I do echo $JDK_HOME, I get what I expect ...
6
votes
4answers
37k views

How to set environmental variable PATH?

I'm using Ubuntu 10.10 and downloaded jdk7 from java.sun.com. That jdk is a compressed file and on extraction there I got all the files and folders of jdk1.7.0. But now if I tries to compile a java ...
6
votes
1answer
6k views

/etc/environment and /etc/profile.d/* ignored for the root user [duplicate]

How do I set global environment variables in Ubuntu, in such a way, that they would apply also to root user? Setting PATH or JAVA_HOME in /etc/environment or in /etc/profile.d/my_settings.sh both ...
23
votes
5answers
33k 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 ...
1
vote
1answer
1k views

“ls” not working on Ubuntu 10.04

All of the sudden the handy command ls stopped working on my Ubuntu 10.04 server. The only thing I did was add a new entry to the PATH environment variable and that was all. Here is the result from ...
3
votes
1answer
888 views

How do I get Guake(terminal) to report the correct terminal?

I've been using Guake on my laptop and my desktop and everything has been fine until I recently bought a new HD and did a fresh install of Ubuntu 10.10. I installed Guake and it works fine except for ...
46
votes
3answers
76k views

BASH script to set environment variables not working

I've written the following script to set some environment variables when needed. #!/bin/sh export BASE=/home/develop/trees echo $BASE export PATH=$PATH:$BASE echo $PATH Below the command and the ...
4
votes
2answers
5k views

Can't echo $CATALINA_HOME

When I echo $CATALINA_HOME I get a blank line, but when I ls $CATALINA_HOME I correctly get a listing of the directory. Why can't I echo it? I am running Ubuntu 11.04.
10
votes
1answer
13k views

How to reload variables from /etc/environment without re-logging in?

How to reload variables from /etc/environment without re-logging in? source /etc/environment in bash works for program run through terminal, but running programs through shortcuts at GUI does not ...
2
votes
1answer
641 views

How to setup user environ vars?

Is it possible to setup user environ before any user shell and X session? I mean, X sessions won't read /etc/profile, .profile at all. And user shells won't read /etc/X11/* at all. I want to set such ...
4
votes
2answers
3k views

How to recall history in teminal

I installed Ubuntu 10.10 yesterday. Then while using the terminal I noticed that once I quit a terminal session its history is gone, although history exists for applications in terminal ...
21
votes
4answers
9k views

Bash auto complete for environment variables [closed]

The bash autocomplete feature does not seem to work with environment variables in 11.04. The current behavior is indicated below export SCRIPT=/home/user/script cd $SCRIPT/<tab> results in a ...
4
votes
1answer
11k views

libxml2.so.2 No version information available

I repeatedly get the following error when using GRASS GIS and I think a few other programs: /usr/local/lib/libxml2.so.2: no version information available ... As far as I can tell I have libxml2 ...
2
votes
2answers
2k views

Environment variables from /etc/environment not propagated to child process?

I'm having a problem. I have set an environment variable in /etc/environment using BOOST_LIBRARYDIR="/usr/local/lib/boost/release". echo $BOOST_LIBRARYDIR correctly echoes the value to the terminal. ...
1
vote
1answer
2k views

Path not setting up for a setup

I am unable to add path of my omnet bin directory for the installation. During the installation i go to the omnet directory and enter ./configure which gives me the following errors WARNING: your ...
4
votes
2answers
1k views

What is the meaning and format of LANGUAGE?

I'm used to environment variables such as LANG and LC_*, but I recently noticed a LANGUAGE variable on my Ubuntu desktop. It's value was pt_BR:pt:en, and I'm wondering exactly what is meaning is. ...
7
votes
4answers
2k views

Possible to add all subdirectories when adding a directory to $PATH

When adding some directory to $PATH by PATH=~/my_program/bin:”${PATH}” is it true that only executables directly under the directory will be found via $PATH, but other executables under its ...
1
vote
1answer
3k views

PATH command not found

I'm not experienced with PATH (Any good reference would be appreciated), but I made a mistake and did PATH=/google_appengine, which I'm assuming completely overrid PATH. Still, I restarted bash and ...
0
votes
1answer
3k views

How do you unset an environmental variable using a script?

If I have HTTP_PROXY defined in default my environment (by ~/.bash_profile), how can I unset the variable from a script? I know that I can do unset HTTP_PROXY from the command line, but if I try to ...
0
votes
2answers
7k views

The annoyed configuration of java-6-openjdk

I want to change the java environment to java-6-openjdk. /etc/environment: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" JAVA_HOME=/usr/lib/jvm/java-6-openjdk/ ...
3
votes
1answer
2k views

Google Earth and $BROWSER environment variable

When I click on a picture in Google Earth to view it in full-screen, it shows me this error message: Could not launch any web browser. Please make sure you have set the $BROWSER environment ...
16
votes
3answers
14k 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?
3
votes
0answers
10k views

How to properly set up Sun's JDK? [duplicate]

Possible Duplicate: How do I install Oracle's JDK 6? I'm trying to manually install the Sun JDK package (I have my reasons, don't bother asking why). I've successfully extracted the ...
20
votes
2answers
45k 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 ...
2
votes
2answers
6k views

How can I make sure an environment variable is set when I sudo?

How can I make sure an environment variable (GRAILS_HOME for example) is set when I sudo? I put a script in my /etc/profile.d with this value and made it ugo+x. What do I need to do to make this ...
5
votes
1answer
8k views

What is the all_proxy environment variable used for?

When I type set | grep -i proxy I see all environmental variables which refers to proxy settings. I understand the meaning of http_proxy and ftp_proxy but what is all_proxy used for and where can ...
3
votes
2answers
716 views

Application specific environment variable settings

I'm trying to work around a known bug in Ubuntu 9.10, where using the scrollbar in emacs causes text to be highlighted, and the cursor to move. This page here shows that you can fix this by setting an ...
14
votes
3answers
15k views

Configuring Firefox to use a proxy from the command line

I'm looking for a way to tell Firefox to use a proxy in Ubuntu Ludid (10.04.1 LTS). I'm installing Ubuntu semi-automatically on several identical machines. For this, I use a script that, amongst ...
1
vote
2answers
2k views

“$MAKEOPTS” ignored, why?

I have defined export MAKEOPTS="-j4" in my ~/.profile file. But when I do a compilation with make, this option is ignored. I've consulted the GNU Make manual but it says nothing about this ...
2
votes
3answers
410 views

What other bash variables are available during execution such as $USER that can assist on my script?

This is related to question Why is this bypassing the SUDO password?. In that one of the responders answered the question in an awesome way, and very, very clear to any newbie. Now here is a question ...
3
votes
3answers
2k views

How to log in after wrongly modifying path

I wanted to add a path so that the system could find some manually installed executable. However, instead of typing PATH=xxx:$PATH;export PATH at the end of ~/.profile where xxx is the directory in ...