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


OS Week 02 Assignment #6: Finishing

  • Update your “links.md” file. For e.g., see cbkadal’s
    https://cbkadal.github.io/os241/LINKS/
  • Replace the content of “TXT/myupdate.txt” inside your “os241” repository.
    • Upto 24 hours after the Week 02 deadline, the content of “myupdate.txt” should be:
      • OS241W02 (ALL CAPITAL LETTERS!)
      • When submitting the weekly assignments, the content of “TXT/myupdate.txt” should match the week of the assignment. I.E., OS241W01 for WEEK01, OS241W02 for WEEK02, and beyond. Without a proper “TXT/myupdate.txt,” your assignment grade will be significantly reduced.
    • For e.g., see cbkadal’s https://cbkadal.github.io/os241/TXT/myupdate.txt
  • Update “mylog.txt”. For e.g., see cbkadal’s
    https://cbkadal.github.io/os241/TXT/mylog.txt
  • Write script “myscript.sh” or copy https://cbkadal.github.io/os241/TXT/myscript.sh. The use of the script is as follows:
    • Report WEEK02
    • Encrypt the content of folder “$HOME/RESULT/W02/” into TARBALL “myW02.tar.xz.asc”
    • Create checksum file “SHA256SUM” of folder “$HOME/git/os241/TXT/”
    • Signing checksum to file “SHA256SUM.asc”
    • You are not cbkadal! What is YOUR public-key ID? READ the script, before using cbkadal’s “myscript.sh”!
    • REC2 is cbkadal’s public key ID. Replace REC2 with your Public Key ID!
# ####################### Replace REC2 ####
REC2="60914D29C01C81F1"
# ####################### ####### #### ####

  • For WEEK02, run and confirm WEEK02:
    • Make sure that all SHA CHECKSUMS are “OK”, and verify “gpg: Good signature”.
bash myscript.sh 2

(RESULT)

$ bash myscript.sh 2

Is this WEEK W02 ? [y/N] y

~/RESULT ~/git/os241/TXT
removed 'myW02.tar.xz'
tar cfj myW02.tar.xz W02/
gpg --armor --output myW02.tar.xz.asc --encrypt --recipient XYZZYXYZZYXYZZYZ --recipient XYZZYXYZZYXYZZYZ myW02.tar.xz
~/git/os241/TXT
Check and move /home/cbkadal/RESULT/myW02.tar.xz.asc...
renamed '/home/cbkadal/RESULT/myW02.tar.xz.asc' -> './myW02.tar.xz.asc'
rm -f SHA256SUM SHA256SUM.asc
sha256sum my*.asc my*.txt my*.sh > SHA256SUM
# ################ CHECKSUM ###### #########
sha256sum -c SHA256SUM
myW02.tar.xz.asc: OK
mylog.txt: OK
mypubkey.txt: OK
myrank.txt: OK
myupdate.txt: OK
myscript.sh: OK
# ################# SIGNING CHECKSUM ######### ######### ########
gpg --output SHA256SUM.asc --armor --sign --detach-sign SHA256SUM
# ################# VERIFY ######### ######### ######### ########
gpg --verify SHA256SUM.asc SHA256SUM
gpg: Signature made Mon 12 Sep 2022 05:35:59 PM WIB
gpg:                using RSA key XYZZYXYZZYXYZZYXYZZYXYZZYXYZZYXYZZYXYZZY
gpg: Good signature from "Cicak Bin Kadal (CBK) <cbkadal@localhost>" [ultimate]

==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
==== ==== ==== ATTN: is this WEEK W02 ?? === ==== ==== ====
==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====



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