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


SP Week 07 Assignment #4: Synchronization

Check TARBALL SYNC

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


Extract TARBALL and RUN Script

bash 07_SP_WEEK07.sh


READ Z07-SP-File-WEEK07-REPORT2.txt

  • copy file WEEK07-MYSHARE.bin to os2.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/SP_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 0E7FE2A WEEKSQ 07 00
ZCZC 0EB3840 VERSUM 22:9F7F683E 22:9F7F683E
ZCZC 0E6E105 VERINC 70:A852EA9F 70:A852EA9F
ZCZC 0E04FE3 SCRIPT # REV25: Wed 17 Apr 2024 22:00
ZCZC 0E39619 XCHECK HOST cbkadal USER cbkadal GROUP cbkadal HOME /home/cbkadal/ ARCH x86_64 NPROC 4
ZCZC 0ED4679 VERDSK 23G 32G B9F8C3FFFBC8 F50A521FC2D1
ZCZC 0EF5B02 MEMORY 3.8Gi(total) 127Mi(used) 3.4Gi(free) 456Ki(shared) 335Mi(buffer) 974Mi(free swap)
ZCZC 0EE88DB CMOUN1 /dev/sdb2 /mnt/lfs ext4 rw,relatime 0 0
ZCZC 0EAA549 CMOUN3 ThisIsADummy: does not exists
ZCZC 0E24C3F VERLNX 6.8.7-241vbox-10
ZCZC 0ECAE82 DISTRO Description: Debian GNU/Linux 12 (bookworm)
ZCZC 0E942A2 CHDIR1 SP_RESULT YES
ZCZC 0EBBED6 CHDIR2 mydemo YES
ZCZC 0EB4818 CHDIR3 myspwork YES
ZCZC 0EB6109 CHDIR4 git/sp241/TXT YES
ZCZC 0EFB39D CHDIR5 git/demos YES
ZCZC 0E0D339 CHDIR6 myBACKUP YES
ZCZC 0EE596A RESULT ===== RESULT IN /home/cbkadal/SP_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.7 >= 6.8.7
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 0E7FE2B WEEKSQ 07 01
ZCZC 0EAB8A3 VERSUM 7C:29BF123E 7C:29BF123E
ZCZC 0E926E8 VERINC 70:A852EA9F 70:A852EA9F
ZCZC 0EF07F5 SCRIPT # REV22: Wed 17 Apr 2024 21:00
ZCZC 0E2425C RESULT ===== RESULT IN /home/cbkadal/SP_RESULT/W07/WEEK07-01-VERSION.txt =====


  • Read file “Z07-SP-File-WEEK07-REPORT2.txt”
    • Copy file WEEK07-REPORT2.txt from os2.
ZCZC 0F7633A REPORT FILE WEEK07-REPORT2.txt is OPEN
ZCZC 0F6A541 XPROCS PID 41022 PPID 40789 ARCH x86_64 NPROC 1
ZCZC 0F98680 XCHECK HOST os2 USER cbkadal GROUP cbkadal HOME /home/cbkadal
ZCZC 0F3C8CC SHARE1 OK fd1 WEEK07-MYSHARE.bin FILESIZE 17
ZCZC 0F1263E SHARE2 OK fd2 /home/zzzSHARE/.zzzW07/ directory
ZCZC 0FF12D6 IamUSR cbkadal
ZCZC 0FAB81B USRCH1 COMPARE cbkadal =? cbkadal
ZCZC 0FCC3F1 USRCH2 OK
ZCZC 0F955A8 HSHCH1 COMPARE AF98 =? AF98
ZCZC 0FD895B HSHCH2 OK
==== ==== This is ==== 0F9AF98 cbkadal
ZCZC 0FA7DD0 LOCKED
ZCZC 0FBB4AE START ==== ALL ====
0F9AF98 cbkadal
ZCZC 0F2D127 END   ==== ALL ====
ZCZC 0FB74B4 UNLOCKED




© 2024-2024 --- C. BinKadal --- Revision: 0053---13-Jun-2024.