{% extends "base.html" %}
{% block head %}
    {{ super() }}
    <title>Webtechnologie voor KI/INF</title>
{% endblock %}
{% block content %}
<h2>User information</h2>
<table>
    <tbody>
        <tr>
            <td>Name</td>
            <td>{{ first_name }} {{ last_name }}</td>
        </tr>
        <tr>
            <td>UvAnetID</td>
            <td>{{ user_id }}</td>
        </tr>
        <tr>
            <td>Username</td>
            <td>{{ username }}</td>
        </tr>
        {% if group_name is defined %}
        <tr>
            <td>Group</td>
            <td>{{ group_name }}</td>
        </tr>
        <tr>
            <td>Server</td>
            <td>{{ group_name }}.webtech-uva.nl</td>
        </tr>
        {% endif %}
    </tbody>
</table>
<h2>Connecting to your server</h2>
<p>
    You will be connecting to your server using SSH. SSH allows you to, effectively,
    open a terminal on the server and enter commands as if it was your local machine.
</p>
<p>
    Naturally, this kind of access is restricted. In order to gain this access, you
    will need to perform some initial set-up. The set-up process is largely automated,
    using the <code>webtech-ssh</code> tool.

    Additionally, you will need to be connected to eduVPN or be on location at UvA to
    connect to your server.
</p>
<p>
    To gain access, do the following on your machine:
</p>
<ol>
    <li>Make sure eduVPN is running (unless you are at UvA).</li>
    <li>Open a terminal.</li>
    <li>Copy and paste the following line:<br />
        <code>curl https://webtech-admin.datanose.nl/static/webtech-ssh.sh | sh -</code>
    </li>
    <li>Wait for <code>webtech-ssh</code> to do its thing.</li>
</ol>
<p>
    At this point, you should be able to connect to your server. If you still run
    into issues, please contact your TA.
</p>
{% endblock %}
