Tuesday, June 1, 2010

Linux from Scratch Version 6.6

I finally have taken the plunge. After fiddling with linux for so many years, I hope to finally understand how it works (and hopefully how to fix it when it goes wrong). Except where explicitly said, all commands should run as lfs and not root. This includes even "make install" which ordinarily I would have run as root. Comments from me are usually something I forgot to note, or something I did not realize until the next day. This saves me from having to edit the original note.

I use the directory structure $LFS/source$. It's too bad I did not change the $ after source. Somewhere in the bash it can be changed. To the uninitiated, the multiple $ with very different meanings, might be confusing. Perhaps at the end of all this I will go back and change it to something else.

4 comments:

  1. One might be asking oneself, why I am bothering with all of this. Well, I am just starting on Chapter 5.13, DejaGnu. I have no idea what this is but I have seen it before in my travels through linux.

    I am very impressed with the success so far and this is completely attributable to the excellent documentation. My notes here are probably problems that I bring to the installation, rather than with the documentation itself.

    ReplyDelete
  2. Maybe useful tip:

    I frequently lose track in which directory I am located. When I perform a search or check out a man page, I open a new tab in the terminal and am no longer in $LFS but in my original environment. I decided to change the prompt to a blue color whenever I am logged in as user lfs. This way I willl get used to seeing blue and when I don't I will stop for a moment and check what I am doing. A bit like the string on a finger trick.

    After half an hour of searching and experimenting, I added the following line to the .bashrc of user lfs:
    PS1='\e[0;34m$PWD%\e[m'

    ReplyDelete
  3. I want to add to the previous comment that I have changed how I login as root. Usually I use su alone. But since changing the bash prompt, it is necessary to use the su login with the dash, "su - " (without the quotes). This way, the root shell is entered and the prompt changes to root. At the moment, I use this only to mount the $LFS partition.

    I also changed the profile of the gnome-terminal to Linux From Scratch. This will change the background color to light blue and remove the pathname from the title bar. It is set automatically to display the path and it will take me too long to figure out how to set that. I've already wasted an hour just changing the color of the prompt.

    ReplyDelete
  4. I am currently up to Chapter 6.54 of the install. I am asking myself what I am learning. Not much. I am not happy with the extensive exceptions that I have to make "just in case" some old applications assumes a library is in one place. Or, some applications have the same code and one code is better than the other. For example, something like: "Disable the installation of the groups program and its man pages, as Coreutils provides a better version". It must have been hell to figure this all out.

    Hopefully, when I pull it all together, it will make sense.

    ReplyDelete