[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.bash_profile not running through VNC

Posted on 2004-09-29
4
Medium Priority
?
1,762 Views
Last Modified: 2012-05-05
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)
0
Comment
Question by:Intern
4 Comments
 
LVL 11

Expert Comment

by:avizit
ID: 12180251
0
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 2000 total points
ID: 12183194
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
 
LVL 2

Expert Comment

by:w00pie
ID: 12186345
$ . ~/.bash_profile

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

for some reason sometimes the .bash_profile gets overlooked

0
 
LVL 38

Expert Comment

by:yuzh
ID: 12186878
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

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month17 days, 16 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question