Skip to content

Commit

Permalink
Web update by ibecker on Wed Sep 20 03:18:21 PM EDT 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
ignacio committed Sep 20, 2023
1 parent e03faff commit b057027
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 818 deletions.
8 changes: 0 additions & 8 deletions docs/category/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ <h1 class="category-title">Project</h1>
<a href="../project/M2A/">Milestone 2A</a>
(Jul. 27, 2022)
</li>
<li class="category-item">
<a href="../project/M2/">Milestone 2</a>
(Jul. 27, 2022)
</li>
<li class="category-item">
<a href="../project/M1B/">Milestone 1B</a>
(Jul. 27, 2022)
Expand All @@ -155,10 +151,6 @@ <h1 class="category-title">Project</h1>
<a href="../project/M1A/">Milestone 1A</a>
(Jul. 27, 2022)
</li>
<li class="category-item">
<a href="../project/M1/">Milestone 1</a>
(Jul. 27, 2022)
</li>
<li class="category-item">
<a href="../project/FD/">Final Deliverables</a>
(Jul. 27, 2022)
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ <h2><a id="important"></a><a class="anchor-link" href="#important">Important Inf
upstream in your private class repository or clone it once you have joined the
CS107 organization</li>
</ul>
<div class="highlight"><pre><span></span><code>git<span class="w"> </span>clone<span class="w"> </span>[email protected]:CS107/main.git
<div class="highlight"><pre><span></span><code>git clone [email protected]:CS107/main.git
</code></pre></div>

<p>Updates to the <code>main</code> repository are posted on the class mailing list. Your
Expand All @@ -342,7 +342,7 @@ <h2><a id="important"></a><a class="anchor-link" href="#important">Important Inf
<p>See the following tutorial to help you get started with your <code>git</code>
repository:</p>
<ul>
<li><a href="./tutorials.html#tutorial-repo">How to setup your private class repository</a></li>
<li><a href="./pages/tutorials.html#tutorial-repo">How to setup your private class repository</a></li>
</ul>
</blockquote>
<h3><a id="class-forum"></a><a class="anchor-link" href="#class-forum">Class Discussion Forum</a></h3>
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/resources.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ <h2><a id="windows"></a><a class="anchor-link" href="#windows">Windows Users</a>
</ul>
<h2><a id="docker"></a><a class="anchor-link" href="#docker">Ubuntu Docker Image</a></h2>
<p>You can get an Ubuntu based Docker container with</p>
<div class="highlight"><pre><span></span><code>docker<span class="w"> </span>pull<span class="w"> </span>iacs/cs107_ubuntu
<div class="highlight"><pre><span></span><code>docker pull iacs/cs107_ubuntu
</code></pre></div>

<p>The container is hosted <a href="https://hub.docker.com/r/iacs/cs107_ubuntu/tags">here</a>.
Expand Down
34 changes: 17 additions & 17 deletions docs/pages/tutorials.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ <h3><a id="tutorial-repo-ssh"></a><a class="anchor-link" href="#tutorial-repo-ss
setup an <a href="https://en.wikipedia.org/wiki/Secure_Shell">SSH</a> key. Check if you
already have the file <code>~/.ssh/id_rsa.pub</code> (assuming RSA). If you do not have
such a file you can create one with</p>
<div class="highlight"><pre><span></span><code>ssh-keygen<span class="w"> </span>-t<span class="w"> </span>rsa<span class="w"> </span>-b<span class="w"> </span><span class="m">4096</span>
<div class="highlight"><pre><span></span><code>ssh-keygen -t rsa -b <span class="m">4096</span>
</code></pre></div>

<p>Choose the default location by just hitting enter. You may enter a password for
Expand All @@ -245,7 +245,7 @@ <h3><a id="tutorial-repo-ssh"></a><a class="anchor-link" href="#tutorial-repo-ss
button in the top right corner and give your new key a title (e.g. the name of
your laptop). In the key field paste the contents of your <em>public key</em> found in
<code>~/.ssh/id_rsa.pub</code>. Use for example</p>
<div class="highlight"><pre><span></span><code>cat<span class="w"> </span>~/.ssh/id_rsa.pub
<div class="highlight"><pre><span></span><code>cat ~/.ssh/id_rsa.pub
</code></pre></div>

<p>and copy paste the output into the "Key" field on your GitHub page. You are now
Expand Down Expand Up @@ -566,7 +566,7 @@ <h3><a id="tutorial-pp-protocol"></a><a class="anchor-link" href="#tutorial-pp-p
<span class="c1"># Listener : Bob</span>
<span class="c1"># Sharer : Alice</span>

<span class="nb">echo</span><span class="w"> </span><span class="s1">&#39;Hello World&#39;</span>
<span class="nb">echo</span> <span class="s1">&#39;Hello World&#39;</span>

<span class="c1">### Main point of contention: whether to capitalize &quot;W&quot; in &quot;world&quot;</span>
</code></pre></div>
Expand Down Expand Up @@ -622,7 +622,7 @@ <h4><a id="tutorial-pp-tmate1"></a><a class="anchor-link" href="#tutorial-pp-tma
in the <code>lab</code> directory of your private Git repo and <code>pp1</code> exists. Launch the
docker container and mount the <code>pp1</code> directory in your repository:</li>
</ul>
<div class="highlight"><pre><span></span><code>$<span class="w"> </span>run_cs107_docker.sh<span class="w"> </span>pp1/
<div class="highlight"><pre><span></span><code>$ run_cs107_docker.sh pp1/
root@0a076feb425f:~#
</code></pre></div>

