Linux /etc/profile.d/myscript.sh did not run using VNC
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a script in /etc/profile.d/setpath.sh
#!/bin/sh
export PATH=$PATH:/sbin
The script is doing simple thing but it does not set my path environment when I use vnc. (Open terminal in vnc)
I read up some information on login shell and non login shell. I am running CentOS environment and I connect through ssh. Then I create vnc session. I can see the path is added in ssh but not in vnc.
Is there any way to have PATH properly set in vnc? Do I need to add that in /etc/bashrc too?
Thanks in advance
path
add a comment |Â
up vote
0
down vote
favorite
I have a script in /etc/profile.d/setpath.sh
#!/bin/sh
export PATH=$PATH:/sbin
The script is doing simple thing but it does not set my path environment when I use vnc. (Open terminal in vnc)
I read up some information on login shell and non login shell. I am running CentOS environment and I connect through ssh. Then I create vnc session. I can see the path is added in ssh but not in vnc.
Is there any way to have PATH properly set in vnc? Do I need to add that in /etc/bashrc too?
Thanks in advance
path
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a script in /etc/profile.d/setpath.sh
#!/bin/sh
export PATH=$PATH:/sbin
The script is doing simple thing but it does not set my path environment when I use vnc. (Open terminal in vnc)
I read up some information on login shell and non login shell. I am running CentOS environment and I connect through ssh. Then I create vnc session. I can see the path is added in ssh but not in vnc.
Is there any way to have PATH properly set in vnc? Do I need to add that in /etc/bashrc too?
Thanks in advance
path
I have a script in /etc/profile.d/setpath.sh
#!/bin/sh
export PATH=$PATH:/sbin
The script is doing simple thing but it does not set my path environment when I use vnc. (Open terminal in vnc)
I read up some information on login shell and non login shell. I am running CentOS environment and I connect through ssh. Then I create vnc session. I can see the path is added in ssh but not in vnc.
Is there any way to have PATH properly set in vnc? Do I need to add that in /etc/bashrc too?
Thanks in advance
path
asked Mar 15 at 23:08
Allen W
6
6
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Did you try out opening the terminal in GUI after connecting through VNC and executing
source /etc/profile.d/setpath.sh
or
. /etc/profile.d/setpath.sh
(Answering here since I cannot comment)
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
Did you try out opening the terminal in GUI after connecting through VNC and executing
source /etc/profile.d/setpath.sh
or
. /etc/profile.d/setpath.sh
(Answering here since I cannot comment)
add a comment |Â
up vote
0
down vote
Did you try out opening the terminal in GUI after connecting through VNC and executing
source /etc/profile.d/setpath.sh
or
. /etc/profile.d/setpath.sh
(Answering here since I cannot comment)
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Did you try out opening the terminal in GUI after connecting through VNC and executing
source /etc/profile.d/setpath.sh
or
. /etc/profile.d/setpath.sh
(Answering here since I cannot comment)
Did you try out opening the terminal in GUI after connecting through VNC and executing
source /etc/profile.d/setpath.sh
or
. /etc/profile.d/setpath.sh
(Answering here since I cannot comment)
answered Mar 16 at 8:56
Ashwin Geet D'Sa
32
32
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f430512%2flinux-etc-profile-d-myscript-sh-did-not-run-using-vnc%23new-answer', 'question_page');
);
Post as a guest
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
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
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