HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
OS Week 08 Assignment #2: Script Download (User Mode)
Download https://os.vlsm.org/WEEK/WEEK08.tar.xz.asc
mkdir -pv $HOME/mywork/
cd $HOME/mywork/
wget -c https://os.vlsm.org/WEEK/WEEK08.tar.xz.asc
ls -al
Decrypt file WEEK08.tar.xz.asc
- The passphrase/password will be announced at SCELE at the beginning of the week.
gpg -o WEEK08.tar.xz -d WEEK08.tar.xz.asc
Extract TARBALL
ls -al
tar xfv WEEK08.tar.xz
cd WEEK08/
ls -al
Check Scripts
for II in [0-9][0-9]*.sh ; do
echo ""
echo "= === ==== FILE $II..."
cat "$II"
echo "= === ==== ==== ==== ==== ==== ==== ===="
echo ""
sleep 2
done
Run Scripts
bash 00-Basic-Check.sh
bash 01-Version-Check.sh
Check and Read RESULT
cd $HOME/RESULT/W08/
ls -al
- There should be NO ERROR in file:
WEEK08-00-BASIC.txt
- XCHECK: your “GitHub Account” = HOST = USER = GROUP = HOME
- VERDSK: your two disks size should be 23GB and 32GB.
- CMOUN1: your /dev/xxx should be mounted on /mnt/lfs
- CMOUN2: your /dev/xxx should be mounted on /mnt/cbkadal
- ALL CHDIR[1-5] should be “YES”.
- Example:
ZCZC 1B9AD1F WEEKSQ 08 00
ZCZC 1B99776 VERSUM 22:0EB59C0C 22:0EB59C0C
ZCZC 1B9EF74 VERINC 48:F9BD969C 48:F9BD969C
ZCZC 1B9E5EA SCRIPT # REV07: Wed 04 Oct 2023 16:00
ZCZC 1B9C0C5 XCHECK HOST cbkadal USER cbkadal GROUP cbkadal HOME /home/cbkadal/ ARCH x86_64 NPROC 4
ZCZC 1B90339 VERDSK 23G 32G 2AB74ACBA35B 94C4C6D37149
ZCZC 1B9638C CMOUN1 /dev/sdb2 /mnt/lfs ext4 rw,relatime 0 0
ZCZC 1B92696 CMOUN2 /dev/sdb1 /mnt/cbkadal ext4 rw,relatime 0 0
ZCZC 1B9762F VERLNX 6.1.0-13-amd64
ZCZC 1B9750F DISTRO Description: Debian GNU/Linux 12 (bookworm)
ZCZC 1B9A9F3 CHDIR1 RESULT YES
ZCZC 1B97254 CHDIR2 mydemo YES
ZCZC 1B9A644 CHDIR3 mywork YES
ZCZC 1B98FBE CHDIR4 git/os232/TXT YES
ZCZC 1B9FD7B CHDIR5 git/os YES
ZCZC 1B9A366 RESULT ===== RESULT IN /home/cbkadal/RESULT/W08/WEEK08-00-BASIC.txt =====
- There should be NO ERROR in file:
WEEK08-01-VERSION.txt
- ALL should be “OK”
- Example:
OK: Apt 2.6.1 >= 2.6
OK: Bash 5.2.15 >= 5.2
OK: Binutils 2.40 >= 2.40
OK: Bison 3.8.2 >= 3.8
OK: Coreutils 9.1 >= 9.1
OK: Diffutils 3.8 >= 3.8
OK: Dpkg 1.21.22 >= 1.21
OK: Findutils 4.9.0 >= 4.9
OK: Fusermount 2.9.9 >= 2.9
OK: Gawk 5.2.1 >= 5.2
OK: GCC 12.2.0 >= 12.2
OK: GCC (C++) 12.2.0 >= 12.2
OK: Git 2.39.2 >= 2.39
OK: Gnupg 2.2.40 >= 2.2
OK: Grep 3.8 >= 3.8
OK: Gzip 1.12 >= 1.12
OK: Lynx 2.9.0dev >= 2.9
OK: M4 1.4.19 >= 1.4.19
OK: Make 4.3 >= 4.3
OK: Patch 2.7.6 >= 2.7
OK: Perl 5.36.0 >= 5.36
OK: Python 3.11.2 >= 3.11
OK: Rsync 3.2.7 >= 3.2
OK: Sed 4.9 >= 4.9
OK: Tar 1.34 >= 1.34
OK: Texinfo 6.8 >= 6.8
OK: Vim 9.0 >= 9.0
OK: Xz 5.4.1 >= 5.4
OK: Linux Kernel 6.1.0 >= 6.1
OK: Linux Kernel supports UNIX 98 PTY
Aliases:
OK: awk is GNU
OK: yacc is Bison
OK: sh is Bash
Compiler check:
OK: g++ works
ZCZC 1B52511 WEEKSQ 08 01
ZCZC 1B5F638 VERSUM 7C:65B2F82D 7C:65B2F82D
ZCZC 1B580BA VERINC 48:F9BD969C 48:F9BD969C
ZCZC 1B50785 SCRIPT # REV09: Tue 17 Oct 2023 15:00
ZCZC 1B5AD98 RESULT ===== RESULT IN /home/cbkadal/RESULT/W08/WEEK08-01-VERSION.txt =====
Last Check: is $LFS == /mnt/lfs ?
- Make sure that LFS is /mnt/lfs
- Execute (copy and paste):
echo "===== ======="
echo "Check $LFS..."
if [ -z $LFS ] ; then
echo ERROR: There is no LFS variable === ERROR ===
elif [ -d $LFS/ ] ; then
echo === === === === === === === LFS is $LFS/ === OK ===
else
echo ERROR: There is no LFS directory === ERROR ===
fi
- STOP: if the last line is not the following (and revisit Week 03 Assignment #02).
Check /mnt/lfs...
=== === === === === === === LFS is /mnt/lfs/ === OK ===