how to set global environment variables linuxmint?
up vote
0
down vote
favorite
I have installed JAVA using this guide https://community.linuxmint.com/tutorial/view/1372 It works, but I don't know how to set JAVA_HOME variable for all my users.
How to set global environment varialbes in Linux Mint ?
I'm using LinuxMint 18 Sara xfce
linux-mint xfce
add a comment |
up vote
0
down vote
favorite
I have installed JAVA using this guide https://community.linuxmint.com/tutorial/view/1372 It works, but I don't know how to set JAVA_HOME variable for all my users.
How to set global environment varialbes in Linux Mint ?
I'm using LinuxMint 18 Sara xfce
linux-mint xfce
also asked in linuxmint forums, wating for help: forums.linuxmint.com/… At the moment I solved for some users defining JAVA_HOME in .bash_aliases but i desire a global solution. Thanks in advance
– MadMad666
Jan 26 '17 at 15:51
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have installed JAVA using this guide https://community.linuxmint.com/tutorial/view/1372 It works, but I don't know how to set JAVA_HOME variable for all my users.
How to set global environment varialbes in Linux Mint ?
I'm using LinuxMint 18 Sara xfce
linux-mint xfce
I have installed JAVA using this guide https://community.linuxmint.com/tutorial/view/1372 It works, but I don't know how to set JAVA_HOME variable for all my users.
How to set global environment varialbes in Linux Mint ?
I'm using LinuxMint 18 Sara xfce
linux-mint xfce
linux-mint xfce
asked Jan 26 '17 at 15:22
MadMad666
196138
196138
also asked in linuxmint forums, wating for help: forums.linuxmint.com/… At the moment I solved for some users defining JAVA_HOME in .bash_aliases but i desire a global solution. Thanks in advance
– MadMad666
Jan 26 '17 at 15:51
add a comment |
also asked in linuxmint forums, wating for help: forums.linuxmint.com/… At the moment I solved for some users defining JAVA_HOME in .bash_aliases but i desire a global solution. Thanks in advance
– MadMad666
Jan 26 '17 at 15:51
also asked in linuxmint forums, wating for help: forums.linuxmint.com/… At the moment I solved for some users defining JAVA_HOME in .bash_aliases but i desire a global solution. Thanks in advance
– MadMad666
Jan 26 '17 at 15:51
also asked in linuxmint forums, wating for help: forums.linuxmint.com/… At the moment I solved for some users defining JAVA_HOME in .bash_aliases but i desire a global solution. Thanks in advance
– MadMad666
Jan 26 '17 at 15:51
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
How do I set global environment variables in Linux Mint?
Set them in /etc/profile
.
When Bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login
option, it first reads and executes commands from the file/etc/profile
, if that file exists.
After reading that file, it looks for
~/.bash_profile
,~/.bash_login
, and~/.profile
, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
Source 6.2 Bash Startup Files
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
How do I set global environment variables in Linux Mint?
Set them in /etc/profile
.
When Bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login
option, it first reads and executes commands from the file/etc/profile
, if that file exists.
After reading that file, it looks for
~/.bash_profile
,~/.bash_login
, and~/.profile
, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
Source 6.2 Bash Startup Files
add a comment |
up vote
0
down vote
How do I set global environment variables in Linux Mint?
Set them in /etc/profile
.
When Bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login
option, it first reads and executes commands from the file/etc/profile
, if that file exists.
After reading that file, it looks for
~/.bash_profile
,~/.bash_login
, and~/.profile
, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
Source 6.2 Bash Startup Files
add a comment |
up vote
0
down vote
up vote
0
down vote
How do I set global environment variables in Linux Mint?
Set them in /etc/profile
.
When Bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login
option, it first reads and executes commands from the file/etc/profile
, if that file exists.
After reading that file, it looks for
~/.bash_profile
,~/.bash_login
, and~/.profile
, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
Source 6.2 Bash Startup Files
How do I set global environment variables in Linux Mint?
Set them in /etc/profile
.
When Bash is invoked as an interactive login shell, or as a non-interactive shell with the
--login
option, it first reads and executes commands from the file/etc/profile
, if that file exists.
After reading that file, it looks for
~/.bash_profile
,~/.bash_login
, and~/.profile
, in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the shell is started to inhibit this behavior.
Source 6.2 Bash Startup Files
answered Jan 26 '17 at 16:52
DavidPostill♦
102k25218254
102k25218254
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1171837%2fhow-to-set-global-environment-variables-linuxmint%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
also asked in linuxmint forums, wating for help: forums.linuxmint.com/… At the moment I solved for some users defining JAVA_HOME in .bash_aliases but i desire a global solution. Thanks in advance
– MadMad666
Jan 26 '17 at 15:51