.bash_profile not running through VNC

We have some paths that need to be defined when we log in.  The problem is that they are in the bash_profile of the user we are VNCing to and it does not seem to be working through VNC.

How can we define path variables when we VNC to the machine (RedHat Linux ES3)
LVL 1
InternAsked:
Who is Participating?
 
owensleftfootConnect With a Mentor Commented:
When the vnc session starts it runs the xstartup file in the .vnc directory in the users home directory. You could always add the line
source ~./.bash_profile
0
 
avizitCommented:
0
 
w00pieCommented:
$ . ~/.bash_profile

might also try:  ln -s ~/.bash_profile .profile

for some reason sometimes the .bash_profile gets overlooked

0
 
yuzhCommented:
check the .dtprofile under your home dir and make sure:
#  If $HOME/.profile (.login) has been edited as described above, uncomment
#  the following line.
#
DTSOURCEPROFILE=true
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.