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

learn more… | top users | synonyms

0
votes
2answers
28 views

How i can run java from terminal? [on hold]

I've copy the java from downloads folder to the bin folder and I've tried so many ways to set it. So can just type java in terminal. But it always not working. Please help me.
0
votes
1answer
32 views

Getting error while starting ubuntu 14.04

Every time I start my system I received this message: Error found when loading /etc/profile: /etc/profile: line 1: syntax error near unexpected token (' /etc/profile: line 1:iamgreat# /etc/profile: ...
0
votes
0answers
13 views

HBase and Java_HOME

I have set JAVA_HOME. Nevertheless HBase doesn't recognize it. vagrant@precise32:/usr/local/hbase-1.0.3$ echo $JAVA_HOME /usr/lib/jvm/java-1.7.0-openjdk-i386 vagrant@precise32:/usr/local/hbase-1.0.3$ ...
0
votes
1answer
36 views

Ubuntu 15: after installing and configuring java, echo $JAVA_Home is working, Java -version is not working

I have installed the oracle Java 8 and configure it. cmd-> echo $JAVA_HOME /usr/lib/jvm/oracle_jdk8 cmd-> echo $PATH ...
1
vote
1answer
24 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
0answers
18 views

XFCE4 equivalent for GTK2_RC_FILES (for per-application basis themes)

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
3answers
51 views

How do i efficiently use environment variables?

I'm curious about learning about choosing correct env. variables. How to make out setting what env. variable would get the job done Example: if you want to make sure that command history always ...
0
votes
2answers
34 views

Add android-studio/bin/ to PATH environmental variable

Recently I installed Android Studio. Now I want to add android-studio/bin/ persistently to PATH environmental variable as Session-wide environment variables and not as System-wide environment ...
0
votes
0answers
28 views

variable exported in sourced file not available

I have a script that contains the following: #!/bin/bash source $HOME/.bashrc echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" This script is run on @reboot by cron, with output redirected to a log file. ...
2
votes
3answers
37 views

$JAVA_HOME resets after every terminal login

I just installed openjdk-8-jdk. I already had openjdk-7-jdk installed. When I ran echo $JAVA_HOME, it printed /usr/lib/jvm/java-7-openjdk-amd64. So I tried changing the $JAVA_HOME variable but it ...
0
votes
0answers
11 views

Unicorn not setting ENV variables for Rails on a Droplet on Digital Ocean

I started out with the Rails Droplet, made some changes, wiped some keys, and then created my own image. I started from this tutorial: ...
0
votes
2answers
30 views

Adding further variable to until command

I have the following command which works ok but I would like to add a further variable in somehow: #!/bin/bash x=40000 until [ $x = "180000" ]; do dd bs=1 if=static.file of=extracted${x}.file ...
-2
votes
1answer
40 views

Adding Scala to `PATH` in Zsh

I have downloaded Scala to ~/bin for easy access on my machine; but I seem to have some difficulty adding it to the PATH. On my MacBook I simply added the following to ~/.profile and everything just ...
0
votes
0answers
8 views

Can bash wrapline according to a tab?

Right now in bash, if a string of characters is too long for the window to display, it wraps the text, slicing words in half, and does not keep the tab indentation set at the beginning of the line. ...
0
votes
0answers
19 views

Cannot update /var/lib/gdm/.ICEauthority after restoring /var directory

I have tried the following for getting this error fixed. Boot into "Recovery Mode". Input the root password for maintenance mode. Go to the /var/lib/gdm folder (cd /var/lib/gdm). Remove the ...
0
votes
1answer
37 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
2k 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
10 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
57 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
21 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
34 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
30 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
40 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
33 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
186 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
37 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
80 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
25 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
101 views

Where is my PATH variable being set?

I'm trying to set my path variable to look like this: ...
0
votes
0answers
21 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
97 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
61 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
145 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
67 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
51 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
2k 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
84 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
65 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
53 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 ...
1
vote
2answers
100 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
38 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
967 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
48 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
64 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
84 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
37 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
60 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
97 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
53 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 ...