• Tag Archives LFS
  • lfs and blfs frustrations

    Today has been a frustrating day. I finished my lfs (linuxfromscratch) 6.3 build and was starting the blfs portion. While I was working on installing xorg and xfce, I ran into some issues.
    first issue was dhcpcd build. version 5 will not compile,  ipv6 issues I believe. I gave up since static ip is fine.

    second issue,  .xz ….
    in the blfs build it instructs you to download. xz files. This is a problem, since blfs book does not inform you or give you the resource to unpack this file.
    To remedy this you can download 7zip,  specifically p7zip.
    To install it,  use make,  then make test, then make install.
    this will install it to /usr/local.
    to use it use, 7za x /your/package.xz
    And that will remedy that whole .xz crap…….

    Third issue,  when compiling xorg protocols ,  xbc(xcb?)_proto requires python interpreter,  so install python first. but remember to install 7zip so you can unpack it lol.
    **Edit** xcb does mention python, it is built after xorg protocols

    I am sure to find more things that don’t make sense with the build. When my box is done,  I will post on the whole process and more of the issues I ran into.

    Hope this helps someone,  because I would hate for someone else to give up on there build  due to poor information. Let me know what ypu think.


  • easy LFS chroot script

    In chapter 6.4 in the stable release of LFS you need to chroot into your build environment, and I have to keep rebuilding the chroot, and i keep going back to my PDF and retyping all the commands so i created on that would rebuild the environment by just calling my new script, then make it one better CP it into /usr/bin and make it executable
    #!/bin/bash
    mount -v --bind /dev $LFS/dev
    mount -vt devpts devpts $LFS/dev/pts
    mount -vt tmpfs shm $LFS/dev/shm
    mount -vt proc proc $LFS/proc
    mount -vt sysfs sysfs $LFS/sys
    chroot "$LFS" /tools/bin/env -i
    HOME=/root TERM="$TERM" PS1='u:w$ '
    PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin
    /tools/bin/bash --login +h

    just copy and past the above code into a new file and called it lfsroot then if you just want to make it into a command copy it into /usr/bin and you are ready to go, the script will mount the file systems and the enter the chroot environment
    This has saved me plenty of time by not typing or copying and pasting commands, My next script will be a script that will tar and cd into the directory of source packages……look for it soon