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

learn more… | top users | synonyms

0
votes
1answer
84 views

Default environment for screen is /bin/sh when it should be /bin/bash?

I'm trying to invoke a program to run on startup in /etc/rc.local which runs two commands: Start a detatched screen using screen -dmS name Send a command to that screen using screen -S name -X ...
11
votes
6answers
3k views

What does export PATH=something:$PATH mean?

I am very new to Linux and I put the following command at the end of the file .profile under my home folder: export PATH="~/.composer/vendor/bin:$PATH" I know the issues of environment variables ...
0
votes
0answers
23 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 existe el archivo o el directorio executable.js #!/usr/bin/env jjs ...
0
votes
1answer
132 views

Vim-LatexSuite: /bin/bash: latex command not found

TeXLive 2015: I installed TeXLive 2015 following the simplest instruction sudo ./install-tl-ubuntu (without any options) of scottkosty/install-tl-ubuntu@GitHub. Vim-Latex-Suite: I installed ...
0
votes
0answers
41 views

Assigning 2 system-wide environmental varibales

Ubuntu 14.04 LTS. I need two system-wide environment variables: FOOD2FORK_KEY, FOOD2FORK_SERVER_AND_PORT In /etc/profile.d I have created a file module3.sh with: ...
0
votes
0answers
59 views

How to create a symlink without expanding variable?

I'm trying to create a symlink that links /root/.gtkrc-2.0.mine to /home/$USER/.gtkrc-2.0.mine. Whenever I try to run the following, the variable expands, so if I copied it to another computer, it ...
1
vote
1answer
56 views

Replace word in file with Username [duplicate]

I am trying to replace a word in a text file with the current username. I am trying to do this with "sed" using $USER, but it keeps actually writing "$USER" in the text file instead of my username. ...
0
votes
1answer
252 views

How to load environment variable from a file for an upstart job?

I'm writing an upstart job for a service that is configured using environment variables, and a lot of them (> 20). The way this was handled so far was usually to run it from a Ruby launcher that ...
-1
votes
1answer
38 views

Which config file has my path variable? [duplicate]

So in my "the linux command line" book, it says this "The PATH variable is often (but not always, depending on the distribution) set by the /etc/profile startup file and with this code: ...
6
votes
3answers
459 views

How do I find out what my default terminal text editor is? [duplicate]

While reading the git introductory material, I read a piece that brought this question to mind. How do I use the Terminal to find out what my Default Text Editor is? Are there a General Commands ...
0
votes
2answers
56 views

How to edit the `$PATH` variable [duplicate]

Where exactly is the $PATH variable stored? I am changing the /etc/environment file with my desired path. Then I am doing echo $PATH and the old version is showed.
2
votes
1answer
359 views

Setting system-wide environment variable using /etc/environment

I want to add to my PATH so that my computer (Ubuntu) knows where to interpret the "R" command (for launching R). I need this so a Terminal or RStudio can find where I installed R. I did all of the ...
0
votes
1answer
63 views

PATH variable for newly installed executable files

I am installing a series of programs for bioinformatics purposes; I am installing the folders of these packages in /usr/local/lib/ and creating soft links to the executable files in /usr/bin/ so I am ...
2
votes
2answers
188 views

Where is my PATH variable being set?

I'm trying to set my path variable to look like this: ...
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 ...
4
votes
3answers
166 views

How to set session-wide environment variables and PATH?

I have seen other people on the Internet also having this problem but the solutions have been non-conclusive, so I wanted to bring it to attention again. According to this page in Ubuntu wiki: ...
0
votes
1answer
121 views

Why do variables set in my /etc/environment show up in my cron environment?

For a long time, I have been used to thinking that any environment I wanted in cron, I basically needed to set in the crontab itself -- see the "Different Environment", likely top answer here: Reasons ...
2
votes
2answers
193 views

Can't access shell variable in crontab configuration

I have problem in accessing a shell variable while running cron job. Actually i created a job which prints two shell variable values into a env.output file. I am writing cron job using command $ ...
0
votes
1answer
117 views

How to configure a systemd service that uses D-Bus?

I wrote a script that sends notifications. The script calls notify-send to do this, and notify-send requires a D-Bus environment variable to work: DBUS_SESSION_BUS_ADDRESS. When I run my script from ...
2
votes
3answers
54 views

My own variable for long paths

I'm writing some backup script and target path is pretty long. Could I define something like this? TARGET='/media/user/externaldrive/folder with spaces/blahblah' And then use it like this as part ...
0
votes
0answers
17 views

Is it possible to create a symbolic link that relies on an environmental variable instead of a absolute path?

The Environmental variable will contain the absolute path. That way if an entire sub-directory is moved then one only needs to edit the environmental variable. For example if we have some directory ...
1
vote
1answer
5k views

Setting Environment Variables for Android Studio [duplicate]

I am running cordova, so i wanted to install android-sdk. Here is the path Android-Studio Path = /home/apps/android-studio Android- /Android/Sdk Whenever i tried to add via export.. it seems to be ...
3
votes
1answer
117 views

What's the correct way to change the `PATH` environmental variable?

When it comes to changing the PATH environment variable (say, in "~/.bashrc"), I've seen some different ways of doing it: PATH=$PATH:/new/path PATH="$PATH:/new/path" export PATH = $PATH:/new/path ...
2
votes
1answer
129 views

