FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When opening a terminal in gnome in Fedora Core 5, the .bashrc and .bash_profile in my home directory are not executed. Has anyone seen this problem and does anyone know a solution.
This is a fresh FC5 installation with all updates installed.
Did you just make changes? If so, I believe you need to log out and log back in again or type source .bashrc && source .bash_profile to make them active. Other than the first time after changes, it should be right every time you login.
Does the terminal you're starting bash in use the --noprofile switch? This will cause the /etc/profile ~/.bash_profile, ~/.bash_login, and ~/.profile files to be ignored.
It may be that bash isn't being invoked as a login shell. When bash is invoked as a login shell, it reads the /etc/profile file if it exists. It then looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands from the first one that exists and is readable. From memory the login shell also looks for ~/.bashrc. Interactive shells that are not login shells look for ~/.bashrc but do not look for the other files.
Lastly, is your shell value in /etc/passwd set to /bin/bash rather than /bin/sh? If it is set to /bin/sh, it first attempts to read and execute commands from /etc/profile and ~/.profile, in that order. It doesn't check for the bash versions of the files.
Most of that was copy/pasted from man bash - hope it's useful...
OK Great! Found the problem. Using gnome-terminal and it is using bash. The current profile was not set as a login shell. In the gnome-terminal menu EDIT - Current Profile - Title and Command, click the box next to under "Run command as a login shell".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.