ubuntu environment variables settingproblems
location: ubuntuforums.com - date: January 24, 2009
In windows if I want to set an environment variable, I will do it in the control panel/ advance/ environment--how can I set the environment variable in ubnutu ? witch files ?
Use Ubuntu Environment Variables in Gradle Properties File
location: linuxexchange.com - date: January 1, 1970
I have an Environment Variable on an Ubuntu server, SDB_DOMAIN, that I'm trying to pass to this gradle properties file:
https://github.com/Netflix/SimianArmy/blob/master/src/main/resources/janitor.properties#L20
What's the syntax to pull environment variables into a properties file like this? I've tried a couple different ways, one example being: simianarmy.janitor.snapshots.ownerId = System.getenv("SIMIAN_OWNER_ID") but that just returns the literal value when I start the jetty server withgradlew jettRun and watch the logs.
19:55:53.957 [main] INFO c.n.s.basic.BasicSimianArmyContext - using standard class for simianarmy.client.recorder.class
19:55:54.060 [main] INFO c.n.simianarmy.aws.SimpleDBRecorder - Creating SimpleDB domain: "System.getenv(SDB_DOMAIN)"
19:55:54.122 [main] WARN c.n.simianarmy.aws.SimpleDBRecorder - Error while trying to auto-create SimpleDB domain
com.amazonaws.services.simpledb.model.InvalidParameterValueException: Value ("System.getenv(SDB_DOMAIN)") fo
Set Environment Variables Permanently in Ubuntu 12.04LTS
location: ubuntuforums.com - date: June 13, 2012
How to set Environment Variables Permanently in Ubuntu 12.04LTS?
I'm new to Ubuntu and can someone please give me a step by step solution for this?
Thank You.
Environment Variables problem with Ubuntu & Tomcat
location: linuxquestions.com - date: February 13, 2012
Hi friends,
I am new to Linux and i have a very pressing problem here. I am currently working on my Final Year Project.
Here's the problem:
My server is running on Ubuntu with tomcat6 installed.
I have this env variable "PREDICT_HOME" defined with the value "/home/edusys/predictSystem". I can get this variable with no problems at the shell cmd line.
Here's the problem, when i run some code in my JSP file under tomcat, i get an entire different set of variables as compared to the set i see when i run "env" at the shell. "PREDICT_HOME" doesn't come out at all, i need that variable value to proceed.
What could be the problem?? I am new to Linux.
Setting environment variables in Ubuntu server 10.04
location: ubuntuforums.com - date: July 4, 2011
Hi,
I always have to google about setting environment path variables when I install new software. My basic problem is that I donīt know whether these variables need to be set globally or not. I have read a number of mails/tutorials which say that Environment variables should be set by simply doing an export ..eg
EDITOR=nano
export EDITOR
additionally I have read that it should be written into /etc/bash.bashrc
But are these really global variables or local? I want the variables to be set
even after I have logged out.
so I could also write the variable here...
/etc/environment
or here
/etc/profile
Can someone please tell me where I should set the variables?
yours,
Rob
set up path and environment variables in Ubuntu 14.04 for JSF
location: linuxquestions.com - date: August 2, 2014
Hi,
I have to do JSF programming in my Ubuntu 14.04.
I've installed Eclipse, Maven & JAVA. Yet to install TomCat/GlassFish.
My installed s/w versions are:
***********************************************
java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
************************************************
Eclipse Platform
Version: 3.8.1
Build id: debbuild
************************************************
mvn --version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-32-generic", arch: "amd64", family: "unix"
************************************************
Now how to set up path and environment variables, for JSF?
set up path and environment variables in Ubuntu 14.04 for JSF
location: linuxquestions.com - date: August 2, 2014
Hi,
I have to do JSF programming in my Ubuntu 14.04.
I've installed Eclipse, Maven & JAVA. Yet to install TomCat/GlassFish.
My installed s/w versions are:
***********************************************
java -version
java version "1.7.0_55"
OpenJDK Runtime Environment (IcedTea 2.4.7) (7u55-2.4.7-1ubuntu1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
************************************************
Eclipse Platform
Version: 3.8.1
Build id: debbuild
************************************************
mvn --version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_55, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-32-generic", arch: "amd64", family: "unix"
************************************************
Now how to set up path and environment variables, for JSF?
Error on setting environment variables in Ubuntu
location: linuxexchange.com - date: February 2, 2015
I tried to add a path variable in /etc/environment on Ubuntu.
JAVA_HOME=/usr/local/java/jdk1.8.0_31
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
PATH=$PATH:$JAVA_HOME/bin
After I quit the shell and login again, it seems the $PATH has been messed up. Many common commands like ls, vim don't work anymore. I run echo $PATH and the output is:
$PATH:$JAVA_HOME/bin
Apparently, the "$" is not parsed correctly here. I wanna keep using "$" as it provides certain flexibility. Is there a work-around for this issue?
Where to set environment variables in ubuntu 12.04 [closed]
location: linuxexchange.com - date: April 16, 2014
I am confused where to set enviroment variables in Ubuntu 12.04
Now I am giving like this {editing 2 files to set path variables }
1). gedit ~/.bashrc
first line
export JAVA_OPTS="$JAVA_OPTS -Xms1024M -Xmx2048M -XX:MaxPermSize=1024M -XX:PermSize=128M"
2). gedit ~/.profile
At last
#------------------- PATH SETTINGS ------------------#
#-------- Ant Home
ANT_HOME=/programs/apache-ant-1.8.0
#-------- Maven Home
M2_HOME=/programs/apache-maven-3.2.1
# --------- JDK 1.6 Home
JAVA_HOME=/programs/java/jdk1.6.0_37
# ----------JDK 1.7 Home
#JAVA_HOME=/programs/java/jdk1.7.0_09
# ------------- Path Settings
PATH=$PATH:$JAVA_HOME/bin:$ANT_HOME/bin:$M2_HOME/bin
#----------Enabling AppDynamics Viewer---------
PATH=$PATH:/programs/AppDynamicsLite/LiteViewer
I am getting no errors as all paths are set and i can use JAVA, JAVAC, ANT & MAVEN
I am not prefixing export command to set paths in .profile
Only heap settings are put in .bashrc
but i havenot used ANT_OPTS and MAVEN_OPT
Where to put environment variables when using nginx and Passenger on Ubuntu
location: linuxexchange.com - date: April 9, 2012
I was trying to set up a system similar to heroku where I would store secret keys in environmental variables and then access them from my rails app like this:
secret = ENV['EMAIL_PASSWORD']
I know heroku lets you do heroku config:add EMAIL_PASSWORD=secret, and I wanted to do something like that for my own ubuntu box running nginx and Passenger.
Should I add these variables as exports in .bashrc or .bash_login so that on system reboot these variables are automatically set?
I'm not sure when each of those files gets read in.
please wait...
Page: 1 2 3 4 5 6 7 8 9 10