HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
OS Week 09 Assignment #2: Script Download (User Mode)
Download https://os.vlsm.org/WEEK/WEEK09.tar.xz.asc
mkdir -pv $HOME/mywork/
cd $HOME/mywork/
wget -c https://os.vlsm.org/WEEK/WEEK09.tar.xz.asc
ls -al
Decrypt file WEEK09.tar.xz.asc
- The passphrase/password will be announced at SCELE at the beginning of the week.
gpg -o WEEK09.tar.xz -d WEEK09.tar.xz.asc
Extract TARBALL
ls -al
tar xfv WEEK09.tar.xz
cd WEEK09/
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/W09/
ls -al
- There should be NO ERROR in file:
WEEK09-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 0AACE59 WEEKSQ 09 00
ZCZC 0AA8D94 VERSUM 22:0EB59C0C 22:0EB59C0C
ZCZC 0AADF73 VERINC 48:8ADDC8C0 48:8ADDC8C0
ZCZC 0AA465C SCRIPT # REV07: Wed 04 Oct 2023 16:00
ZCZC 0AAE346 XCHECK HOST cbkadal USER cbkadal GROUP cbkadal HOME /home/cbkadal/ ARCH x86_64 NPROC 4
ZCZC 0AA435D VERDSK 23G 32G 2AB74ACBA35B 94C4C6D37149
ZCZC 0AA1BBB CMOUN1 /dev/sda2 /mnt/lfs ext4 rw,relatime 0 0
ZCZC 0AA2A2B CMOUN2 /dev/sda1 /mnt/cbkadal ext4 rw,relatime 0 0
ZCZC 0AAE697 VERLNX 6.1.0-13-amd64
ZCZC 0AA4312 DISTRO Description: Debian GNU/Linux 12 (bookworm)
ZCZC 0AAC331 CHDIR1 RESULT YES
ZCZC 0AAF8C3 CHDIR2 mydemo YES
ZCZC 0AAD9CA CHDIR3 mywork YES
ZCZC 0AA8235 CHDIR4 git/os232/TXT YES
ZCZC 0AADA7B CHDIR5 git/os YES
ZCZC 0AA5CFA RESULT ===== RESULT IN /home/cbkadal/RESULT/W09/WEEK09-00-BASIC.txt =====
- There should be NO ERROR in file:
WEEK09-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 0ADDF28 WEEKSQ 09 01
ZCZC 0ADEFC5 VERSUM 7C:65B2F82D 7C:65B2F82D
ZCZC 0AD02D8 VERINC 48:8ADDC8C0 48:8ADDC8C0
ZCZC 0ADD1AD SCRIPT # REV09: Tue 17 Oct 2023 15:00
ZCZC 0AD2970 RESULT ===== RESULT IN /home/cbkadal/RESULT/W09/WEEK09-01-VERSION.txt =====