HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
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 0274C10 WEEKSQ 07 00
ZCZC 027E2B6 VERSUM 22:0EB59C0C 22:0EB59C0C
ZCZC 027822D VERINC 48:F539259F 48:F539259F
ZCZC 027F44F SCRIPT # REV07: Wed 04 Oct 2023 16:00
ZCZC 0279F79 XCHECK HOST cbkadal USER cbkadal GROUP cbkadal HOME /home/cbkadal/ ARCH x86_64 NPROC 4
ZCZC 027F6F9 VERDSK 23G 32G 2AB74ACBA35B 94C4C6D37149
ZCZC 027DED1 CMOUN1 /dev/sdb2 /mnt/lfs ext4 rw,relatime 0 0
ZCZC 027BA82 CMOUN2 /dev/sdb1 /mnt/cbkadal ext4 rw,relatime 0 0
ZCZC 027D26F VERLNX 6.1.0-13-amd64
ZCZC 02753EC DISTRO Description: Debian GNU/Linux 12 (bookworm)
ZCZC 027DB4D CHDIR1 RESULT YES
ZCZC 0277D81 CHDIR2 mydemo YES
ZCZC 027BAF0 CHDIR3 mywork YES
ZCZC 0270830 CHDIR4 git/os232/TXT YES
ZCZC 0279DD4 CHDIR5 git/os YES
ZCZC 0273454 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.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 02510BF WEEKSQ 07 01
ZCZC 0255495 VERSUM 7C:65B2F82D 7C:65B2F82D
ZCZC 025A52B VERINC 48:F539259F 48:F539259F
ZCZC 0259889 SCRIPT # REV09: Tue 17 Oct 2023 15:00
ZCZC 02545AD RESULT ===== RESULT IN /home/cbkadal/RESULT/W07/WEEK07-01-VERSION.txt =====
- WEEK07-REPORT2.txt
- Copy this file from os1.
ZCZC 139A7E4 REPORT FILE WEEK07-REPORT2.txt is OPEN
ZCZC 139478C XPROCS PID 469210 PPID 469165 ARCH x86_64 NPROC 1
ZCZC 13929D2 XCHECK HOST os1 USER cbkadal GROUP cbkadal HOME /home/cbkadal
ZCZC 1393A82 SHARE1 OK fd1 WEEK07-MYSHARE.bin FILESIZE 17
ZCZC 139EE8E SHARE2 OK fd2 /home/zzzSHARE/.zzzW07/ directory
ZCZC 139B718 IamUSR cbkadal
ZCZC 1397F66 USRCH1 COMPARE cbkadal =? cbkadal
ZCZC 139781A USRCH2 OK
ZCZC 13967FC HSHCH1 COMPARE 98C2 =? 98C2
ZCZC 13991E0 HSHCH2 OK
ZCZC 130B648 LOCKED
ZCZC 1307984 START ==== ALL ====
12498C2 cbkadal
ZCZC 1301886 END ==== ALL ====
ZCZC 13027DE UNLOCKED