Expand All @@ -631,17 +631,17 @@ <h4><a id="tutorial-pp-tmate1"></a><a class="anchor-link" href="#tutorial-pp-tma
<code>0a076feb425f</code> is arbitrary and yours will differ.
Launch <code>tmate</code> (it is already installed in the container):</li>
</ul>
<div class="highlight"><pre><span></span><code>root@0a076feb425f:~#<span class="w"> </span>tmate
Tip:<span class="w"> </span><span class="k">if</span><span class="w"> </span>you<span class="w"> </span>wish<span class="w"> </span>to<span class="w"> </span>use<span class="w"> </span>tmate<span class="w"> </span>only<span class="w"> </span><span class="k">for</span><span class="w"> </span>remote<span class="w"> </span>access,<span class="w"> </span>run:<span class="w"> </span>tmate<span class="w"> </span>-F
To<span class="w"> </span>see<span class="w"> </span>the<span class="w"> </span>following<span class="w"> </span>messages<span class="w"> </span>again,<span class="w"> </span>run<span class="w"> </span><span class="k">in</span><span class="w"> </span>a<span class="w"> </span>tmate<span class="w"> </span>session:<span class="w"> </span>tmate<span class="w"> </span>show-messages
Press<span class="w"> </span>&lt;q&gt;<span class="w"> </span>or<span class="w"> </span>&lt;ctrl-c&gt;<span class="w"> </span>to<span class="w"> </span><span class="k">continue</span>
<div class="highlight"><pre><span></span><code>root@0a076feb425f:~# tmate
Tip: <span class="k">if</span> you wish to use tmate only <span class="k">for</span> remote access, run: tmate -F
To see the following messages again, run <span class="k">in</span> a tmate session: tmate show-messages
Press &lt;q&gt; or &lt;ctrl-c&gt; to <span class="k">continue</span>
---------------------------------------------------------------------
Connecting<span class="w"> </span>to<span class="w"> </span>ssh.tmate.io...
Note:<span class="w"> </span>clear<span class="w"> </span>your<span class="w"> </span>terminal<span class="w"> </span>before<span class="w"> </span>sharing<span class="w"> </span><span class="nb">readonly</span><span class="w"> </span>access
web<span class="w"> </span>session<span class="w"> </span><span class="nb">read</span><span class="w"> </span>only:<span class="w"> </span>https://tmate.io/t/ro-qNRV5QRVWkW3qr55sfATkBegr
ssh<span class="w"> </span>session<span class="w"> </span><span class="nb">read</span><span class="w"> </span>only:<span class="w"> </span>ssh<span class="w"> </span>[email protected]
web<span class="w"> </span>session:<span class="w"> </span>https://tmate.io/t/nMWurZc7Q6Zbv8EnX2wdhf6GB
ssh<span class="w"> </span>session:<span class="w"> </span>ssh<span class="w"> </span>[email protected]
Connecting to ssh.tmate.io...
Note: clear your terminal before sharing <span class="nb">readonly</span> access
web session <span class="nb">read</span> only: https://tmate.io/t/ro-qNRV5QRVWkW3qr55sfATkBegr
ssh session <span class="nb">read</span> only: ssh [email protected]
web session: https://tmate.io/t/nMWurZc7Q6Zbv8EnX2wdhf6GB
ssh session: ssh [email protected]
</code></pre></div>

<ul>
Expand All @@ -659,7 +659,7 @@ <h4><a id="tutorial-pp-tmate1"></a><a class="anchor-link" href="#tutorial-pp-tma
connected clients.<br>
You can now work together on the exercise. For example:</li>
</ul>
<div class="highlight"><pre><span></span><code>root@0a076feb425f:~#<span class="w"> </span>vim<span class="w"> </span>exercise_1.py
<div class="highlight"><pre><span></span><code>root@0a076feb425f:~# vim exercise_1.py
</code></pre></div>

<ul>
Expand All @@ -675,13 +675,13 @@ <h4><a id="tutorial-pp-tmate1"></a><a class="anchor-link" href="#tutorial-pp-tma
</blockquote>
<p>In order to use <code>ssh</code> you need to setup an <code>ssh</code> key if you have not done so
already. If you do not have such a key, you may create one by running</p>
<div class="highlight"><pre><span></span><code>ssh-keygen<span class="w"> </span>-t<span class="w"> </span>rsa<span class="w"> </span>-b<span class="w"> </span><span class="m">4096</span>
<div class="highlight"><pre><span></span><code>ssh-keygen -t rsa -b <span class="m">4096</span>
</code></pre></div>

<p>If you are not dropped into a shell after you execute <code>tmate</code> it may be because
you are using a shell different than <code>zsh</code>. Install <code>zsh</code> on your system using
your package manager and run <code>tmate</code> like this</p>
<div class="highlight"><pre><span></span><code><span class="nv">SHELL</span><span class="o">=</span>/bin/zsh<span class="w"> </span>tmate
<div class="highlight"><pre><span></span><code><span class="nv">SHELL</span><span class="o">=</span>/bin/zsh tmate
</code></pre></div>

<!-- 1}}} -->
Expand Down
Loading

0 comments on commit b057027

Please sign in to comment.