Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
I have fixed profile bracket missing, Corrected 3 or 4 other bash problems. I,m left with these 4.
bash: dircolors command not found.
bash: pathappened command not found.
bash: id command not found.
bash: id command not found.
bash: aliases command not found.
Not sure how to deal with these, any advice. I did think of redoing chapter3 from, The /etc/profile.d Directory. Part but would like advice on that.
This must come from /etc/profile.d/dircolors.sh. It would be nice to have this fixed, but it is no problem if you don't (for now). Do check if you copied it correctly.
Quote:
bash: pathappened command not found.
Looks like a spelling error pathappened vs pathappend. Cannot tell you which file, you need to search (all mentioned in The Bash Shell Startup Files).
Quote:
bash: id command not found.
bash: id command not found.
id is only used in /etc/profile.d/umask.sh. Some sort of typo ?
Quote:
bash: aliases command not found.
the word aliases is only used in comments. A missing # somewhere?
Ok cleared alias problem and pathappend. I only get id problem when logging in as user, and id /dircolors with root. Also the next problem any bash commands not found example, ( ls,ssh,reboot,shutdown,eject,cp i,m sure there's more). So I,m guessing something needs to point to bash?
I only get id problem when logging in as user, and id /dircolors with root.
You need to take another look at /etc/profile.d/umask.sh. As stated before, that is the only file that uses the id command.
For dircolors the following file is needed: /etc/profile.d/dircolors.sh and did you do this part?
Quote:
/etc/dircolors
If you want to use the dircolors capability, then run the following command. The /etc/skel setup steps shown above also can be used here to provide a ~/.dircolors file when a new user is set up. As before, just change the output file name on the following command and assure the permissions, owner, and group are correct on the files created and/or copied.
dircolors -p > /etc/dircolors
If you wish to customize the colors used for different file types, you can edit the /etc/dircolors file. The instructions for setting the colors are embedded in the file.
Quote:
Originally Posted by spiky0011
Also the next problem any bash commands not found example, ( ls,ssh,reboot,shutdown,eject,cp i,m sure there's more).
This points to the PATH variable that is not or wrongly set. What does echo $PATH show, both ar root and normal user, compare that to what is set in /etc/profile (/bin:/usr/bin -> normal user, /bin:/usr/bin:/sbin:/usr/sbin -> root).
PATH is initially set by /etc/profile, but also check: ~/.bash_profile and /etc/profile.d/extrapaths.sh
You do need to be precise and careful when creating and editing the files mentioned.......
That does not look correct, and I'm not talking about the usr/local part. I wasn't sure if /usr/local/bin and /usr/local/sbin would be present already, I guess they are.
A lot of colon's (:) are missing and I see a double colon where there should be one.
Did you re-check the files mentioned in post #34? We are talking about typo's, stuff you could have found and fixed yourself......
I do strongly suggest you revisit the Bash Shell Startup chapter to get an idea what these files actually do and why they are there, 'cause I get the impression that you don't know.
Yes I did see the tip I have the book in pdf maybe I,ll download the html instead. I went through those files so many times. Just shows a simple mistake so much headache. Anyway back to where I left off. Thks for your support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.