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/os242/LINKS/
  • Replace the content of “TXT/myupdate.txt” inside your “os242” repository.
    • Upto 24 hours after the Week 02 deadline, the content of “myupdate.txt” should be:
      • OS242W02 (ALL CAPITAL LETTERS!)
      • When submitting the weekly assignments, the content of “TXT/myupdate.txt” should match the week of the assignment. I.E., OS242W01 for WEEK01, OS242W02 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/os242/TXT/myupdate.txt
  • Update “mylog.txt”. For e.g., see cbkadal’s
    https://cbkadal.github.io/os242/TXT/mylog.txt
  • Write script “myscript.sh” or copy https://cbkadal.github.io/os242/TXT/myscript.sh The use of the script is as follows:
    • Put the “myscript.sh” script into the “TXT/” directory.
    • Report WEEK02
    • Encrypt the content of folder “$HOME/RESULT/W02/” into TARBALL “myW02.tar.xz.asc”
    • Create checksum file “SHA256SUM” of folder “$HOME/git/os242/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/os242/TXT
tar cfJ myW02.tar.xz W02/
gpg --armor --output myW02.tar.xz.asc --encrypt --recipient 63FB12B215403B20 --recipient 60914D29C01C81F1 myW02.tar.xz
~/git/os242/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 --local-user 60914D29C01C81F1 --detach-sign SHA256SUM
# ################# VERIFY ######### ######### ######### ########
gpg --verify SHA256SUM.asc SHA256SUM
gpg: Signature made Sun 08 Sep 2024 14:14:44 WIB
gpg:                using RSA key CE17E9DB8AD01794E3BAE98B60914D29C01C81F1
gpg: Good signature from "Cicak Bin Kadal (CBK) <cbkadal@localhost>" [ultimate]

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



© 2024-2024 --- C. BinKadal --- Revision: Wed 20 Nov 2024 07:00.