There are several options in /etc , and I dont claim to understand it.
It seems to depend on which services you have installed.
Of course - if you change /etc/environment
- you need to either logout - or reload your profileā¦
Pretty sure .profile
reads /etc/environment
(and /etc/profile
)⦠maybe as an undocumented āincludeā?
Also note : this was on server environments - but worked on all the DEB and RPM families Iāve used that onā¦
However - I donāt think you can append to existing $PATH
with /etc/environment
- i.e. āPATH=$PATH:/dir2:/dir2/
ā doesnāt work (I think?)
Shame it canāt be more consistent⦠Oh wellā¦
Will give this a try!!!
There is no /etc/environment in LFS but there is a .bashrc.
Yeah, it varies between distros. Some of mine have /etc/profile.
Do the user one, it is easier.
There are 2 files where settings can be added or modified in each userās home directory. Theyāre dot files so you need to use ls -a to see them in the directory. Thereās a .profile file that runs when you log in and a .bashrc file. Usually, the path is set in one or the other.
Yes, I used the .bashrc, for my user account and bashrc for my root account.
With LFS I have to use āls -laā!!
The main problem I am having now is with the mesa install!! My old Nvidia GT430 and the libglvnd, is nowhere to be founf for LFS12.3, so I have switched to my onboard Intell HD4000, for my GPU and am rebuilding llvm in hopes of getting the dependencies needed for Mesa.
If I cannot get a Mesa compile, then I would have to use an older version of LFS!!