CBKADAL
OSP Weekly Assignments
C. BinKadal --- Sendirian, Berhad.


OS Week 07 Assignment #3: Synchronization

Check TARBALL SYNC

  • TARBALL “Z07-SYNC.tar.xz” should be inside the directory.
ls -al Z07-SYNC.tar.xz


Extract TARBALL and RUN Script

bash 07_WEEK07.sh


READ Z07-File-WEEK07-REPORT2.txt

  • copy file WEEK07-MYSHARE.bin to os1.cs.ui.ac.id
  • run “insertShareMemory” (the program is in /usr/local/bin/). The result should be file “WEEK07-REPORT2.txt”. In case of error(s) repeat this point.
  • Copy back (scp) file “WEEK07-REPORT2.txt” to your Virtual Guest folder “RESULT/W07/”
cd $HOME/RESULT/W07/
ls -al

The result will be similar to the following. Check if there are error messages inside these files:

  • WEEK07-00-BASIC.txt
    • This script checks whether your BASIC settings are correct.
ZCZC 0AB1251 WEEKSQ 07 00
ZCZC 0A33BF7 VERSUM 22:3569850C 22:3569850C
ZCZC 0AD7D67 VERINC 70:D5E5AB6E 70:D5E5AB6E
ZCZC 0A16FC0 SCRIPT # REV27: Wed 17 Apr 2024 11:00
ZCZC 0AC7125 XCHECK HOST cbkadal USER cbkadal GROUP cbkadal HOME /home/cbkadal/ ARCH x86_64 NPROC 4
ZCZC 0A57A46 VERDSK 23G 32G B9F8C3FFFBC8 F50A521FC2D1
ZCZC 0A0117E MEMORY 3.8Gi(total) 135Mi(used) 3.5Gi(free) 460Ki(shared) 303Mi(buffer) 974Mi(free swap)
ZCZC 0AB51F4 CMOUN1 /dev/sdb2 /mnt/lfs ext4 rw,relatime 0 0
ZCZC 0A3DDA2 CMOUN2 /dev/sdb1 /mnt/cbkadal ext4 rw,relatime 0 0
ZCZC 0A6801A CMOUN3 ThisIsADummy: does not exists
ZCZC 0A2CF42 VERLNX 6.8.6-241vbox-09
ZCZC 0A5BDB0 DISTRO Description: Debian GNU/Linux 12 (bookworm)
ZCZC 0A9A5DC CHDIR1 RESULT YES
ZCZC 0A01C40 CHDIR2 mydemo YES
ZCZC 0AF3115 CHDIR3 mywork YES
ZCZC 0A2C514 CHDIR4 git/os241/TXT YES
ZCZC 0A31166 CHDIR5 git/demos YES
ZCZC 0A88FBD CHDIR6 myBACKUP YES
ZCZC 0A0DA6F RESULT ===== RESULT IN /home/cbkadal/RESULT/W07/WEEK07-00-BASIC.txt =====


  • WEEK07-01-VERSION.txt
    • The purpose of this script is to see whether the host system has all the appropriate Debian package versions (adapted from the “LFS (Linux From Scratch) Book.”)
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.8.6 >= 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 0A84288 WEEKSQ 07 01
ZCZC 0A25A3C VERSUM 79:D7697580 79:D7697580
ZCZC 0A4B357 VERINC 70:D5E5AB6E 70:D5E5AB6E
ZCZC 0AAF56B SCRIPT # REV22: Wed 17 Apr 2024 11:00
ZCZC 0A82C9C RESULT ===== RESULT IN /home/cbkadal/RESULT/W07/WEEK07-01-VERSION.txt =====


  • WEEK07-REPORT2.txt
    • Copy this file from os1.
ZCZC 07778EB REPORT FILE WEEK07-REPORT2.txt is OPEN
ZCZC 076E982 XPROCS PID 33971 PPID 33897 ARCH x86_64 NPROC 1
ZCZC 079FB50 XCHECK HOST os1 USER cbkadal GROUP cbkadal HOME /home/cbkadal
ZCZC 0739F3D SHARE1 OK fd1 WEEK07-MYSHARE.bin FILESIZE 17
ZCZC 071330F SHARE2 OK fd2 /home/zzzSHARE/.zzzW07/ directory
ZCZC 07FC587 IamUSR cbkadal
ZCZC 07A3B2C USRCH1 COMPARE cbkadal =? cbkadal
ZCZC 07CC402 USRCH2 OK
ZCZC 079DD03 HSHCH1 COMPARE 7769 =? 7769
ZCZC 07D896C HSHCH2 OK
ZCZC 07A0F81 LOCKED
ZCZC 07BBDFF START ==== ALL ====
0797769 cbkadal
ZCZC 072DA78 END   ==== ALL ====
ZCZC 07B36A5 UNLOCKED




© 2024-2024 --- C. BinKadal --- Revision: 0048---13-May-2024.