Solved

.bash_profile not running through VNC

Posted on 2004-09-29
4
1,558 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
Comment Utility
0
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 500 total points
Comment Utility
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
Comment Utility
$ . ~/.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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now