Solved

.bash_profile not running through VNC

Posted on 2004-09-29
4
1,578 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 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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 …
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

911 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

24 Experts available now in Live!

Get 1:1 Help Now