How to downgrade/unpatch bash for ubuntu 12.04 LTS to get back to the original vulnerable version of it?

I am using Ubuntu 12.04 LTS. I tried resolving the the shell-shock vulnerability of environment variables by updating bash. Is there any way to downgrade the bash and again try and demonstrate for the ...
0
votes
2answers
56 views

Is there a environment variable that gives out version of ubuntu and version of the kernel?

Is there a environment variable that gives out version of ubuntu and another that gives out version of the kernel? I am guessing the answer is no as printenv | grep 14.04 gave nothing but I thought I ...
2
votes
2answers
256 views

Problem in setting JAVA_HOME variable

I have installed JDK on path /usr/lib/jvm/java-8-oracle. To set JAVA_HOME variable, I opened /etc/environment in gedit and added : JAVA_HOME="/usr/lib/jvm/java-8-oracle" to it. But I got error ...
-1
votes
1answer
50 views

when tried to edit .bashrc file The command could not be located because '/usr/bin' is not included in the PATH environment variable [duplicate]

When i tried to edit .bashrc file I am getting the above error how to solve this. when i gave $ echo $PATH /home/vijay/usr/bin:PATH:/bin is displayed Steps in detail would help
1
vote
2answers
4k views

Importing a Python module works from command line, but not from PyCharm

My default Python binary is set to the one with the Anaconda distribution of Python. This is found at /home/karnivaurus/anaconda/bin/python, and I have made this the default by adding to my .bashrc ...
1
vote
1answer
74 views

Multiple binaries with the same name

If I have two executable files with the same name on $PATH, how does Ubuntu decide which one to use when it is run in the terminal? For example, my Ubuntu originally had python installed at ...
1
vote
1answer
89 views

gcc not found while executing shell script

invalid command name "gcc" while executing "gcc rsa.c -o rsa -lm" (file "./run.sh" line 1) does gcc-4.9.2 works correctly on ns-2.35 or is it gcc-4.4
0
votes
3answers
198 views

Run .bashrc commands without opening a terminal [duplicate]

I have been editing my .bashrc file to run some commands, such as appending directories to the PATH variable. However, from my knowledge, .bashrc is only executed when a terminal is opened. ...
0
votes
1answer
43 views

(Bad Variable: Line 36) Please Help!

What have I done wrong here?, cause when I run my script and stop it after I set the variable, it says I have a bad variable qmail.script: 36: read: : bad variable name. Help would be much ...
2
votes
1answer
107 views

Changing the value of $HOME in .bashrc

First of all a bit of background. I apologise in advance for the misuse of terminology. Please correct me where necessary. For my work I am going to be running simulations remotely via ssh on several ...
0
votes
1answer
134 views

qt broken link and environment variable

I've installed qt5.5 from PPA. But I'm getting following output. ansh@ansh-HP:~$ qmake -query qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory ...
1
vote
1answer
68 views

Different environment variables depending on gui or shell

The environment variables of a program differ on whether it is started from a terminal or from the desktop (by clicking on its icon). For example: I use bash and have specific variables set in my ...
0
votes
0answers
239 views

Trying to install Maven, getting JAVA_HOME error

I already have jdk installed and now I would like to learn Maven. When I run mvn -version I get: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/local/java/jdk.1.8.0_60/bin/java ...
0
votes
1answer
26 views

How can I find all the possible cron settings?

I recently discovered that cron (at least on Ubuntu 14+) supports a setting called CONTENT_TYPE where I can specify the content type for emails like: CONTENT_TYPE="text/html; charset=utf-8" On ...
0
votes
1answer
250 views

Errors when importing with pip due to PYTHONPATH on ubuntu server

I've been following this tutorial and it states that The $PYTHONPATH variable seems to get unset randomly, and causes errors for later steps. and then to add the following to ~/.bashrc: export ...
0
votes
1answer
1k views

Unable to set JAVA_HOME to jdk

I am trying to run android studio on ubuntu 14.04 LTS. But when I run the studio.sh script, i am asked to set JAVA_HOME to jdk from jre. Despite the fact that I have set ...
0
votes
0answers
23 views

How do I configure OpenSSH to deliver the server's environment and paths to the connecting session?

I've just installed an OpenSSH server through apt-get. Immediately, I noticed that when connecting through SSH I don't have the same paths enabled as I do when I am physically using the server ...
11
votes
1answer
372 views

Is there a previous-directory variable?

The environmental variable in $PWD has the current working directory. Is there a variable that contains the previous directory? If there is not, how might one be created? I think this could be ...
1
vote
1answer
114 views

Can't run application with wine due to environment variable

can someone help me to install right environment variable for Oracle? Try to run app with wine and get error: Initialization error Oracle Client not properly installed OracleHomeKey: OracleHomeDir: ...
0
votes
1answer
48 views

Can't log into Ubuntu 14.04 and no command works!

Any attempt to log into Ubuntu 14.04 keeps looping back into the login page again and again. I tried ctrl + alt + f2 it logs in but no command works. it says the command (what ever it is, like sudo ...
2
votes
1answer
29 views

Deleted $WORK Directory

So I made a mistake working on a school assignment and I'm curious what exactly it is that I did. I used ssh to log in to a supercomputer provided for the class and used scp to copy a file to my ...
1
vote
0answers
191 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
1answer
173 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
51 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
66 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
39 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
54 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 ...