Solved

.bash_profile not running through VNC

Posted on 2004-09-29
4
1,668 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 11

Expert Comment

by:avizit
ID: 12180251
0
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 500 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
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.:

691 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