> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/fi/asennus/using-the-github-codespace.md).

# GitHub Codespacen käyttäminen

Helpoin tapa ottaa Overleaf Pro käyttöön on käyttää GitHub Codespacea, jossa kaikki ympäristömuuttujat on valmiiksi määritetty, jotta voit käyttää sitä heti sellaisenaan.

{% hint style="warning" %}
Kun suoritat Docker-säiliöitä GitHub Codespacesissa, Codespacea ei sammuteta automaattisesti, vaan se jatkaa **laskutetaan**. GitHub Codespacesin laskutussäännöistä, katso [GitHub Codespacesin laskutussäännöt](https://docs.github.com/en/billing/concepts/product-billing/github-codespaces).

Hallitaksesi GitHub Codespacesi, käy osoitteessa <https://github.com/codespaces>. Kun et enää tarvitse sitä, poista Codespace ajoissa.
{% endhint %}

Meillä on **esivalmiiksi määritetty** seuraavat ominaisuudet:

* [x] Mallijärjestelmä
* [x] Julkinen rekisteri
* [x] Sandbox-kääntö
* [x] Git-silta Overleafiä varten
* [x] Tarkastuspaneeli

{% stepper %}
{% step %}

### Luo GitHub Codespace

Napsauta seuraavaa painiketta luodaksesi GitHub Codespacesi. Palvelinkonfiguraation osalta **2 ydintä ja 8 GB RAM-muistia** riittää yleensä yksilölliseen päivittäiseen muokkaukseen. Jos aiot tehdä yhteistyötä **pienessä tiimissä**, suosittelemme valitsemaan kokoonpanon, jossa on **4 ydintä tai enemmän**.

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/ayaka-notes/overleaf)
{% endstep %}

{% step %}

### Alusta Overleaf-instanssi

Kun codespace on valmis, suorita bashissa seuraava komento alustaaksesi Overleaf-instanssisi.

{% code title="bash" %}

```bash
./init.sh
```

{% endcode %}

{% hint style="info" %}
Saatat joutua odottamaan vähintään 3 minuuttia ennen kuin lataamme kaikki tarvitsemasi Docker-kuvat.
{% endhint %}

<figure><img src="/files/e47a3fc79f63e1e9e2ca39855574a912f3cc2aa8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Tee portista 80 käytettävä

Siirry **Portit** välilehteen ja noudata sitten näitä vaiheita, jotta portti 80 saadaan julkiseksi.

<figure><img src="/files/aa79c0fe1a038a2068ad2086f7741f2bd8faf5b1" alt=""><figcaption></figcaption></figure>

Sen jälkeen voit napsauttaa **Välitetty osoite** vieraillaksesi Overleaf-instanssissasi. Saatat joutua lisäämään `/launchpad` vieraillaksesi Overleafin tervetulosivulla.
{% endstep %}

{% step %}

### Luo ylläpitäjätilisi

Syötä ylläpitäjätilisi ja salasanasi, ja napsauta sitten Rekisteröi-painiketta.

<figure><img src="/files/5539662a65563f216d1afbb5b521ad68c884fccf" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Nauti kirjoittamisesta

Nyt on aika nauttia $$\LaTeX$$ kirjoittamisesta!

<figure><img src="/files/aa2104060af042503f2ee14d13d1ae69e495b249" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/fi/asennus/using-the-github-codespace.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
