LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 03-28-2011, 03:36 PM   #31
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

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.
 
Old 03-28-2011, 03:47 PM   #32
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
bash: dircolors command not found.
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?
 
Old 03-29-2011, 12:01 PM   #33
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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?
 
Old 03-29-2011, 12:31 PM   #34
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
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.......
 
Old 03-29-2011, 01:43 PM   #35
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
root:
Code:
echo $PATH /usr/local/sbin::/usr/local/bin/bin/usr/bin/sbin/usr/sbin
user:
Code:
echo $PATH /usr/local/bin::/bin/usr/bin
Where has the local come from,

Have found how (ls,cp, mv etc work) /bin/ls etc.
Do you think it,s worth deleting all etc files in Bash startup and replace with COPIED/PASTE ones?

Last edited by spiky0011; 03-29-2011 at 02:09 PM. Reason: Added more info after investigating
 
Old 03-29-2011, 02:13 PM   #36
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by spiky0011 View Post
root:
Code:
echo $PATH /usr/local/sbin::/usr/local/bin/bin/usr/bin/sbin/usr/sbin
user:
Code:
echo $PATH /usr/local/bin::/bin/usr/bin
Where has the local come from,
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.
Code:
/usr/local/sbin::/usr/local/bin/bin/usr/bin/sbin/usr/sbin
That should be
Code:
/usr/local/sbin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin
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.

Tip: install lynx so you can copy/paste.

Hope this helps.
 
Old 03-29-2011, 03:11 PM   #37
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Found it ANOTHER TYPO etc/profile
Code:
  local PATHVARIABLE=${2:-PATH}
        for DIR in ${!PATHVARIABLE} ; do
                if [ "$DIR" != "$1" ] ; then
                  NEWPATH=${NEWPATH:=$NEWPATH:}$DIR
                                    ^
 
Old 03-30-2011, 02:05 AM   #38
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Nice to read you finally got those issues fixed.

BTW: Did you notice the tip about installing and using lynx?
 
Old 03-30-2011, 07:16 AM   #39
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building Xorg 7.2 unable to startx ecook Linux - Desktop 16 09-29-2008 08:41 AM
Chapter 6 Building the LFS System brayden516 Linux From Scratch 1 05-01-2008 11:41 AM
Problems building Xorg-6.8.2 CopperTopp Linux - Desktop 1 01-21-2007 02:36 AM
Stuck on chapter 5 when building Tcl-8.4.6 For LFS-5.1 deMilo Linux From Scratch 2 06-20-2004 03:31 AM
Building Gcc-core-3.3.1 Chapter 5 mullog Linux From Scratch 8 05-27-2004 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration