Wed Aug 21, 2013 2:42 am
A login shell sources /etc/profile (which typically sources /etc/profile.d/*), and ~/.bash_profile or ~/.bash_login or ~/.profile (the first that exists). An interactive shell that is not a login shell sources /etc/bash.bashrc and ~/.bashrc instead. (Typically the *profile files will source the *bashrc ones, so that bashrc commands run in all interactive shells.)
A console or ssh login is normally a login shell, and a GUI terminal emulator is normally not. To run a login shell in LXTerminal, use the command "lxterminal -l".