On 19/04/2025 22:12, peter wrote:

In https://wiki.debian.org/DotFiles the sixth paragraph states, "You
should therefore always have command source ~/.bashrc at the end of
your .bash_profile in order to force it to be read by a login shell."

# ls ~/.bash_profile
ls: cannot access '/home/root/.bash_profile': No such file or directory

Notice that default ~/.profile sources ~/.bashrc. If your are really need namely ~/.bash_profile then consider "source ~/.profile".

So the DotFiles page isn't consistent with Debian 12.  Also, DotFiles
isn't linked under https://wiki.debian.org/BootProcess#Articles .

Suggested improvements?  I think of integrating some DotFiles
information into the BootProcess page.

BootProcess looks like an old variant of
<https://www.debian.org/doc/manuals/debian-reference/ch03.en.html>
"Chapter 3. The system initialization"

The DotFiles page can be
improved by separating cases with headings such as "Text console
login", "SSH login", "X window manager login", "Wayland login", "X
Window System startup after console login" and "Wayland login after
console login".

In my opinion, various variants of logins are out of the scope of boot process. I am unsure if they are relevant in the context of dot files. .bashrc and .bash_profile are rather shell initialization.

There is <https://wiki.debian.org/EnvironmentVariables> that discusses how to set environment for various types of login. It is incomplete however. From my point of view, this page is the best candidate for improvement (of course if you actually mean environment).

P.S. DotFiles does not mention that PATH may be set through /etc/login.defs.

Reply via email to