> 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/on-premises-no/installasjon/using-the-github-codespace.md).

# Bruke GitHub Codespace

Den enkleste måten å sette opp Overleaf Pro på er å bruke GitHub Codespace, der alle miljøvariabler er forhåndskonfigurert for å sikre at du kan bruke det rett ut av boksen.

{% hint style="warning" %}
Når du kjører Docker-containere ved hjelp av GitHub Codespaces, vil Codespace-en ikke automatisk slås av og vil fortsette å bli **fakturert**. For faktureringsreglene for GitHub Codespaces, se [faktureringsreglene for GitHub Codespaces](https://docs.github.com/en/billing/concepts/product-billing/github-codespaces).

For å administrere GitHub Codespaces, vennligst besøk <https://github.com/codespaces>. Når du ikke lenger trenger den, vennligst slett Codespace-en din i tide.
{% endhint %}

Vi har **forhåndskonfigurert** følgende funksjoner:

* [x] Malsystem
* [x] Offentlig register
* [x] Sandkassekompilering
* [x] Git-bro for Overleaf
* [x] Gjennomgangspanel

{% stepper %}
{% step %}

### Opprett din GitHub Codespace

Klikk på følgende knapp for å opprette GitHub Codespace-en din. Når det gjelder serverkonfigurasjon, **2 kjerner med 8 GB RAM** er vanligvis tilstrekkelig for individuell daglig redigering. Hvis du planlegger å samarbeide i et **lite team**, anbefaler vi å velge en konfigurasjon med **4 kjerner eller mer**.

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

{% step %}

### Initialiser Overleaf-instansen

Når codespace-en din er klar, kjør følgende kommando i bash for å initialisere Overleaf-instansen din.

{% code title="bash" %}

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

{% endcode %}

{% hint style="info" %}
Du må kanskje vente i minst 3 minutter før vi laster ned alle Docker-avbildningene du trenger.
{% endhint %}

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

{% step %}

### Gjør port 80 tilgjengelig

Bytt til **Ports** fanen, og følg deretter disse trinnene for å gjøre port 80 offentlig.

<figure><img src="/files/7dd5c490b5041008741ffa4b7bb920f5cf382dd2" alt=""><figcaption></figcaption></figure>

Etter det kan du klikke på **videresendte adressen** for å besøke Overleaf-instansen din. Du må kanskje legge til `/launchpad` for å besøke Overleaf-velkomstsiden.
{% endstep %}

{% step %}

### Opprett administratorkontoen din

Skriv inn administratorkontoen og passordet ditt, og klikk deretter på Registrer-knappen.

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

{% step %}

### God skrivestund

Nå er det tid for å nyte $$\LaTeX$$ skrivingen din!

<figure><img src="/files/4860e74424cdf87f133c55da2c1bd7aa28bf53e4" 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/on-premises-no/installasjon/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.
