0
votes
2answers
26 views

How to bring “.bashrc” in effect without logging out or Restarting the current session?

I am basically using .bashrc for adding environment variables. Each time I add a new Environment variable, I have to log out the current session and log in again to bring the changes in effect. Is ...
0
votes
1answer
69 views

Permanent PATH variable

How will I make this /media/De Soft/mongodb/bin PATH variable permanent? Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your ...
0
votes
0answers
33 views

How can I see environment variables defined in .profile after lauching sudo codeblocks?

I am developing code with C++ in code::blocks. Because my code needs to access mice devices I launch code::blocks with sudo as superuser in an xterm I opened first. In the code I would like to read ...
0
votes
2answers
152 views

Adding JAVA_HOME (JDK) in .bashrc

I just installed Ubuntu and am Java 7u55 (JDK) and am trying to configure JAVA_HOME as an environment variable. In ~/.bashrc I added: # Exports JAVA_HOME=/home/myuser/sandbox/java/7u55/jdk1.7.0_55 ...
-1
votes
1answer
196 views

Environment Variables and .bashrc [closed]

I need Help in this: that is how to do this Edit the setting file of the user. In our case it should be in the root directory of the user and the name is .bashrc or .bash_profile 2.- Add the ...
2
votes
1answer
82 views

bashrc shortcuts in Tmux

I have sets many shortcuts in .bashrc profile of local user, and they work properly. Currently on my 12.04 system but when ever I tried to used them in tmux, I always get the same response command not ...
0
votes
0answers
47 views

help changing an environmental variable

I need a little help with this syntax. Do I use the quotes? Do I add these variables to .bashrc or bash? Are bash and .bashrc the same file? Where is the .bashrc file? What is the "." leading the ...
1
vote
1answer
136 views

emacs when run from the Applications menu (via. desktop setting) doesn't load environment variables

So when I invoke emacs from the terminal, all my environment variables are loaded correctly from .bashrc. However, when I load emacs from the Ubuntu Application menu (by invoking the ...
1
vote
1answer
406 views

Why this .pam_environment setting prevents me from logging in? [duplicate]

I'm trying to move things from my .bashrc to .pam_enviroment because of this. I've put the following into my .pam_environment but this prevents me from logging in because there should be some mistake. ...
0
votes
1answer
379 views

Why Ubuntu doesn't load settings from my .bashrc/.profile for apps not started from bash? [duplicate]

At other and previous distros it was common for me to have the environment setup in .bashrc/.profile applied globally, whether I started applications from bash or not (IIRC). Now when I start ...
1
vote
2answers
928 views

How to set default environment variables for other users?

I installed postgres under Lubuntu 13.04. When I try to run it: sudo -u postgres psql it gives me this error: psql: could not connect to server: No such file or directory Is the server running ...
3
votes
1answer
1k views

PATH not working even after successfully modifying it

For some reason I am successful in adding new directories to my $PATH but when I run the commands in the terminal the $PATH doesn't summon them. I modified the $PATH in the ~/.bashrc file, and added ...
1
vote
3answers
2k views

PATH variable resets with reboot

Just as the title indicates my PATH variable resets after every reboot. I read that I have to edit my bashrc file's PATH variable, but I don't have anything there that suggests anything related to the ...
9
votes
5answers
11k views

difference between bash.bashrc and /etc/environment file

Till data I was used to set my environment variables in the bash.bashrc file. Recently I told to use the /etc/environment file. Well, both work fine. So, what is the difference between them? I ...
45
votes
4answers
58k views

Why ~/.bash_profile is not getting sourced when opening a terminal?

Problem I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows sudo apt-get install openjdk-6-jdk Added the following entries to ...