HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
SP Week 02 Assignments #3: LFS 11.3 Chapter 06-07
Preparation (IMPORTANT!)
- CHECK if your GitHub Account = UserName = GroupName = Hostname.
- Check the output of script “01-Version-Check.sh”.
Make sure, no errors!
This includes “version-check.sh” of
2.2. Host System Requirements.
- bash is the shell in use.
- sh is a symbolic link to bash.
- /usr/bin/awk is a symbolic link to gawk.
- /usr/bin/yacc is a symbolic link to bison or a small script that executes bison.
- Check if you need more SWAP SPACE
- Check if you need to SHRINK and CLEAN your VDI files.
Follow “The Linux From Scratch version 11.3 Book” chapter 6-7
- The Linux From Scratch version 11.3 Book
(mirror1)
(mirror2)
(mirror3)
- Source code mirrors: (source mirror1) (source mirror2) (source mirror3)
- See also previous version LFS 11.2:
- Kernotex’s YouTube LFS 11.2 PlayList
- Kernotex’s Host Linux configuration for LFS Chapter 2.2 - “Host System Requirements”
- The Kernotex’s Linux From Scratch (LFS) 11.2 Highlights Page (here)
Take Note!
- Make sure when to use:
- your own account (e.g. “cbkadal”)
- root account
- lfs account
- Check your “LFS” and “MAKEFLAGS” environment for all accounts (e.g. “cbkadal”, “root”, “lfs”).
echo "LFS=\"$LFS $(df $LFS|tail -1|awk '{print $1,int($2/1000000)"G"}')\" NPROC=$(nproc) MAKEFLAGS=$MAKEFLAGS"
- You might want to combine the commands in chapter 7.3-7.4:
- chroot: ADD line MAKEFLAGS=-jN
- N = CPU cores
- chroot: ADD line MAKEFLAGS=-jN
echo "LFS=$LFS NPROC=$(nproc) MAKEFLAGS=$MAKEFLAGS"
sleep 1
mount -v --bind /dev $LFS/dev
mount -v --bind /dev/pts $LFS/dev/pts
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run
if [ -h $LFS/dev/shm ]; then
mkdir -pv $LFS/$(readlink $LFS/dev/shm)
fi
df /
chroot "$LFS" /usr/bin/env -i \
HOME=/root \
TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/usr/bin:/usr/sbin \
MAKEFLAGS=-j$(nproc) \
/bin/bash --login
- The FIRST TIME RESULT should be:
(lfs chroot) I have no name!:/#
Generate LFS Ch. 6-7 Report
(root)
- After finishing chapter 7, move:
mv $HOME/lfs-temp-tools-11.3-rc1.tar.xz /var/tmp/
- Don’t delete
the lfs-temp-tools-11.3-rc1.tar.xz file until the end of the term.
- If prompted, you should be able to show that file.
(user)
- Last, run:
cd $HOME/myspwork/WEEK02/
bash 02-SP-WEEK02b.sh
Result/Report
cd $HOME/SP_RESULT/W02/
ls -al