0
votes
0answers
128 views

How to get write permission on /etc/environment?

I want to add mysql Connector jar file to classpath and by browsing through the net. I read that a global way to do it is to update the /etc/enviroment but the file opens as readonly. What I don't get ...
0
votes
1answer
196 views

Running a service ignores environment variables

I have a /ect/init/application.conf file that looks something like... start on filesystem and net-device-up IFACE!=lo stop on runlevel [016] respawn export NODE_ENV=production chdir ...
1
vote
2answers
272 views

How we can change linux environment variable in python?

Let's say we are on a command line and we declare an environment variable: export x=100 When i go to python and type : os.environ['x'] = '100000' If I came back to command line x stays 100. Is ...
0
votes
1answer
1k views

What does my PYTHONPATH contain?

I work on some personal python libraries and I need to display what PYTHONPATH contains and then manipulate it.
0
votes
0answers
18 views

Error about Environmental Variables

I have installed the program ROOT from the website of CERN nearly a year ago and later tried to manually uninstall it; however there are problems lingering and I get the error: bash: ...
0
votes
1answer
123 views

PATH variable to Apache OPENNLP OK but doesn't work

yesterday I installed in my Ubuntu AWS 12.04 (Amazon) micro istance OpenNLP and seemed working. Today when digiting opennlp:command not found Following suggestions found here: I modified my ...
0
votes
0answers
96 views

CODEBLOCKS_DATA_DIR environment variable

I had installed CODE::BLOCKS in Ubuntu 12.04 and it was working jut fine until ~2 days ago when the program start to freezing out every ~10 sec. I decided to reinstall CODE::BLOCKS. First, I did: $ ...
3
votes
2answers
11k views

Error: JAVA_HOME is not defined correctly - after maven installation

I installed Java JDK on Ubuntu 12.04 and added Java home to my path at ~/.bashrc: export PATH=/opt/jdk1.7.0_40/jdk1.7.0_40/bin:$PATH This looks a little bit strange but it's really my path. After ...
0
votes
2answers
106 views

Why I can not login after set the path envrionment variable

I am using the 12.04LST, and I am trying to install the oracle jdk7 manually. Then I update the /etc/environment to set the PATH variable. This is the original file content: ...
1
vote
1answer
883 views

Make gcc coloring the default

Is there a way to automatically make gcc color its output? I am looking to avoid an alias as the the command is commonly used in makefiles (where it will not be used). Is there an easy way to do ...
4
votes
2answers
12k views

How to set up environment variable properly?

I opened the /etc/environment and added the line ANDROID_SDK_HOME="/home/tom/android-sdk" but I tried echo $ANDROID_SDK_HOME but displayed nothing. I have JAVA_HOME in the same /etc/environment but ...
1
vote
0answers
5k views

Setting global environment variable for everyone

If I set a variable in /etc/environment, it only seems to apply to administrators while in sudo su. How can I get the variables to apply to everyone? Especially when they are in terminal? Do the ...
0
votes
1answer
3k views

How to change permanently the PATH with Ubuntu 12.04 LTS?

To add :/usr/local/go/bin to the PATH with Ubuntu 10.04 LTS (Lucid) and permanently change the PATH, I just edited the files /etc/environment and /etc/login.defs. And these modifications were OK both ...
3
votes
2answers
104 views

ubuntu spurious environment variable

I have a spurious path in my ~PATH~ environment variable in Ubuntu: /usr/lib/lightdm/lightdm I have no idea where it is set. I have checked these files: /etc/environment /etc/profile ...
0
votes
2answers
5k views

Updating http_proxy environment variable

I recently changed my password corresponding to my username for my proxy. Hence I updated the apt.conf and /etc/environment files with my new password. However when I type echo $http_proxy or ...
2
votes
1answer
2k views

How to reset LD_PRELOAD

I've done the following command to set the path for LD_PRELOAD. But it's the wrong path. export LD_PRELOAD=/home/ Does anyone know what is the default path for LD_PRELOAD on Ubuntu 12.04? What is ...
2
votes
1answer
905 views

No such file or director in $PATH

I wanted to be able to run program from anywhere without adding ./, so I edited ~/.bashrc to contain this line export PATH=$PATH:. Now when I type echo $PATH I get ...
2
votes
3answers
8k views

Environment variables - where are they stored by linux, how do I change them and is it safe to do so?

I am trying to configure a build from source an old version of gcc on my dev machine. The documentation highlight several environment variables that need to be changed in order to do this. I was ...
1
vote
1answer
2k views

setting XDG_DATA_DIRS and XDG_DATA_HOME

I made some mistake by setting environment variabel Now i can not launch any application from the console and recieve this error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system ...
2
votes
1answer
2k views

enviroment variables are not loaded

I use Qt Creator to manage my C++ codes on xubuntu 12.04 LTS. I have a bunch of environment variables defined in .bashrc_vars that are loaded in .bashrc. These variables are required for building my ...