> 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/vi/cai-dat/using-the-github-codespace.md).

# Sử dụng GitHub Codespace

Cách dễ nhất để thiết lập Overleaf Pro của bạn là sử dụng GitHub Codespace, nơi tất cả biến môi trường đã được cấu hình sẵn để đảm bảo bạn có thể sử dụng ngay.

{% hint style="warning" %}
Khi bạn chạy các container Docker bằng GitHub Codespaces, Codespace sẽ không tự động tắt và sẽ tiếp tục được **tính phí**. Đối với các quy tắc tính phí của GitHub Codespaces, vui lòng tham khảo [các quy tắc tính phí của GitHub Codespaces](https://docs.github.com/en/billing/concepts/product-billing/github-codespaces).

Để quản lý GitHub Codespaces của bạn, vui lòng truy cập <https://github.com/codespaces>. Khi bạn không còn cần đến nó nữa, vui lòng xóa Codespace của bạn kịp thời.
{% endhint %}

Chúng tôi đã **cấu hình sẵn** các tính năng sau:

* [x] Hệ thống mẫu
* [x] Đăng ký công khai
* [x] Biên dịch trong sandbox
* [x] Cầu nối Git cho Overleaf
* [x] Bảng đánh giá

{% stepper %}
{% step %}

### Tạo GitHub Codespace của bạn

Nhấp vào nút sau để tạo GitHub Codespace của bạn. Về cấu hình máy chủ, **2 lõi với 8 GB RAM** thường là đủ cho việc chỉnh sửa hằng ngày của cá nhân. Nếu bạn dự định cộng tác trong một **nhóm nhỏ**, chúng tôi khuyên bạn nên chọn cấu hình với **4 lõi trở lên**.

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

{% step %}

### Khởi tạo phiên bản Overleaf

Khi codespace của bạn sẵn sàng, hãy chạy lệnh sau trong bash của bạn để khởi tạo phiên bản Overleaf của bạn.

{% code title="bash" %}

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

{% endcode %}

{% hint style="info" %}
Bạn có thể cần chờ ít nhất 3 phút trước khi chúng tôi kéo về tất cả các image Docker bạn cần.
{% endhint %}

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

{% step %}

### Mở cổng 80

Chuyển sang **tab Cổng** , sau đó làm theo các bước sau để công khai cổng 80.

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

Sau đó, bạn có thể nhấp vào **Địa chỉ chuyển tiếp** để truy cập phiên bản Overleaf của bạn. Bạn có thể cần thêm `/launchpad` để truy cập trang chào mừng của Overleaf.
{% endstep %}

{% step %}

### Tạo tài khoản quản trị viên của bạn

Nhập tài khoản quản trị và mật khẩu của bạn, sau đó nhấp vào nút Đăng ký.

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

{% step %}

### Thưởng thức việc viết

Bây giờ, đến lúc tận hưởng $$\LaTeX$$ viết lách của bạn!

<figure><img src="/files/44803ca03152defc63a09173859a1cc29b53ef66" 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/vi/cai-dat/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.
