A script executed as part of the logon process

learn more… | top users | synonyms

53
votes
4answers
70k views

Why ~/.bash_profile is not getting sourced when opening a terminal?

Problem I have an Ubuntu 11.04 Virtual Machine and I wanted to set up my Java development environment. I did as follows sudo apt-get install openjdk-6-jdk Added the following entries to ...
7
votes
1answer
432 views

Sequence of scripts sourced upon login

I would like to concentrate all my login config in my ~/.bash_profile. There was a ~/.bashrc there by default but I replaced it with a ~/.bash_profile. However, when I log in, something before my ...
36
votes
1answer
18k views

What are login and non-login shells?

It is said that settings for non login shell to go into .bashrc file and login shell settings to go into .profile file. What is really meant by login and non-login shells? Please explain without ...
18
votes
1answer
7k views

Scripts in /etc/profile.d Being Ignored?

I'm new to Ubuntu. I'm running 13.10 Desktop. I wanted to set some system wide aliases and a custom prompt for bash. I found this article: https://help.ubuntu.com/community/EnvironmentVariables ...
12
votes
2answers
14k views

Configure gnome-terminal to start bash as a login shell, doesn't read .bashrc

I'm trying to integrate RVM with gnome-terminal. Per default, gnome-terminal does not start bash as a login shell. I enabled run command as a login shell as suggested in this answer about the same ...
1
vote
2answers
606 views

Problem in .bashrc

I try to edit .bashrc to view the C-compilers that I installed before. But after opening the new terminal I am stuck with strange error. I am unable to ls the files/directories and nothing works. It ...
1
vote
2answers
199 views

Where are the pristine, untouched contents of a 12.04 .profile file?

Several files in my home directory have been disappearing. E.g. .bashrc, .bash_profile, authorized_keys and now .profile. I would like to reconstruct .profile. Where can I find the .profile contents ...
2
votes
1answer
240 views

.profile ran into an infinite loop

I changed my .profile to run a script at startup. That scripts loops through all the files in a folder and sets it as the background image. It sleeps for 10 seconds before it sets the next one as the ...
2
votes
2answers
163 views

How do I finish the installation of a program from source?

I compiled sqlite3 from source code, version 3.6.16. I used --prefix=/usr/bin as my only compiling option. The binaries compiled and installed correctly, but at the directory /usr/bin/sqlite3/bin. So ...