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

learn more… | top users | synonyms

0
votes
0answers
6 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
38 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
27 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
14 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 ...
-3
votes
0answers
22 views

Environmental variables [duplicate]

I define a variable x=5 in ~/.bashrc and a variable with the same name x=6 is in /etc/bashrc. When I echo $x the result is x=6. Is it right that the environmental system variable overrides user ...
0
votes
2answers
31 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., ...
2
votes
1answer
39 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 . ...
0
votes
1answer
27 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
4answers
677 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 ...
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
26 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
36 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
1answer
26 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
226 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
43 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 ...
1
vote
1answer
100 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 ...
3
votes
1answer
55 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
26 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 ...
0
votes
0answers
96 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 ...
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 ...
3
votes
1answer
88 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 ...
1
vote
1answer
58 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
54 views

Installing Android Studio Application [duplicate]

how to add android-studio/bin/ to my PATH environmental variable?
1
vote
2answers
131 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 ...
1
vote
1answer
45 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
60 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 ...
1
vote
1answer
117 views

Unable to launch Spark

I followed this answer. I am getting this error: spark-class: line 86: /usr/lib/jvm/java-8-oracle/bin/java: No such file or directory And to my surprise, I have: gsamaras@gsamaras:/usr/lib/jvm$ ...
0
votes
2answers
46 views

How i can run java from terminal? [closed]

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
0answers
87 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
79 views

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

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
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
0answers
35 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
68 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
152 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
30 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
78 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
50 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
32 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
75 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
9 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
31 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
76 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
17 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
105 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
36 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
55 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
51 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. ...