From 3d8544c3669a0846084f9b301d2ae46074c4e34b Mon Sep 17 00:00:00 2001 From: tmanalo Date: Sun, 10 Jul 2022 09:34:48 +0200 Subject: [PATCH] Solutions to Parts 1, 2, and 3 of the exercise --- .DS_Store | Bin 6148 -> 6148 bytes exercise/.DS_Store | Bin 6148 -> 6148 bytes exercise/solution/.DS_Store | Bin 0 -> 6148 bytes .../images/{coare-cp-alert.png => cmd_3.png} | Bin .../{coare-cp-welcome.png => cmd_4.png} | Bin ...are-terminal-alert.png => mac-linux_2.png} | Bin ...e-terminal-welcome.png => mac-linux_3.png} | Bin ...re-putty-configuration.png => putty_2.png} | Bin .../{coare-putty-auth.png => putty_3.png} | Bin .../{coare-putty-alert.png => putty_4.png} | Bin .../{coare-putty-welcome.png => putty_6.png} | Bin exercise/solution/part-1.md | 106 +++++++++--------- exercise/solution/part-2.md | 15 +-- exercise/solution/part-3.md | 12 +- 14 files changed, 57 insertions(+), 76 deletions(-) create mode 100644 exercise/solution/.DS_Store rename exercise/solution/images/{coare-cp-alert.png => cmd_3.png} (100%) rename exercise/solution/images/{coare-cp-welcome.png => cmd_4.png} (100%) rename exercise/solution/images/{coare-terminal-alert.png => mac-linux_2.png} (100%) rename exercise/solution/images/{coare-terminal-welcome.png => mac-linux_3.png} (100%) rename exercise/solution/images/{coare-putty-configuration.png => putty_2.png} (100%) rename exercise/solution/images/{coare-putty-auth.png => putty_3.png} (100%) rename exercise/solution/images/{coare-putty-alert.png => putty_4.png} (100%) rename exercise/solution/images/{coare-putty-welcome.png => putty_6.png} (100%) diff --git a/.DS_Store b/.DS_Store index d775d61439b814f472fad1d8d1e6e1c038047787..098bc87581147fb11f16f8d95600f7833501851a 100644 GIT binary patch literal 6148 zcmeHKJ#W)M7=Et}#YqK32#GF8Uf80L&@Ul@6hb<5K&mi;0jkuFO=HRSMR7tXAt(b( z`~U=hf*-)jf)FzsD+BC|@Z1Lw$E{#O2;D2a_nhyZ_s;KQ`_4y1tU2`SL}enf-~tOJ z6o;7T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cn#GE`V<+69%E$@M^N04fT6)Pj)A|*z)x85k$wOG delta 219 zcmZoMXfc=|#>B`mu~2NHo}wrV0|Nsi1A_nqLn=dYPP$=ma(-^X#KPtEAPF{xOom*B zM22)^NuW3kpvdRuySOCfUm iOqB!4M-hAsRLgNLQ@M~wS>CQXiT>gczx_luGM6WL zmYwfkKP*=31!gJD8`|(5_Jwh|UGV|q^&7@jmoZ1)>m3Fj(^7#{AQeajQh^^(0B1IB zeCn8eDv%1K0-p+Se<*0g8rU3d>p*8E0C0q1Gx)qPlT!j~U~|L_Oq~jJsz!;SPRDqO zxEk0Toh};1hsK+?#f#e8k-u2DXm!j!6-Wj46=3ZPoACUv#raiatCB4C1KmkRuX F0w2SaI->vp literal 0 HcmV?d00001 diff --git a/exercise/solution/images/coare-cp-alert.png b/exercise/solution/images/cmd_3.png similarity index 100% rename from exercise/solution/images/coare-cp-alert.png rename to exercise/solution/images/cmd_3.png diff --git a/exercise/solution/images/coare-cp-welcome.png b/exercise/solution/images/cmd_4.png similarity index 100% rename from exercise/solution/images/coare-cp-welcome.png rename to exercise/solution/images/cmd_4.png diff --git a/exercise/solution/images/coare-terminal-alert.png b/exercise/solution/images/mac-linux_2.png similarity index 100% rename from exercise/solution/images/coare-terminal-alert.png rename to exercise/solution/images/mac-linux_2.png diff --git a/exercise/solution/images/coare-terminal-welcome.png b/exercise/solution/images/mac-linux_3.png similarity index 100% rename from exercise/solution/images/coare-terminal-welcome.png rename to exercise/solution/images/mac-linux_3.png diff --git a/exercise/solution/images/coare-putty-configuration.png b/exercise/solution/images/putty_2.png similarity index 100% rename from exercise/solution/images/coare-putty-configuration.png rename to exercise/solution/images/putty_2.png diff --git a/exercise/solution/images/coare-putty-auth.png b/exercise/solution/images/putty_3.png similarity index 100% rename from exercise/solution/images/coare-putty-auth.png rename to exercise/solution/images/putty_3.png diff --git a/exercise/solution/images/coare-putty-alert.png b/exercise/solution/images/putty_4.png similarity index 100% rename from exercise/solution/images/coare-putty-alert.png rename to exercise/solution/images/putty_4.png diff --git a/exercise/solution/images/coare-putty-welcome.png b/exercise/solution/images/putty_6.png similarity index 100% rename from exercise/solution/images/coare-putty-welcome.png rename to exercise/solution/images/putty_6.png diff --git a/exercise/solution/part-1.md b/exercise/solution/part-1.md index c872f27..92f20ba 100644 --- a/exercise/solution/part-1.md +++ b/exercise/solution/part-1.md @@ -1,95 +1,89 @@ # Logging in -The following are procedures for logging in to the COARE HPC via the following OS: Windows, Mac, and Linux. -## Table of Contents -- [For Windows](#for-windows) - - [PuTTY](#putty) - - [Command Prompt (for Windows 10 only)](#command-prompt-for-windows-10-only) -- [For Mac / Linux](#for-mac--linux) +The following are procedures for logging in to the COARE HPC via the following OS: Windows, Mac, and Linux. + +### Table of Contents +- [For Windows](##For-Windows) + - [PuTTY](###PuTTY) + - [Command Prompt (for Windows 10 only)](###Command-Prompt-for-Windows-10-only) +- [For Mac / Linux](##For-Mac-Linux) ## For Windows +For Windows, users have two options to use in logging in: PuTTY or Command Prompt. ### PuTTY - 1. Download and run **PuTTY** application. - - - [32-bit:](https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe) - - [64-bit:](https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe) + + - 32-bit: https://the.earth.li/~sgtatham/putty/latest/w32/putty.exe + - 64-bit: https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe 2. Set port number to **22** and the **Host Name** to **saliksik.asti.dost.gov.ph**. - - ![Coare Putty Configuration](images/coare-putty-configuration.png) + + ![PuTTY Configuration Window](images/putty_2.png) 3. On the left panel under Category, collapse the **Connection** option and select the **SSH** option, and then click **Auth**. Select **Browse** to attach your **private key** (.ppk file) for authentication. Then click **Open**. - ![Coare Putty Authentication](images/coare-putty-auth.png) + ![PuTTY Configuration Window Authentication](images/putty_3.png) 4. Select **Yes** when prompted by a PuTTY Security Alert Window. - ![Coare Putty Alert](images/coare-putty-alert.png) + ![PuTTY Security Alert Window](images/putty_4.png) 5. When the terminal opens, enter your COARE credentials that should have been sent to your email. -6. You are now inside the HPC frontend if you see this (see image below) on your terminal. - ![Coare Putty Welcome](images/coare-putty-welcome.png) +6. You are now inside the HPC frontend if you see this (see image below) on your terminal. - NOTES: + ![HPC frontend black window](images/putty_6.png) - - Accessing HPC must be passwordless unless you have a passphrase during the generating of keys. - - If you want to use your key (generated using PuTTY) in OpenSSH, check this tutorial on converting PuTTY (.ppk) key to SSH Key. - - You cannot use your OpenSSH keys to PuTTY and vice versa. +**NOTES:** +- Accessing HPC must be passwordless unless you have a passphrase during the generating of keys. +- If you want to use your key (generated using PuTTY) in OpenSSH, check this tutorial on [converting PuTTY (.ppk) key to SSH Key](https://www.simplified.guide/putty/convert-ppk-to-ssh-key). +- You cannot use your OpenSSH keys to PuTTY and vice versa. ### Command Prompt (for Windows 10 only) - 1. Open **Command Prompt** or **Windows PowerShell**. 2. Type command: - - ``` - ssh @saliksik.asti.dost.gov.ph - ``` - - Useful options: - - | Flag | Description | - | ------------------ | ------------------------------------------------------------ | - | -i \ | Indicate the private key to be used | - | -v | Increase verbosity | - | -vv, -vvv | Enable additional verbosity for even more debugging messages | + ``` + ssh @saliksik.asti.dost.gov.ph + ``` + Useful options: + | Flag | Description | + | ----------- | ----------- | + | -i \ | Indicate the private key to be used | + | -v | Increase verbosity | + | -vv, -vvv | Enable additional verbosity for even more debugging messages | 3. Type **Yes** to add the host in your known hosts. - ![Coare Command Prompt Alert](images/coare-cp-alert.png) + + ![Command Prompt black window](images/cmd_3.png) 4. You should now be inside the HPC frontend. - ![Coare Command Prompt Welcome](images/coare-cp-welcome.png) - NOTES: + ![HPC frontend black window](images/cmd_4.png) - - Logging in must be passwordless unless you have a passphrase during the generating of keys. - - If you want to use your key (generated using PuTTY) in OpenSSH, check this tutorial on [converting PuTTY (.ppk) key to SSH Key](https://www.simplified.guide/putty/convert-ppk-to-ssh-key). - - You cannot use your PuTTY keys to OpenSSH and vice versa. +**NOTES:** +- Logging in must be passwordless unless you have a passphrase during the generating of keys. +- If you want to use your key (generated using PuTTY) in OpenSSH, check this tutorial on [converting PuTTY (.ppk) key to SSH Key](https://www.simplified.guide/putty/convert-ppk-to-ssh-key). +- You cannot use your PuTTY keys to OpenSSH and vice versa. ## For Mac / Linux - -1. Launch your Terminal application and type: - +1. Launch your Terminal application and type: ``` ssh @saliksik.asti.dost.gov.ph - ``` - - Useful options: - - | Flag | Description | - | ------------------ | ------------------------------------------------------------ | - | -i \ | Indicate the private key to be used | - | -v | Increase verbosity | - | -vv, -vvv | Enable additional verbosity for even more debugging messages | + ``` + Useful options: + | Flag | Description | + | ----------- | ----------- | + | -i \ | Indicate the private key to be used | + | -v | Increase verbosity | + | -vv, -vvv | Enable additional verbosity for even more debugging messages | +2. Type **Yes** to add the host in your known hosts. -2. Type **Yes** to add the host in your known hosts. - ![Coare Terminal Alert](images/coare-terminal-alert.png) + ![Command Prompt black window](images/mac-linux_2.png) +3. You are now inside the HPC Frontend. -3. You are now inside the HPC Frontend. - ![Coare Terminal Welcome](images/coare-terminal-welcome.png) + ![HPC frontend black window](images/mac-linux_3.png) - NOTE: Logging in must be passwordless unless you have a passphrase during the generating of keys. +**NOTE:** Logging in must be passwordless unless you have a passphrase during the generating of keys. \ No newline at end of file diff --git a/exercise/solution/part-2.md b/exercise/solution/part-2.md index 2d7aa2d..0140749 100644 --- a/exercise/solution/part-2.md +++ b/exercise/solution/part-2.md @@ -1,13 +1,4 @@ -> This is a paragraph. -> First line. -> Next line. -> Third line. -> There should be no extra spacing between each line. -> _**This line is both italic and bold!**_ -> -> There is a blank space above. -> This line of text is wavy. +> This is a paragraph. First line.
Next line.
Third line.
There should be no extra spacing between each line.
_**This line is both italic and bold!**_

There is a blank space above.
This line of text is wavy. -My favorite equation is: - -$$ \frac{-b \pm \sqrt{b^2 -4ac}}{2a} $$ +My favorite equation is: +$$\frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$ \ No newline at end of file diff --git a/exercise/solution/part-3.md b/exercise/solution/part-3.md index f5864c3..f1fa378 100644 --- a/exercise/solution/part-3.md +++ b/exercise/solution/part-3.md @@ -1,8 +1,4 @@ -# Exercises - -- [x] Part 1 - [Solution](part-1.md) -- [x] Part 2 - [Solution](part-2.md) -- [x] Part 3 - [Solution](part-3.md) - -By: -[Imari Joy C. Borda](mailto:imari.borda2018@gmail.com) +- [x] [Part 1](part-1.md) +- [x] [Part 2](part-2.md) +- [x] [Part 3](part-3.md) +
[Theresa L. Manalo](mailto:tlmanalo@up.edu.ph) \ No newline at end of file